CLI Commands

Complete command and flag reference for the Stitch CLI.

The @google/stitch CLI exposes resource verbs (find, get, create, edit, delete, generate, open, url) alongside Canvas, capture, and configuration commands.

Commands and resources marked Workspace require running stitch enable loop once on your machine.

CommandCategorySurface
stitch createResourcesDefault
stitch deleteResourcesDefault
stitch editResourcesDefault
stitch findResourcesDefault
stitch generateResourcesDefault
stitch getResourcesDefault
stitch captureActions & CanvasDefault
stitch connectActions & CanvasWorkspace
stitch openActions & CanvasDefault
stitch serveActions & CanvasDefault
stitch uploadActions & CanvasDefault
stitch urlActions & CanvasDefault
stitch configAuth & ConfigDefault
stitch disableAuth & ConfigDefault
stitch enableAuth & ConfigDefault
stitch githubAuth & ConfigWorkspace
stitch loginAuth & ConfigDefault
stitch logoutAuth & ConfigDefault
stitch privacyAuth & ConfigDefault
stitch statusAuth & ConfigDefault
stitch agent-skillsAdvancedDefault
stitch apiAdvancedWorkspace
stitch mcpAdvancedDefault
stitch cacheOtherWorkspace
stitch downloadOtherDefault
stitch feedbackOtherDefault

Global flags

These flags work with any stitch command:

FlagTypeDescription
--access-tokenstringOAuth 2.0 access token (env: STITCH_ACCESS_TOKEN)
--api-keystringPass an API key for this command run (flag: –api-key, env: STITCH_API_KEY)
--base-urlstringAPI base URL (env: STITCH_BASE_URL)
--colorenumWhen to emit ANSI color codes: auto, always, or never (default: auto)
--debugbooleanShow debug information, including stack traces
--expandbooleanShow full content in detail views (e.g., context get, solutions get)
--fieldsstringComma-separated field mask
--format, -fenumOutput format: table, markdown, json, or ndjson (default: auto-detect)
--jsonbooleanOutput JSON
--no-cachebooleanBypass the local cache and fetch everything from the network
--quiet, -qbooleanSuppress non-essential output and banners
--schemabooleanIntrospect: show schema (write) or field list (read)
--tracebooleanOutput raw HTTP network traces and cURL reproductions to stderr
--workspace, -wstringWorkspace ID (run ‘stitch find workspaces’ to list; env: STITCH_WORKSPACE)

Environment variables

VariableDescription
STITCH_API_KEYAPI key to use instead of an OAuth login (same as --api-key)
STITCH_ACCESS_TOKENOAuth 2.0 access token (same as --access-token)
STITCH_PROJECT_IDDefault Stitch project ID (same as --project)
STITCH_WORKSPACEDefault workspace ID (same as --workspace)
STITCH_BASE_URLAPI base URL (same as --base-url)
STITCH_CANVAS_URLStitch web host used for every generated Canvas link (default: https://stitch.google.com)
STITCH_FORMATDefault output format (same as --format)
STITCH_QUIETSuppress non-essential output and banners (same as --quiet)
STITCH_NO_CACHESet to 1 to turn off the local cache
STITCH_NO_BROWSERNever launch a browser; print URLs instead

Exit codes

CodeMeaning
0Success
1Operational failure: network, authentication, or API error
2Usage error: unknown command or flag, missing required argument, or an invalid value or JSON payload
124stitch generate insights --watch timed out (see --timeout)

stitch create

Create a Stitch resource

stitch create [resource] [flags]

Positional arguments

ArgumentRequiredDescription
resourcefalseResource type to create

Command flags

Also accepts all global flags.

FlagTypeDescription
--applybooleanAutomatically apply the created design system to screens in the project (design-system only)
--autonomy-levelstringAutonomy level: CREATE_SUGGESTIONS or CREATE_ASSETS (loop resources only)
--descriptionstringLoop description, or context content (loop and context resources only)
--dry-runbooleanValidate payload and preview mutation without making API calls
--interactive, -ibooleanSelect from recommended starter templates (loop resources only)
--namestringWorkspace name (workspace resources only; --title is also accepted)
--objectivestringLoop objective statement (loop resources only)
--project, -pstringStitch Project ID (run ‘stitch find projects’ to list; env: STITCH_PROJECT_ID)
--providerstringProvider ID from ‘stitch find connections’ (e.g. slack, linear) (connection resources only)
--screenstringScreen ID(s) (comma-separated) to apply the created design system to (design-system only)
--template, -tstringTemplate ID, title, or 1-based index to create from (loop resources only)
--templatesbooleanList recommended starter templates without creating anything (loop resources only)
--titlestringProject title, or context label (project and context resources only)

Supported resources

ResourceSurfaceDescription
projectDefaultA Stitch canvas holding generated screens.
screenDefaultA single generated design on a Stitch canvas.
design-systemDefaultA shared visual language applied to generated screens.
workspaceWorkspaceA repository paired with Stitch, holding its loops, insights, and context.
contextWorkspaceExternal material attached to a workspace so Stitch can reason about more than the code.
skillWorkspaceInstructions that shape how Stitch agents read a workspace. Not the same as ‘stitch agent-skills’, which writes local SKILL.md files.
loopWorkspaceA standing order: an objective plus an autonomy level that Stitch keeps working against.
webhookWorkspaceAn HTTP callback fired when workspace events occur.
connectionWorkspaceAn integration linking a workspace to an external tool such as Slack or an MCP server (GitHub is linked with ‘stitch github install’).

Examples

stitch create project --title "Checkout Redesign"
stitch create workspace --name "Acme Web App"
stitch create loop --workspace <workspace-id> --template ui-prototyping
stitch create context --workspace <workspace-id> --title "Q3 Metrics" --description "Weekly active users grew 12% quarter over quarter."
stitch create connection --workspace <workspace-id> --provider slack

To create a design system from a DESIGN.md file, use stitch upload design.


stitch delete

Delete a Stitch resource by ID

stitch delete [resource] [id] [flags]

Positional arguments

ArgumentRequiredDescription
resourcefalseResource type to delete
idfalseResource ID to delete (or --id)

Command flags

Also accepts all global flags.

FlagTypeDescription
--dry-runbooleanValidate payload and preview deletion without making API calls
--forcebooleanForce deletion without confirmation
--idstringResource ID to delete
--project, -pstringStitch Project ID (run ‘stitch find projects’ to list; env: STITCH_PROJECT_ID)
--yes, -ybooleanBypass confirmation prompt

Supported resources

ResourceSurfaceDescription
projectDefaultA Stitch canvas holding generated screens.
workspaceWorkspaceA repository paired with Stitch, holding its loops, insights, and context.
contextWorkspaceExternal material attached to a workspace so Stitch can reason about more than the code.
fileWorkspaceAn individual file uploaded to a workspace.
skillWorkspaceInstructions that shape how Stitch agents read a workspace. Not the same as ‘stitch agent-skills’, which writes local SKILL.md files.
loopWorkspaceA standing order: an objective plus an autonomy level that Stitch keeps working against.
webhookWorkspaceAn HTTP callback fired when workspace events occur.
connectionWorkspaceAn integration linking a workspace to an external tool such as Slack or an MCP server (GitHub is linked with ‘stitch github install’).

Examples

stitch delete project <project-id> --force
stitch delete loop <loop-id> --workspace <workspace-id> --force
stitch delete context <context-id> --workspace <workspace-id> --force

Outside an interactive terminal, stitch delete fails unless you pass --yes (or --force), so add it in scripts and CI.


stitch edit

Update mutable fields on a Stitch resource

stitch edit [resource] [id] [flags]

Positional arguments

ArgumentRequiredDescription
resourcefalseTarget resource type to edit
idfalseTarget resource ID (or repeatable –id <id>)

Command flags

Also accepts all global flags.

FlagTypeDescription
--add-repostringAdd a repository to a workspace (URL, owner/repo shorthand, or ID)
--design-systemstringDesign system asset ID to apply to the target screen(s)
--devicestringTarget screen device type (DESKTOP or MOBILE)
--dry-runbooleanValidate payload and preview mutation without making API calls
--modelstringModel for Stitch screen editing (GEMINI_3_8_FLASH or GEMINI_3_5_FLASH_LITE)
--objectivestringNew objective. Objectives are immutable, so this replaces the loop with a new one that has a new ID (loop resources only)
--project, -pstringStitch Project ID (run ‘stitch find projects’ to list; env: STITCH_PROJECT_ID)
--promptstringArt-direction prompt for Stitch screen editing
--remove-repostringRemove a repository from a workspace (URL, owner/repo shorthand, or ID)

Supported resources

ResourceSurfaceDescription
screenDefaultA single generated design on a Stitch canvas.
design-systemDefaultA shared visual language applied to generated screens.
workspaceWorkspaceA repository paired with Stitch, holding its loops, insights, and context.
contextWorkspaceExternal material attached to a workspace so Stitch can reason about more than the code.
fileWorkspaceAn individual file uploaded to a workspace.
skillWorkspaceInstructions that shape how Stitch agents read a workspace. Not the same as ‘stitch agent-skills’, which writes local SKILL.md files.
loopWorkspaceA standing order: an objective plus an autonomy level that Stitch keeps working against.
webhookWorkspaceAn HTTP callback fired when workspace events occur.

Examples

stitch edit screen <screen-id> --project <project-id> --prompt "Switch to a compact header"
stitch edit screen <screen-id> --project <project-id> --design-system <design-system-id>
stitch edit workspace <workspace-id> --add-repo <owner>/<repo>
stitch edit loop <loop-id> --workspace <workspace-id> --json '{"description":"Focus on mobile schedule views"}'

stitch find

Find Stitch resources matching filter criteria

stitch find [resource] [flags]

Positional arguments

ArgumentRequiredDescription
resourcefalseResource type to find

Command flags

Also accepts all global flags.

FlagTypeDescription
--filterstringFilter expression
--insightstringFilter by insight ID (or comma-separated insight IDs)
--limitstringMaximum number of results
--loopstringFilter by loop ID (or comma-separated loop IDs)
--page-sizestringMaximum items per page requested from the API
--page-tokenstringToken for retrieving the next page of results
--project, -pstringStitch Project ID (run ‘stitch find projects’ to list; env: STITCH_PROJECT_ID)

Supported resources

ResourceSurfaceDescription
projectDefaultA Stitch canvas holding generated screens.
screenDefaultA single generated design on a Stitch canvas.
design-systemDefaultA shared visual language applied to generated screens.
workspaceWorkspaceA repository paired with Stitch, holding its loops, insights, and context.
contextWorkspaceExternal material attached to a workspace so Stitch can reason about more than the code.
fileWorkspaceAn individual file uploaded to a workspace.
skillWorkspaceInstructions that shape how Stitch agents read a workspace. Not the same as ‘stitch agent-skills’, which writes local SKILL.md files.
loopWorkspaceA standing order: an objective plus an autonomy level that Stitch keeps working against.
webhookWorkspaceAn HTTP callback fired when workspace events occur.
insightWorkspaceA specific, route-anchored opportunity Stitch found while mining your codebase against a loop.
solutionWorkspaceA proposed change answering an insight.
connectionWorkspaceAn integration linking a workspace to an external tool such as Slack or an MCP server (GitHub is linked with ‘stitch github install’).
organizationWorkspaceYour organization’s settings and GitHub App installation.

Examples

stitch find projects --limit 10
stitch find screens --project <project-id>
stitch find design-systems
stitch find loops --workspace <workspace-id>
stitch find insights --workspace <workspace-id> --loop <loop-id>

stitch generate

Trigger generative creation of Stitch screens, variants, insights, or solutions

stitch generate [resource] [flags]

Positional arguments

ArgumentRequiredDescription
resourcefalseResource type to generate (screen, variants, insights, solutions)

Command flags

Also accepts all global flags.

FlagTypeDescription
--aspectsstringComma-separated aspects to vary (LAYOUT, COLOR_SCHEME, IMAGES, TEXT_FONT, TEXT_CONTENT)
--countstringNumber of variants to generate (1-5)
--creative-rangestringHow far variants stray from the source (REFINE, EXPLORE, REIMAGINE)
--delaybooleanDelay insight generation execution
--device, -dstringTarget screen device type (DESKTOP or MOBILE)
--dry-runbooleanValidate payload and preview action without calling the backend
--insightstringInsight ID or comma-separated insight IDs for solution generation
--intervalstringWith –watch, polling interval in milliseconds (default: 2000, up to 60000 while queued)
--loopstringLoop ID or comma-separated loop IDs for insight generation
--modelstringGeneration model ID (GEMINI_3_8_FLASH or GEMINI_3_5_FLASH_LITE)
--new-projectstringCreate a new Stitch project with optional title
--notifybooleanWith –watch, send a desktop notification when it ends
--project, -pstringStitch Project ID (run ‘stitch find projects’ to list; env: STITCH_PROJECT_ID)
--promptstringArt-direction prompt for screen or variant generation
--replace-existingbooleanReplace existing unassigned solutions when generating solutions
--screenstringSource screen ID for variant generation
--timeoutstringWith –watch, seconds to wait before giving up (default: 3600)
--titlestringScreen title, requested in the prompt (Stitch may choose another; you get a warning if so). With –new-project and no –project, names the new project instead
--watchbooleanWait until insight generation finishes. Exit code: 0 completed, 1 failed, 124 timed out

Supported resources

ResourceSurfaceDescription
screenDefaultA single generated design on a Stitch canvas.
variantDefaultDesign variations generated from an existing Stitch screen.
insightWorkspaceA specific, route-anchored opportunity Stitch found while mining your codebase against a loop.
solutionWorkspaceA proposed change answering an insight.

Examples

stitch generate screen --project <project-id> --prompt "Minimalist vinyl music player"
stitch generate screen --new-project "Mobile Onboarding" --prompt "Sign-up step with email verification" --device MOBILE
stitch generate variants --screen <screen-id> --project <project-id> --count 2 --creative-range EXPLORE --prompt "Try warm editorial typography"
stitch generate insights --workspace <workspace-id> --loop <loop-id> --watch

stitch get

Get a Stitch resource by ID or evaluate the diagnostic status FSM (flows: stitch status –flow)

stitch get [resource] [id] [flags]

Positional arguments

ArgumentRequiredDescription
resourcefalseResource type (or ‘status’ for diagnostic FSM)
idfalseResource ID

Command flags

Also accepts all global flags.

FlagTypeDescription
--project, -pstringStitch Project ID (run ‘stitch find projects’ to list; env: STITCH_PROJECT_ID)

Supported resources

ResourceSurfaceDescription
projectDefaultA Stitch canvas holding generated screens.
screenDefaultA single generated design on a Stitch canvas.
design-systemDefaultA shared visual language applied to generated screens.
statusDefaultThe 11-state onboarding and diagnostic state machine for a workspace.
workspaceWorkspaceA repository paired with Stitch, holding its loops, insights, and context.
contextWorkspaceExternal material attached to a workspace so Stitch can reason about more than the code.
fileWorkspaceAn individual file uploaded to a workspace.
skillWorkspaceInstructions that shape how Stitch agents read a workspace. Not the same as ‘stitch agent-skills’, which writes local SKILL.md files.
loopWorkspaceA standing order: an objective plus an autonomy level that Stitch keeps working against.
webhookWorkspaceAn HTTP callback fired when workspace events occur.
insightWorkspaceA specific, route-anchored opportunity Stitch found while mining your codebase against a loop.
solutionWorkspaceA proposed change answering an insight.
connectionWorkspaceAn integration linking a workspace to an external tool such as Slack or an MCP server (GitHub is linked with ‘stitch github install’).
organizationWorkspaceYour organization’s settings and GitHub App installation.

Examples

stitch get project <project-id>
stitch get screen <screen-id> --project <project-id>
stitch get design-system <asset-id>
stitch get loop <loop-id> --workspace <workspace-id>

stitch capture

Capture a page as self-contained HTML for Canvas: stitch capture <url|path> [-o file], or --tab for the open tab

stitch capture [target] [flags]
stitch capture <subcommand> [flags]

Positional arguments

ArgumentRequiredDescription
targetfalseURL to load and capture, or path to a local HTML file (omit with –tab)

Command flags

Also accepts all global flags.

FlagTypeDescription
--allow-redirectbooleanSave the page even if it ended on a different route than requested
--authstringSign-in state file (Playwright storageState JSON)
--originstringFor a file: origin that serves its root-relative assets (e.g. http://localhost:3000)
--output, -ostringWhere to save the HTML (default: .stitch/captures/<route>.html; “-” prints it to stdout)
--preparestringPath to a JS file run inside page before capture (sign in, seed state). Await app state with __stitchWaitFor("#selector")
--settle-timeoutstringMax ms to wait for loading indicators (skeletons, aria-busy, spinners) to clear (default: 15000)
--tabstringCapture an open chrome-devtools tab as it is, without loading a URL (optional tab id)
--wait-forstringCSS selector to wait for before capturing (ensures dynamic DOM is rendered)
--wait-untilstringHydration barrier condition: networkidle0 (default), networkidle2, load, domcontentloaded

Subcommands

SubcommandSurfaceDescription
capture browserDefault(advanced) Capture a URL in Chrome, or an open tab with –tab. Same as stitch capture <url>
capture portDefault(advanced) Fetch server-rendered HTML over HTTP without running JavaScript
capture fileDefault(advanced) Make a local HTML file or stdin self-contained. Same as stitch capture <path>
capture routesDefaultList the app’s routes found in the codebase

Examples

stitch capture http://localhost:3000/library
stitch capture --tab --output .stitch/dashboard.html
stitch capture .stitch/page.html --origin http://localhost:3000
stitch capture http://localhost:3000/studio --auth .stitch/storage.json
stitch capture routes

stitch connect

Connect a tool or integration to a workspace via the provider OAuth flow

Requires workspace features to be enabled via stitch enable loop.

stitch connect [toolId] [flags]

Positional arguments

ArgumentRequiredDescription
toolIdfalseTool or provider ID (e.g. github, slack). Omit or pass –list to see available options.

Command flags

Also accepts all global flags.

FlagTypeDescription
--allbooleanList all available integrations without capping to top 25 popular
--connectedbooleanShow only connected integrations
--list, -lbooleanList available tool and provider IDs that can be connected
--no-browserbooleanDo not launch the browser automatically
--search, -sstringFilter integrations by ID, display name, or description
--timeoutstringTimeout in seconds to wait for connection (default: 120)

stitch open

Open a Stitch project or screen in the browser (strictly project | screen)

stitch open [resource] [id] [flags]

Positional arguments

ArgumentRequiredDescription
resourcefalseTarget resource type (‘project’
idfalseProject or screen ID, projects/<p>/screens/<s> name, or canvas URL (default: this directory’s project or reference screen)

Command flags

Also accepts all global flags.

FlagTypeDescription
--project, -pstringStitch Project ID (run ‘stitch find projects’ to list; env: STITCH_PROJECT_ID)
--url, -printbooleanPrint the URL instead of opening (env: STITCH_NO_BROWSER, BROWSER)

Supported resources

ResourceSurfaceDescription
projectDefaultA Stitch canvas holding generated screens.
screenDefaultA single generated design on a Stitch canvas.

Examples

stitch open project <project-id>
stitch open screen <screen-id> --project <project-id>

stitch serve

Launch local preview dev server for Stitch project screens

stitch serve [flags]

Command flags

Also accepts all global flags.

FlagTypeDescription
--dry-runbooleanVerify server configuration without blocking
--portstringLocal port to listen on (default: 3000)
--project, -pstringStitch project ID to preview

stitch upload

Upload files, codebase archives, or design assets

stitch upload <subcommand> [flags]

Subcommands

SubcommandSurfaceDescription
upload codeWorkspaceUpload codebase archive (.zip or directory)
upload designDefaultUpload a DESIGN.md file to a Stitch Canvas project
upload fileWorkspaceUpload a file to the workspace (.md and .txt files are stored as a context)
upload screenDefaultUpload an HTML or image file as a screen on Stitch Canvas

Subcommand flags

SubcommandFlagTypeDescription
upload code--name, -nstringDisplay name for the uploaded codebase archive
upload code--descriptionstringDescription for the uploaded codebase
upload code--dry-runbooleanPreview mutation without executing
upload design--project, -pstringTarget Stitch Canvas project ID (defaults to manifest project ID)
upload design--applybooleanAutomatically apply the uploaded design system to screens in the project
upload design--screenstringScreen ID(s) (comma-separated) to apply the uploaded design system to
upload design--cwdstringTarget working directory context
upload design--dry-runbooleanValidate payload and preview upload without making API calls
upload file--name, -nstringDisplay name for the uploaded file
upload file--descriptionstringDescription of the file
upload file--mime-type, -mstringMIME type of the file (inferred from extension if omitted)
upload file--dry-runbooleanPreview mutation without executing
upload screen--project, -pstringTarget Stitch Canvas project ID (defaults to the linked project)
upload screen--titlestringScreen title (default: the file’s name)
upload screen--routestringRecord the screen as the manifest’s reference screen for this route
upload screen--cwdstringTarget working directory context
upload screen--dry-runbooleanValidate the upload without calling Stitch

Examples

stitch upload design DESIGN.md --project <project-id> --apply
stitch upload screen .stitch/checkout.html --route /checkout --title Checkout
stitch upload file ./docs/architecture.pdf --name "Architecture Doc"
stitch upload code .

stitch url

Print the canonical Stitch Canvas web URL for a project or screen (never guess URLs)

stitch url [resource] [id] [flags]

Positional arguments

ArgumentRequiredDescription
resourcefalseTarget resource type (‘project’
idfalseProject or screen ID, projects/<p>/screens/<s> name, or canvas URL (default: this directory’s project or reference screen)

Command flags

Also accepts all global flags.

FlagTypeDescription
--project, -pstringStitch Project ID (run ‘stitch find projects’ to list; env: STITCH_PROJECT_ID)

Supported resources

ResourceSurfaceDescription
projectDefaultA Stitch canvas holding generated screens.
screenDefaultA single generated design on a Stitch canvas.

Examples

stitch url project <project-id>
stitch url screen <screen-id> --project <project-id>

stitch config

Read and write Stitch CLI configuration

stitch config <subcommand> [flags]

Subcommands

SubcommandSurfaceDescription
config listDefaultShow resolved config from the full priority chain (--global for global config only)
config getDefaultGet a single config value by key
config setDefaultSet a config value (writes to .stitch.json; --global writes to ~/.stitch.json)
config unsetDefaultRemove a config key (--global removes from ~/.stitch.json)

stitch disable

Disable an experimental feature globally (e.g. ‘stitch disable loop’)

stitch disable [feature] [flags]

Positional arguments

ArgumentRequiredDescription
featurefalseExperimental feature to disable globally (e.g. loop)

Command flags

Also accepts all global flags.

FlagTypeDescription
--dry-runbooleanPreview mutation without executing

stitch enable

Enable an experimental feature globally (e.g. ‘stitch enable loop’)

stitch enable [feature] [flags]

Positional arguments

ArgumentRequiredDescription
featurefalseExperimental feature to enable globally: loop (enables workspace commands like api, connect, and resources like workspaces, loops)

Command flags

Also accepts all global flags.

FlagTypeDescription
--dry-runbooleanPreview mutation without executing

stitch github

Manage GitHub account connection, OAuth authorization, and GitHub App organization installations

Requires workspace features to be enabled via stitch enable loop.

stitch github <subcommand> [flags]

Subcommands

SubcommandSurfaceDescription
github loginWorkspaceAuthenticate with GitHub (opens browser OAuth authorization page). Alias: github auth. Pass --reauth to force re-authentication
github installWorkspaceConfigure GitHub App organization installation and repository access permissions. Alias: github configure
github statusWorkspaceCheck GitHub integration status, linked organizations, and accessible repositories
github reposWorkspaceList GitHub repositories the Stitch GitHub App can access, to attach to a workspace

stitch login

Authenticate with Google OAuth 2.0 PKCE or save a permanent API key

stitch login [flags]

Command flags

Also accepts all global flags.

FlagTypeDescription
--portstringLocal loopback callback port (default: 8085)

stitch logout

Log out and remove local OAuth credentials and saved API keys

stitch logout [flags]

stitch privacy

Manage and inspect Stitch Privacy Notice & Terms of Service acknowledgment

stitch privacy <subcommand> [flags]

Subcommands

SubcommandSurfaceDescription
privacy statusDefaultCheck the current Privacy Notice acknowledgment status on the server
privacy acceptDefaultOpen the Stitch Terms of Service on the web and wait for acceptance
privacy showDefaultDisplay the Stitch Privacy Notice and Terms of Service web page URL (--open opens it in your browser)

stitch status

Show auth, Canvas credential, and GitHub status, or evaluate an onboarding flow with –flow

stitch status [flowArg] [flags]

Positional arguments

ArgumentRequiredDescription
flowArgfalseOptional flow to evaluate (design

Command flags

Also accepts all global flags.

FlagTypeDescription
--cwdstringWorking directory used when evaluating a flow
--flowstringEvaluate an onboarding flow and return its current step (design
--tokenbooleanPrint a valid OAuth bearer access token (auto-refreshes if expired)

stitch agent-skills

Install and update the local Stitch agent skill. For workspace skills, use ‘stitch find skills’

stitch agent-skills <subcommand> [flags]

Subcommands

SubcommandSurfaceDescription
agent-skills addDefaultInstall the Stitch agent skill for the current mode
agent-skills listDefaultShow the current mode and where the Stitch skill is installed
agent-skills updateDefaultResync the installed Stitch skill to the current mode and CLI version

Subcommand flags

SubcommandFlagTypeDescription
add--project, -pbooleanInstall into .agents/skills in this project (default)
add--user, -ubooleanInstall into ~/.agents/skills for every project (alias: --global, -g)
add--dirstringSkills directory inside this project (or inside your home directory with -u)
add, list, update--targetstringTarget client: claude, antigravity, or all
add--overwritebooleanReplace an existing stitch folder not installed by the CLI (originals are backed up)
update--overwritebooleanReplace locally edited skill files (a backup is kept)
add, update--dry-runbooleanPreview mutation without executing

stitch api

Execute direct REST API calls against Stitch endpoints, or inspect OpenAPI/Discovery schema

Requires workspace features to be enabled via stitch enable loop.

stitch api [path] [flags]

Positional arguments

ArgumentRequiredDescription
pathfalseAPI endpoint path or Discovery method ID (e.g. /v2alpha/workspaces or workspaces.list)

Command flags

Also accepts all global flags.

FlagTypeDescription
--dryRunbooleanValidate payload and preview request without making API calls
--filterstringFilter items by keyword or criteria
--forcebooleanForce execution without confirmation
--method, -XstringHTTP method (GET, POST, PATCH, PUT, DELETE) (default: GET)
--yes, -ybooleanBypass confirmation prompt

stitch mcp

Manage and run the Stitch MCP server

stitch mcp <subcommand> [flags]

Subcommands

SubcommandSurfaceDescription
mcp startDefaultStart the Stitch MCP server over stdio. Alias: mcp run
mcp installDefaultRegister the Stitch MCP server in your AI editor

Subcommand flags

SubcommandFlagTypeDescription
install--targetstringTarget client: antigravity, claude, cursor, vscode, or all (default: all)
install--dry-runbooleanPreview mutation without executing

stitch cache

Inspect and clean the local cache of insights, solutions and other read-only resources

Requires workspace features to be enabled via stitch enable loop.

stitch cache <subcommand> [flags]

Subcommands

SubcommandSurfaceDescription
cache statsWorkspaceShow what the local cache holds: entries, size, resource types and files left by interrupted writes
cache pruneWorkspaceRemove files left by interrupted cache writes; with --max-bytes, also evict least recently used entries

Both subcommands cover every workspace’s cache unless you pass --workspace.


stitch download

Download HTML and screenshot image artifacts from a Stitch screen

stitch download [resource] [id] [flags]

Positional arguments

ArgumentRequiredDescription
resourcefalseTarget resource type (‘screen’)
idfalseScreen ID or resource name

Command flags

Also accepts all global flags.

FlagTypeDescription
--format, -fenumArtifact or output format: html, png, jpg, jpeg, image, json, table, markdown, or ndjson
--htmlbooleanDownload the screen HTML payload
--image, -screenshotbooleanDownload the screen screenshot image (PNG/JPEG)
--output, -ostringOutput file or directory path (writes raw artifact bytes to stdout when omitted)
--project, -pstringStitch Project ID (run ‘stitch find projects’ to list; env: STITCH_PROJECT_ID)

Examples

stitch download screen <screen-id> --project <project-id>
stitch download screen <screen-id> --project <project-id> --format png
stitch download screen <screen-id> --project <project-id> --html --image --output ./screens

stitch feedback

Submit product feedback or create a Listnr ticket

stitch feedback [message] [flags]

Positional arguments

ArgumentRequiredDescription
messagefalseFeedback text (an optional leading ‘submit’ is ignored)

Command flags

Also accepts all global flags.

FlagTypeDescription
--descriptionstringFeedback text description
--dry-runbooleanPreview feedback payload without submitting
--product-data, -datastringOptional product metadata as JSON or key=value,key2=val2
--screenshotstringPath to screenshot image file to attach
--sentimentstringSentiment rating: positive, negative, or unspecified

Examples

stitch feedback "Loving the CLI"
stitch feedback --description "Loving the CLI tool" --sentiment positive

Original: https://stitch.withgoogle.com/docs/cli/reference/commands/

Translated from the official Google Stitch documentation. Original content © Google LLC. This is an independent, unofficial translation.