--- title: Agent Skills description: Install agent skills so your AI agent knows how to use the Memberstack CLI and related tools. slug: /docs/agent-skills publishedOn: 2026-02-19T00:00:00.000Z updatedOn: 2026-02-20T00:00:00.000Z keywords: memberstack, agent-skills, ai, cli, claude, codex, cursor --- # Agent Skills Memberstack CLI [#memberstack-cli] Add the Memberstack CLI agent skill so your AI agent knows exactly how to use the CLI. If you have the Memberstack CLI installed, you can add the skill directly: ```bash memberstack skills add memberstack-cli ``` Or use the skills CLI with your preferred package runner: npm pnpm yarn bun ```bash npx skills add Flash-Brew-Digital/memberstack-skills --skill memberstack-cli ``` ```bash pnpm dlx skills add Flash-Brew-Digital/memberstack-skills --skill memberstack-cli ``` ```bash yarn dlx skills add Flash-Brew-Digital/memberstack-skills --skill memberstack-cli ``` ```bash bun x skills add Flash-Brew-Digital/memberstack-skills --skill memberstack-cli ``` Works with OpenAI Codex, Claude Code, Gemini CLI, GitHub Copilot, Cursor, and dozens of other agents that support the open Agent Skills standard. Other Skills [#other-skills] Additional skills for the Memberstack ecosystem. Teach your AI agent the Memberstack Admin REST API so it can help you build integrations, automate workflows, and manage your Memberstack data programmatically. ```bash memberstack skills add memberstack-admin-api ``` Community Skills [#community-skills] Agent skills built by the community for the wider ecosystem. Built by 224 Industries for building with Webflow. The professional skills kit for Webflow. FAQ [#faq] Agent Skills are folders of instructions, scripts, and resources that agents can discover and use to do things more accurately and efficiently. Skills work with any agent that supports the open Agent Skills standard. This includes OpenAI Codex, Claude Code, Gemini CLI, GitHub Copilot, Cursor, and dozens of others. By installing these skills, your AI agent will have a deeper understanding of Memberstack and how to use the CLI plus related tools, allowing it to perform tasks more effectively and with greater accuracy. --- title: Apps description: Manage Memberstack apps. slug: /docs/apps publishedOn: 2026-02-17T00:00:00.000Z updatedOn: 2026-02-19T00:00:00.000Z keywords: memberstack, apps, settings, cli, oauth --- # Apps ``` memberstack apps [options] ``` apps current [#apps-current] Show the current app. ```bash memberstack apps current ``` apps create [#apps-create] Create a new app. ```bash memberstack apps create [options] ``` Options [#options] | Option | Description | | ------------------------------------ | ------------------------------------------------------------------------------------------------------------ | | `--name ` | App name | | `--stack ` | Tech stack: `REACT`, `WEBFLOW`, `VANILLA`, `WORDPRESS` | | `--wordpress-page-builder ` | WordPress page builder: `GUTENBERG`, `ELEMENTOR`, `DIVI`, `BEAVER_BUILDER`, `BRICKS`, `CORNERSTONE`, `OTHER` | | `--template-id ` | Template ID to use | Example [#example] ```bash memberstack apps create --name "My App" --stack REACT ``` apps update [#apps-update] Update the current app. ```bash memberstack apps update [options] ``` Options [#options-1] | Option | Description | | --------------------------------------- | ------------------------------------------------------ | | `--name ` | App name | | `--stack ` | Tech stack: `REACT`, `WEBFLOW`, `VANILLA`, `WORDPRESS` | | `--status ` | App status: `ACTIVE`, `DELETED` | | `--wordpress-page-builder ` | WordPress page builder | | `--business-entity-name ` | Business entity name | | `--terms-of-service-url ` | Terms of service URL | | `--privacy-policy-url ` | Privacy policy URL | | `--prevent-disposable-emails` | Prevent disposable emails | | `--no-prevent-disposable-emails` | Allow disposable emails | | `--captcha-enabled` | Enable captcha | | `--no-captcha-enabled` | Disable captcha | | `--require-user-2fa` | Require user 2FA | | `--no-require-user-2fa` | Disable required 2FA | | `--disable-concurrent-logins` | Disable concurrent logins | | `--no-disable-concurrent-logins` | Allow concurrent logins | | `--member-session-duration-days ` | Member session duration in days | | `--allow-member-self-delete` | Allow members to self-delete | | `--no-allow-member-self-delete` | Prevent member self-deletion | Example [#example-1] ```bash memberstack apps update --name "Acme App" --captcha-enabled --require-user-2fa ``` apps delete [#apps-delete] Delete an app. ```bash memberstack apps delete --app-id ``` Options [#options-2] | Option | Description | | ------------------ | ---------------- | | `--app-id ` | App ID to delete | apps restore [#apps-restore] Restore a deleted app. ```bash memberstack apps restore --app-id ``` Options [#options-3] | Option | Description | | ------------------ | ----------------- | | `--app-id ` | App ID to restore | FAQ [#faq] Yes. You can create, update, delete, and restore apps using the `apps` command. Use `apps current` to see which app you're working with. To switch apps, log out and log back in with a different account. Deleting an app with `apps delete` removes it from your account. If you need to recover a deleted app, use `apps restore` with the app ID to bring it back. You can set your app's tech stack to `REACT`, `WEBFLOW`, `VANILLA`, or `WORDPRESS` when creating or updating an app. WordPress apps also support specifying a page builder such as Gutenberg, Elementor, Divi, Beaver Builder, Bricks, or Cornerstone. --- title: Authentication description: Manage OAuth authentication with the CLI. slug: /docs/auth publishedOn: 2026-02-17T00:00:00.000Z updatedOn: 2026-02-21T00:00:00.000Z keywords: memberstack, oauth, authentication, auth, cli --- # Authentication ``` memberstack auth [options] ``` The CLI supports OAuth authentication with your Memberstack account. auth login [#auth-login] Authenticate with Memberstack via the browser-based OAuth flow. ```bash memberstack auth login ``` Description [#description] Opens your default browser to the Memberstack authorization page. Tokens are stored locally at `~/.memberstack/auth.json` with restricted file permissions. The access token is used for authenticated requests directly to the Memberstack API only, your credentials are never sent to third-party services. Example [#example] ```bash $ memberstack auth login Opening browser for authentication... ✔ Authentication successful ``` auth logout [#auth-logout] Remove stored authentication tokens. ```bash memberstack auth logout ``` Description [#description-1] Revokes the current refresh token (best-effort) and deletes the local token file at `~/.memberstack/auth.json`. Example [#example-1] ```bash $ memberstack auth logout ✔ Logged out successfully ``` auth status [#auth-status] Show current authentication status. ```bash memberstack auth status ``` Description [#description-2] Displays whether you are currently authenticated, your app ID, token expiration time, refresh token availability, and token validity. Example [#example-2] ```bash $ memberstack auth status Authentication Status Status: Logged in App ID: app_abc123 Access Token: Expires in 45 minutes Refresh Token: Available Token Valid: Yes ``` auth update-profile [#auth-update-profile] Update your profile (first name, last name, email). ```bash memberstack auth update-profile [options] ``` Options [#options] | Option | Description | | --------------------- | -------------------- | | `--first-name ` | Update first name | | `--last-name ` | Update last name | | `--email ` | Update email address | Examples [#examples] ```bash memberstack auth update-profile --first-name Jane memberstack auth update-profile --first-name Jane --last-name Doe --email jane@example.com ``` FAQ [#faq] Run `memberstack auth login`. This opens your browser to authenticate with Memberstack via OAuth. Once approved, tokens are stored locally and you can start running commands. Tokens are stored locally at `~/.memberstack/auth.json` with restricted file permissions. Your credentials are used only for authenticated requests to the Memberstack API and are never sent to third-party services. Run `memberstack auth status` to check your token status. If your access token has expired, the CLI will attempt to refresh it automatically using your refresh token. If that fails, run `memberstack auth login` again. --- title: Command Reference description: Every Memberstack CLI command at a glance. Quick reference for auth, apps, members, plans, prices, and more. slug: /docs/commands publishedOn: 2026-02-19T00:00:00.000Z updatedOn: 2026-02-22T00:00:00.000Z keywords: memberstack, cli, commands, reference, api, terminal --- # Command Reference ``` memberstack [subcommand] [parameters] [options] ``` Global Options [#global-options] Global options are available to use with multiple Memberstack CLI commands. | Flag | Alias | Description | | --------------- | ----- | ------------------------------------------------------ | | `--mode ` | | Set environment mode (`sandbox` or `live`) | | `--live` | | Shorthand for `--mode live` | | `--sandbox` | | Shorthand for `--mode sandbox` | | `--json` | `-j` | Output raw JSON instead of formatted tables | | `--quiet` | `-q` | Suppress banner and non-essential output | | `--no-color` | | Disable color output (respects the NO\_COLOR standard) | | `--help` | `-h` | Show help for any command | | `--version` | `-V` | Show the installed CLI version | Pagination & Bulk Flags [#pagination--bulk-flags] These flags only apply to specific commands: | Flag | Applies to | Description | | ------------------ | --------------- | ------------------------------------------------------- | | `--after ` | List commands | Pagination cursor for fetching the next page of results | | `--all` | List commands | Auto-paginate through all results | | `--dry-run` | Bulk operations | Preview changes without applying them | [Learn more about global options](/docs/global-options) Authentication [#authentication] Manage OAuth login, logout, session status, and profile updates. | Command | Description | | --------------------------------- | ---------------------------------------------------- | | `memberstack auth login` | Open browser-based OAuth flow | | `memberstack auth logout` | Revoke tokens and delete local credentials | | `memberstack auth status` | Show current auth state, app ID, and token expiry | | `memberstack auth update-profile` | Update your profile (name, email) | | `memberstack whoami` | Display authenticated email, app ID, and environment | [Learn more about the auth command](/docs/auth) Apps [#apps] Manage your Memberstack applications. | Command | Description | | -------------------------- | --------------------- | | `memberstack apps current` | Show the current app | | `memberstack apps create` | Create a new app | | `memberstack apps update` | Update app settings | | `memberstack apps delete` | Delete an app | | `memberstack apps restore` | Restore a deleted app | [Learn more about the apps command](/docs/apps) Plans [#plans] Manage membership plans. | Command | Description | | ------------------------------- | ------------------------------------- | | `memberstack plans list` | List all plans (filterable by status) | | `memberstack plans get ` | Get a plan by ID | | `memberstack plans create` | Create a new plan | | `memberstack plans update ` | Update a plan | | `memberstack plans delete ` | Delete a plan | | `memberstack plans order` | Reorder plans by priority | [Learn more about the plans command](/docs/plans) Prices [#prices] Manage prices for plans. | Command | Description | | ----------------------------------------- | ------------------------- | | `memberstack prices create` | Create a price for a plan | | `memberstack prices update ` | Update a price | | `memberstack prices activate ` | Reactivate a price | | `memberstack prices deactivate ` | Deactivate a price | | `memberstack prices delete ` | Delete a price | [Learn more about the prices command](/docs/prices) Members [#members] Manage members, including bulk operations and import/export. | Command | Description | | -------------------------------------- | ---------------------------------------- | | `memberstack members list` | List members with pagination and sorting | | `memberstack members get ` | Get a member by ID or email | | `memberstack members create` | Create a new member | | `memberstack members update ` | Update a member | | `memberstack members delete ` | Delete a member | | `memberstack members add-plan ` | Add a free plan to a member | | `memberstack members remove-plan ` | Remove a free plan from a member | | `memberstack members count` | Show total member count | | `memberstack members find` | Find members by custom field or plan | | `memberstack members stats` | Show member statistics | | `memberstack members export` | Export all members to CSV or JSON | | `memberstack members import` | Import members from CSV or JSON | | `memberstack members bulk-update` | Bulk update members from file | | `memberstack members bulk-add-plan` | Add a plan to multiple members | | `memberstack members note ` | Update or clear a member's note | [Learn more about the members command](/docs/members) Data Tables [#data-tables] Manage data tables and their schemas. | Command | Description | | ----------------------------------- | ---------------------------------- | | `memberstack tables list` | List all data tables | | `memberstack tables get ` | Get a table by key or ID | | `memberstack tables describe ` | Show table schema and access rules | | `memberstack tables create` | Create a new table | | `memberstack tables update ` | Update table name or access rules | | `memberstack tables delete ` | Delete a table | [Learn more about the tables command](/docs/tables) Records [#records] Manage table records, including queries, bulk operations, and import/export. | Command | Description | | --------------------------------------- | ------------------------------------ | | `memberstack records create ` | Create a record | | `memberstack records update ` | Update a record | | `memberstack records delete ` | Delete a record | | `memberstack records query ` | Query records with raw JSON filters | | `memberstack records count ` | Count records in a table | | `memberstack records find ` | Filter records with `--where` syntax | | `memberstack records export ` | Export records to CSV or JSON | | `memberstack records import ` | Import records from CSV or JSON | | `memberstack records bulk-update` | Bulk update records from file | | `memberstack records bulk-delete ` | Bulk delete records matching filters | [Learn more about the records command](/docs/records) Custom Fields [#custom-fields] Manage custom member fields. | Command | Description | | --------------------------------------- | ---------------------- | | `memberstack custom-fields list` | List all custom fields | | `memberstack custom-fields create` | Create a custom field | | `memberstack custom-fields update ` | Update a custom field | | `memberstack custom-fields delete ` | Delete a custom field | [Learn more about the custom-fields command](/docs/custom-fields) Permissions [#permissions] Manage permissions and link them to plans or members. | Command | Description | | --------------------------------------- | --------------------------------- | | `memberstack permissions list` | List all permissions | | `memberstack permissions create` | Create a permission | | `memberstack permissions update ` | Update a permission | | `memberstack permissions delete ` | Delete a permission | | `memberstack permissions link-plan` | Link permissions to a plan | | `memberstack permissions unlink-plan` | Unlink a permission from a plan | | `memberstack permissions link-member` | Link permissions to a member | | `memberstack permissions unlink-member` | Unlink a permission from a member | [Learn more about the permissions command](/docs/permissions) Auth Providers [#auth-providers] Manage auth providers (e.g. Google, GitHub, Facebook). | Command | Description | | ----------------------------------- | ------------------------------ | | `memberstack providers list` | List configured auth providers | | `memberstack providers configure` | Configure an auth provider | | `memberstack providers remove ` | Remove an auth provider | [Learn more about the providers command](/docs/providers) SSO [#sso] Manage SSO apps. | Command | Description | | ----------------------------- | ----------------- | | `memberstack sso list` | List all SSO apps | | `memberstack sso create` | Create an SSO app | | `memberstack sso update ` | Update an SSO app | | `memberstack sso delete ` | Delete an SSO app | [Learn more about the sso command](/docs/sso) Users [#users] Manage users with access to your app. | Command | Description | | ---------------------------------------- | ------------------------------------- | | `memberstack users list` | List all users with access to the app | | `memberstack users get ` | Get a user by ID or email | | `memberstack users add` | Add a user to the app | | `memberstack users remove ` | Remove a user from the app | | `memberstack users update-role ` | Update a user's role | [Learn more about the users command](/docs/users) Skills [#skills] Manage Memberstack agent skills. | Command | Description | | ----------------------------------- | -------------------------------- | | `memberstack skills add ` | Add a Memberstack agent skill | | `memberstack skills remove ` | Remove a Memberstack agent skill | [Learn more about the skills command](/docs/skills) Utility [#utility] Standalone commands for CLI maintenance. | Command | Description | | -------------------- | ------------------------------------------------ | | `memberstack update` | Update the CLI to the latest version | | `memberstack reset` | Delete local data files and clear authentication | [Learn more about the update command](/docs/update) · [Learn more about the reset command](/docs/reset) FAQ [#faq] The CLI supports commands for authentication, app management, members, plans, prices, data tables, records, custom fields, permissions, auth providers, SSO, users, agent skills, and utility commands (update, reset). Each command group includes subcommands for listing, creating, updating, and deleting resources. Use `--mode live` or the `--live` shorthand with any command. You can also set the `MEMBERSTACK_MODE` environment variable. Without it, all commands run against your sandbox environment. See [Global Options](/docs/global-options) for details. Yes. Add the `--json` flag to any command to get raw JSON output instead of formatted tables. --- title: Custom Fields description: Manage custom fields for your Memberstack members. slug: /docs/custom-fields publishedOn: 2026-02-17T00:00:00.000Z updatedOn: 2026-02-19T00:00:00.000Z keywords: memberstack, custom-fields, members, data, cli --- # Custom Fields ``` memberstack custom-fields [options] ``` custom-fields list [#custom-fields-list] List all custom fields. ```bash memberstack custom-fields list ``` Example [#example] ```bash $ memberstack custom-fields list [ { "id": "fld_abc123", "key": "tier", "label": "Member Tier", "visibility": "PUBLIC", "hidden": false } ] ``` custom-fields create [#custom-fields-create] Create a new custom field. ```bash memberstack custom-fields create --key --label