Skip to content

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

License

Notifications You must be signed in to change notification settings

Flash-Brew-Digital/memberstack-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Memberstack CLI

Flash Brew Digital OSS MIT 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

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

Commands

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.

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

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors 2

  •  
  •