CLI
Install the CLI, sign in, manage secrets, validate factories, and use webhooks.
Installation
bun add -g @usestitch/cli
stitch --helpUse each command's --help for further options.
Run without installing
Use bunx --bun or npx to run the CLI without a global installation.
bunx --bun @usestitch/cli --helpAuthentication
| Command | Purpose |
|---|---|
stitch auth login | Browser-approved device login |
stitch auth whoami | Check active identity and organization |
stitch auth logout | Revoke CLI session |
Repositories
| Command | Purpose |
|---|---|
stitch repositories list | List connected repositories |
Secrets
| Command | Purpose |
|---|---|
stitch secrets list | List secret metadata, not values |
stitch secrets add <name> | Add a value through a hidden prompt |
stitch secrets import claude --name <name> | Import a Claude subscription token |
stitch secrets remove <name> | Delete a secret (owner or admin only) |
secrets remove deletes immediately without confirmation.Validation
| Command | Purpose |
|---|---|
stitch validate [file] --dry-run | Offline schema and cross-field checks |
stitch validate [file] --repository <id> [--ref <ref>] | Full read-only validation |
Default file: stitch-factory.yaml. Do not combine --dry-run with --repository or --ref.
Full validation needs login, a connected repository ID, and referenced secrets.
Inspect ok, valid, and errors; errors include codes, JSON paths, and available hints.
valid: null means validation could not complete, not that the file is valid.
Validation does not apply changes or test credentials. Deployment occurs through the default branch.
Webhooks
| Command | Purpose |
|---|---|
stitch webhooks list | List webhook integrations |
stitch webhooks get <integration-id> | Inspect an endpoint and its subscribed triggers |
stitch webhooks deliveries <integration-id> | Inspect delivery results |
stitch webhooks send <integration-id> --event <name> --idempotency-key <id> --data-file <file> | Send an event with your CLI session |
Create integrations and replace signing secrets in Integrations. Replacing a secret invalidates the old secret immediately. CLI inspection never returns signing secrets.