Manage your Memberstack account from the terminal. Authenticate via OAuth, then create, read, update, and delete apps, members, plans, data tables, records, and custom fields. Get more done and give your AI agents the power to manage your membership site with ease.
npm install -g memberstack-cliRequires Node.js 20 or later.
# Authenticate with your Memberstack account
# And choose your application
memberstack auth login
# Verify your identity
memberstack whoamimemberstack <command> [subcommand] [params] [options]memberstack skills add memberstack-cli| Option | Env Var | Description |
|---|---|---|
-j, --json |
MEMBERSTACK_JSON |
Output raw JSON instead of formatted tables |
-q, --quiet |
Suppress banner and non-essential output | |
--no-color |
NO_COLOR |
Disable color output (respects the NO_COLOR standard) |
--mode <mode> |
MEMBERSTACK_MODE |
Set environment mode (sandbox or live, default: sandbox) |
--live |
Shorthand for --mode live |
|
--sandbox |
Shorthand for --mode sandbox |
| Command | Functionality |
|---|---|
auth |
Login, logout, and check authentication status |
whoami |
Show current authenticated app and user |
apps |
View, create, update, delete, and restore apps |
members |
List, create, update, delete, import/export, bulk ops |
permissions |
Create, update, delete, and link/unlink to plans and members |
plans |
List, create, update, delete, and reorder plans |
prices |
Create, update, activate, deactivate, and delete prices |
tables |
List, create, update, delete, and describe schema |
records |
CRUD, query, import/export, bulk ops |
custom-fields |
List, create, update, and delete custom fields |
users |
List, get, add, remove, and update roles for app users |
providers |
List, configure, and remove auth providers (e.g. Google) |
sso |
List, create, update, and delete SSO apps |
skills |
Add/remove agent skills for Claude Code and Codex |
update |
Update the CLI to the latest version |
reset |
Delete local data files and clear authentication |
For full command details and usage, see the Command Reference.
# List all members as JSON
memberstack members list --json
# Create a plan
memberstack plans create --name "Pro Plan" --description "Full access"
# Find records with a filter
memberstack records find my_table --where "status equals active" --take 10
# Export members to CSV
memberstack members export --format csv --output members.csv
# Import records from a JSON file
memberstack records import my_table --file data.json
# Use live environment
memberstack members list --mode live
memberstack members list --live# Install dependencies
pnpm install
# Run locally (via tsx, no build needed)
pnpm dev -- members list --json
# Build
pnpm build
# Run tests
pnpm test
# Lint
pnpm check
# Fix lint issues
pnpm fix
# Type check
pnpm type-checkSee ARCHITECTURE.md for project structure and design details.
Contributions are welcome! Please read our Contributing Guide for more information.
Ben Sabic at Flash Brew Digital
This is not an official Memberstack product. It is an independent, community-driven open-source project and is not affiliated with, endorsed by, or supported by Memberstack. "Memberstack" and the Memberstack logo are the property of Memberstack Inc.
Your OAuth tokens are stored locally on your machine at ~/.memberstack/auth.json with restrictive file permissions. Credentials are never shared with third parties, the CLI communicates directly with the Memberstack API and nothing else. You can revoke access at any time by running memberstack auth logout.