# Commands

Use `mcpstack <command>` for interactive harness selection or `--harness codex` or `--harness claude` for unattended runs. Namespaced `mcpstack <harness> <command>` forms remain available. Only `import` accepts multiple harnesses. `--config <PATH>` selects a configuration for one harness.

`--non-interactive` disables prompts; `-y` approves changes. Permissions always require `--include-permissions`.

## Operations

| Command | Purpose |
| --- | --- |
| [list](command-list.md) | List configured servers without running them. |
| [show](command-show.md) | Print a portable YAML stack to stdout. |
| [export](command-export.md) | Save a portable YAML stack. |
| [diff](command-diff.md) | Preview a redacted import diff without writing files or running servers. |
| [import](command-import.md) | Merge server additions and replacements; preserve servers absent from the stack. |
| [use](command-use.md) | Replace the entire server set. **Servers absent from the stack are removed.** |
| [validate](command-validate.md) | Check stack syntax without resolving secrets, reading client config, or running servers. |
| [update](command-update.md) | Check for or install the latest stable release from crates.io. |
| [help](command-help.md) | Show command help. |

## Exit statuses

Zero means success, cancellation, or no change; nonzero means failure.

[Full help](help-mcpstack.txt) · [CLI schema and error codes](cli-schema.json) · Version 0.2.0

