Stitch / docs

CLI

Install the CLI, sign in, manage secrets, validate factories, and use webhooks.


Installation

bun add -g @usestitch/cli
stitch --help

Use 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 --help

Authentication

CommandPurpose
stitch auth loginBrowser-approved device login
stitch auth whoamiCheck active identity and organization
stitch auth logoutRevoke CLI session

Repositories

CommandPurpose
stitch repositories listList connected repositories

Secrets

CommandPurpose
stitch secrets listList 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

CommandPurpose
stitch validate [file] --dry-runOffline 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

CommandPurpose
stitch webhooks listList 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.

On this page