Getting Started
Handy CLI for managing your Memberstack account. Create apps, edit members, change custom fields, and so much more.
Installation
npm install -g memberstack-cliAuthentication
Authenticate once with OAuth:
memberstack auth loginThis opens your browser, authenticates with Memberstack, and stores tokens locally at ~/.memberstack/auth.json.
See the Authentication page for full details.
Use memberstack whoami to confirm your current authenticated identity.
Quick Start
Check your identity
memberstack whoamiList members
memberstack members list
memberstack members list --all --order DESCCreate a member
memberstack members create --email user@example.com --password secure123View member statistics
memberstack members statsWork with data tables
memberstack tables list
memberstack tables describe my_table
memberstack records find my_table --where "status equals active"Export and import
memberstack members export --format csv --output backup.csv
memberstack members import --file backup.csvCommand Reference
| Command | Description |
|---|---|
| apps | Manage apps (current, create, update, delete, restore) |
| auth | Manage OAuth authentication (login, logout, status) |
| whoami | Show current authenticated identity |
| members | Manage members (CRUD, plans, import/export, bulk ops) |
| plans | Manage plans (list, get, create, update, delete, reorder) |
| tables | Manage data tables (CRUD, describe) |
| records | Manage table records (CRUD, query, import/export, bulk ops) |
| custom-fields | Manage custom fields (CRUD) |
Global Behavior
- Environment selection — Commands run against sandbox by default. Add
--liveto target your live environment. - JSON output — Add
--jsonto print raw JSON instead of formatted output. - Pagination — List commands use cursor-based pagination. Pass
--after <cursor>to page through results, or use--allto auto-paginate. - Rate limiting — Bulk operations insert a 100ms delay between API calls to avoid rate limits.
- Dry-run mode — Bulk commands support
--dry-runto preview changes without applying them. - Key-value options — Options like
--custom-fieldsand--dataaccept repeatablekey=valuepairs. - File formats — Import and export commands support both CSV and JSON formats.