Skip to content

Repository files navigation

Memberstack CLI

Flash Brew Digital OSSMIT License

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.

View Documentation

Memberstack, meet your terminal.

Installation

npm install -g memberstack-cli

Requires Node.js 20 or later.

Quick Start

# Authenticate with your Memberstack account# And choose your application
memberstack auth login
# Verify your identity
memberstack whoami

Usage

memberstack <command> [subcommand] [params] [options]

Install Agent Skill (Optional)

memberstack skills add memberstack-cli

Global Options

OptionEnv VarDescription
-j, --jsonMEMBERSTACK_JSONOutput raw JSON instead of formatted tables
-q, --quietSuppress banner and non-essential output
--no-colorNO_COLORDisable color output (respects the NO_COLOR standard)
--mode <mode>MEMBERSTACK_MODESet environment mode (sandbox or live, default: sandbox)
--liveShorthand for --mode live
--sandboxShorthand for --mode sandbox

Commands

CommandFunctionality
authLogin, logout, and check authentication status
whoamiShow current authenticated app and user
appsView, create, update, delete, and restore apps
membersList, create, update, delete, import/export, bulk ops
permissionsCreate, update, delete, and link/unlink to plans and members
plansList, create, update, delete, and reorder plans
pricesCreate, update, activate, deactivate, and delete prices
tablesList, create, update, delete, and describe schema
recordsCRUD, query, import/export, bulk ops
custom-fieldsList, create, update, and delete custom fields
usersList, get, add, remove, and update roles for app users
providersList, configure, and remove auth providers (e.g. Google)
ssoList, create, update, and delete SSO apps
skillsAdd/remove agent skills for Claude Code and Codex
updateUpdate the CLI to the latest version
resetDelete local data files and clear authentication

For full command details and usage, see the Command Reference.

Examples

# 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

Development

# 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-check

See ARCHITECTURE.md for project structure and design details.

Resources

Documentation

Contributing

Contributions are welcome! Please read our Contributing Guide for more information.

License

MIT License

Author

Ben Sabic at Flash Brew Digital

Disclaimer

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.

About

Manage your Memberstack account with a simple, yet powerful CLI.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Sponsor this project

Contributors

Languages