Memberstack CLI

Global Options

Flags available across Memberstack CLI commands, including environment targeting, output formatting, pagination, and bulk operation previews.

View Markdown

Mode

The --mode option, or MEMBERSTACK_MODE environment variable, can be used to set the environment mode to sandbox or live. The default mode is sandbox.

memberstack members list --mode live
MEMBERSTACK_MODE=live memberstack members list

Live

The --live option is a shorthand for --mode live.

memberstack members list --live
memberstack plans list --live

Sandbox

The --sandbox option is a shorthand for --mode sandbox.

MEMBERSTACK_MODE=live memberstack members list --sandbox

JSON

The --json option, shorthand -j, or MEMBERSTACK_JSON environment variable, can be used to output raw JSON instead of formatted tables.

memberstack members list --json
memberstack members list -j | jq '.data[].email'

Quiet

The --quiet option, shorthand -q, can be used to suppress the banner and non-essential output.

memberstack members list --quiet
memberstack members count -q

No Color

The --no-color option, or NO_COLOR=1 environment variable, can be used to execute commands with no color. This respects the NO_COLOR standard.

memberstack members list --no-color

Help

The --help option, shorthand -h, can be used to display more information about commands.

memberstack --help
memberstack members --help
memberstack members list -h

Version

The --version option, shorthand -V, shows the installed CLI version.

$ memberstack --version
1.1.0

After

The --after option can be used to paginate through list results using a cursor. When more results are available, the output includes an endCursor value. Pass that value to --after to fetch the next page.

memberstack members list
memberstack members list --after eyJpZCI6Im1lbV8xMjM0NTY3ODkwIn0

All

The --all option can be used to auto-paginate through all list results in a single command. Do not combine with --after.

memberstack members list --all
memberstack plans list --all

Dry Run

The --dry-run option can be used to preview bulk operations without applying changes. Supported by bulk-update, bulk-add-plan, and bulk-delete.

memberstack members bulk-update --file updates.csv --dry-run
memberstack members bulk-add-plan --plan pln_abc123 --filter no-plan --dry-run

FAQ

How is this guide?

Last updated on

On this page