Memberstack CLI

Command Reference

Every Memberstack CLI command at a glance. Quick reference for auth, apps, members, plans, prices, and more.

View Markdown
memberstack <command> [subcommand] [parameters] [options]

Global Options

Global options are available to use with multiple Memberstack CLI commands.

FlagAliasDescription
--mode <mode>Set environment mode (sandbox or live)
--liveShorthand for --mode live
--sandboxShorthand for --mode sandbox
--json-jOutput raw JSON instead of formatted tables
--quiet-qSuppress banner and non-essential output
--no-colorDisable color output (respects the NO_COLOR standard)
--help-hShow help for any command
--version-VShow the installed CLI version

Pagination & Bulk Flags

These flags only apply to specific commands:

FlagApplies toDescription
--after <cursor>List commandsPagination cursor for fetching the next page of results
--allList commandsAuto-paginate through all results
--dry-runBulk operationsPreview changes without applying them

Learn more about global options

Authentication

Manage OAuth login, logout, session status, and profile updates.

CommandDescription
memberstack auth loginOpen browser-based OAuth flow
memberstack auth logoutRevoke tokens and delete local credentials
memberstack auth statusShow current auth state, app ID, and token expiry
memberstack auth update-profileUpdate your profile (name, email)
memberstack whoamiDisplay authenticated email, app ID, and environment

Learn more about the auth command

Apps

Manage your Memberstack applications.

CommandDescription
memberstack apps currentShow the current app
memberstack apps createCreate a new app
memberstack apps updateUpdate app settings
memberstack apps deleteDelete an app
memberstack apps restoreRestore a deleted app

Learn more about the apps command

Plans

Manage membership plans.

CommandDescription
memberstack plans listList all plans (filterable by status)
memberstack plans get <id>Get a plan by ID
memberstack plans createCreate a new plan
memberstack plans update <id>Update a plan
memberstack plans delete <id>Delete a plan
memberstack plans orderReorder plans by priority

Learn more about the plans command

Prices

Manage prices for plans.

CommandDescription
memberstack prices createCreate a price for a plan
memberstack prices update <priceId>Update a price
memberstack prices activate <priceId>Reactivate a price
memberstack prices deactivate <priceId>Deactivate a price
memberstack prices delete <priceId>Delete a price

Learn more about the prices command

Members

Manage members, including bulk operations and import/export.

CommandDescription
memberstack members listList members with pagination and sorting
memberstack members get <id>Get a member by ID or email
memberstack members createCreate a new member
memberstack members update <id>Update a member
memberstack members delete <id>Delete a member
memberstack members add-plan <id>Add a free plan to a member
memberstack members remove-plan <id>Remove a free plan from a member
memberstack members countShow total member count
memberstack members findFind members by custom field or plan
memberstack members statsShow member statistics
memberstack members exportExport all members to CSV or JSON
memberstack members importImport members from CSV or JSON
memberstack members bulk-updateBulk update members from file
memberstack members bulk-add-planAdd a plan to multiple members
memberstack members note <id>Update or clear a member's note

Learn more about the members command

Data Tables

Manage data tables and their schemas.

CommandDescription
memberstack tables listList all data tables
memberstack tables get <key>Get a table by key or ID
memberstack tables describe <key>Show table schema and access rules
memberstack tables createCreate a new table
memberstack tables update <id>Update table name or access rules
memberstack tables delete <id>Delete a table

Learn more about the tables command

Records

Manage table records, including queries, bulk operations, and import/export.

CommandDescription
memberstack records create <key>Create a record
memberstack records update <key> <id>Update a record
memberstack records delete <key> <id>Delete a record
memberstack records query <key>Query records with raw JSON filters
memberstack records count <key>Count records in a table
memberstack records find <key>Filter records with --where syntax
memberstack records export <key>Export records to CSV or JSON
memberstack records import <key>Import records from CSV or JSON
memberstack records bulk-updateBulk update records from file
memberstack records bulk-delete <key>Bulk delete records matching filters

Learn more about the records command

Custom Fields

Manage custom member fields.

CommandDescription
memberstack custom-fields listList all custom fields
memberstack custom-fields createCreate a custom field
memberstack custom-fields update <id>Update a custom field
memberstack custom-fields delete <id>Delete a custom field

Learn more about the custom-fields command

Permissions

Manage permissions and link them to plans or members.

CommandDescription
memberstack permissions listList all permissions
memberstack permissions createCreate a permission
memberstack permissions update <id>Update a permission
memberstack permissions delete <id>Delete a permission
memberstack permissions link-planLink permissions to a plan
memberstack permissions unlink-planUnlink a permission from a plan
memberstack permissions link-memberLink permissions to a member
memberstack permissions unlink-memberUnlink a permission from a member

Learn more about the permissions command

Auth Providers

Manage auth providers (e.g. Google, GitHub, Facebook).

CommandDescription
memberstack providers listList configured auth providers
memberstack providers configureConfigure an auth provider
memberstack providers remove <id>Remove an auth provider

Learn more about the providers command

SSO

Manage SSO apps.

CommandDescription
memberstack sso listList all SSO apps
memberstack sso createCreate an SSO app
memberstack sso update <id>Update an SSO app
memberstack sso delete <id>Delete an SSO app

Learn more about the sso command

Users

Manage users with access to your app.

CommandDescription
memberstack users listList all users with access to the app
memberstack users get <id_or_email>Get a user by ID or email
memberstack users addAdd a user to the app
memberstack users remove <userId>Remove a user from the app
memberstack users update-role <userId>Update a user's role

Learn more about the users command

Skills

Manage Memberstack agent skills.

CommandDescription
memberstack skills add <skill>Add a Memberstack agent skill
memberstack skills remove <skill>Remove a Memberstack agent skill

Learn more about the skills command

Utility

Standalone commands for CLI maintenance.

CommandDescription
memberstack updateUpdate the CLI to the latest version
memberstack resetDelete local data files and clear authentication

Learn more about the update command · Learn more about the reset command

FAQ

How is this guide?

Last updated on

On this page