Memberstack CLI

Getting Started

Handy CLI for managing your Memberstack account. Create apps, edit members, change custom fields, and so much more.

View Markdown

Installation

npm install -g memberstack-cli

Authentication

Authenticate once with OAuth:

memberstack auth login

This 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 whoami

List members

memberstack members list
memberstack members list --all --order DESC

Create a member

memberstack members create --email user@example.com --password secure123

View member statistics

memberstack members stats

Work 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.csv

Command Reference

CommandDescription
appsManage apps (current, create, update, delete, restore)
authManage OAuth authentication (login, logout, status)
whoamiShow current authenticated identity
membersManage members (CRUD, plans, import/export, bulk ops)
plansManage plans (list, get, create, update, delete, reorder)
tablesManage data tables (CRUD, describe)
recordsManage table records (CRUD, query, import/export, bulk ops)
custom-fieldsManage custom fields (CRUD)

Global Behavior

  • Environment selection — Commands run against sandbox by default. Add --live to target your live environment.
  • JSON output — Add --json to print raw JSON instead of formatted output.
  • Pagination — List commands use cursor-based pagination. Pass --after <cursor> to page through results, or use --all to auto-paginate.
  • Rate limiting — Bulk operations insert a 100ms delay between API calls to avoid rate limits.
  • Dry-run mode — Bulk commands support --dry-run to preview changes without applying them.
  • Key-value options — Options like --custom-fields and --data accept repeatable key=value pairs.
  • File formats — Import and export commands support both CSV and JSON formats.

On this page