---
title: Global Options
description: Flags available across Memberstack CLI commands, including environment targeting, output formatting, pagination, and bulk operation previews.
slug: /docs/global-options
publishedOn: 2026-02-20
updatedOn: 2026-02-21
keywords: ["memberstack", "cli", "global options", "flags", "live", "json", "pagination", "dry-run", "quiet", "no-color", "mode"]
index: /llms.txt
---

## 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`.

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

### Live

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

```bash
memberstack members list --live
memberstack plans list --live
```

### Sandbox

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

```bash
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.

```bash
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.

```bash
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.

```bash
memberstack members list --no-color
```

## Help

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

```bash
memberstack --help
memberstack members --help
memberstack members list -h
```

## Version

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

```bash
$ 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.

```bash
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`.

```bash
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`.

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

## FAQ

Q: Do all flags work with every command?
A: No. --mode, --live, --sandbox, --json, --quiet, and --no-color work with every command. --after and --all only apply to list commands, and --dry-run only applies to bulk operations.

Q: Can I combine --all with --after?
A: No. --all auto-paginates from the beginning. Use --after only when you want to manually control pagination with a cursor.

Q: Does --dry-run make any changes?
A: No. --dry-run simulates the operation and shows what would happen without applying any changes. It is safe to run at any time.

Q: Can I set the environment mode with an environment variable?
A: Yes. Set MEMBERSTACK_MODE to sandbox or live. The --live and --sandbox flags override the environment variable.

---

[Find Other Pages](/llms.txt)
[XML Sitemap](/sitemap.xml)
