CLI reference
Look up command syntax, selectors, JSON output, auth, hosted runs, and publishing.
Use the workbench CLI to create, evaluate, improve, inspect, and publish Workbench projects. Start with Quickstart for the first run. This reference lists exact command syntax and behavior.
Command surface
Generated from the same command metadata that renders workbench help and validates accepted flags.
Sources
workbench source
Connects, syncs, analyzes, and reviews private evidence Sources.
Usage:
Flags:
add:--json,--help,--adapter VALUE,--namespace VALUElist:--json,--help,--cursor VALUE,--limit N,--namespace VALUEshow:--json,--help,--analysis VALUE,--cursor VALUE,--decision VALUE,--insight VALUE,--limit N,--namespace VALUE,--node VALUE,--page VALUE,--workflow VALUEevidence:--json,--help,--namespace VALUEsync:--json,--helpanalyze:--json,--help,--all-records,--confirm,--map,--max-cost VALUE,--namespace VALUE,--preflight-token VALUE,--record-limit N,--record-offset N,--snapshot VALUEreview:--json,--help,--input VALUE,--namespace VALUEdelete:--json,--help,--namespace VALUE,--yes
Evals
workbench eval
Authors, runs, grades, and inspects Evals.
Usage:
Flags:
list:--json,--help,--dir VALUEshow:--json,--help,--dir VALUEdraft:--json,--help,--dir VALUE,--analysis VALUE,--confirm,--destination VALUE,--max-cost VALUE,--namespace VALUE,--objective VALUE,--preflight-token VALUE,--review-hash VALUE,--review-version N,--source VALUE,--workflows VALUEapply:--json,--help,--dir VALUE,--yesdiscard:--json,--help,--yesrun:--json,--help,--dir VALUE,--agents VALUE,--cases VALUE,--cloud,--dry-run,--rerun,--versions VALUE,--samples Ngrade:--json,--help,--dir VALUE,--agents VALUE,--cases VALUE,--cloud,--dry-run,--rerun,--versions VALUEresults:--json,--help,--dir VALUE,--agents VALUE,--eval VALUE,--versions VALUEcase:--json,--help,--dir VALUE,--grader VALUEgrader:--json,--help,--dir VALUE,--authoring VALUE,--authoring-file VALUE,--authoring-json VALUEagent:--json,--help,--dir VALUE,--adapter VALUE,--model VALUE,--with VALUE
Skills
workbench skill
Creates, improves, versions, syncs, and publishes Skills.
Usage:
Flags:
new:--json,--help,--agent VALUE,--auth VALUE,--model VALUEinit:--json,--help,--agent VALUE,--auth VALUE,--model VALUEclone:--json,--helplist:--json,--help,--dir VALUE,--scope VALUE,--target VALUEshow:--json,--help,--dir VALUEinstall:--json,--help,--dir VALUE,--dry-run,--scope VALUE,--target VALUE,--yesimprove:--json,--help,--dir VALUE,--agents VALUE,--budget N,--cloud,--dry-run,--samples N,--versions VALUEversions:--json,--help,--dir VALUEdiff:--json,--help,--dir VALUEswitch:--json,--help,--dir VALUE,--dry-run,--yessync:--json,--help,--dir VALUE,--dry-runpublish:--json,--help,--dir VALUE,--as VALUE,--dry-run,--private,--public,--teamunpublish:--json,--help,--dir VALUE,--dry-rundelete:--json,--help,--dry-run,--yes
Operations and auth
workbench open
Serves the local Workbench UI.
Usage:
Flags:
--dir VALUE, --help, --host VALUE, --no-open, --port N
workbench watch
Watches an existing operation.
Usage:
Flags:
--json, --help, --dir VALUE
workbench retry
Retries an existing operation.
Usage:
Flags:
--json, --help, --dir VALUE, --confirm, --max-cost VALUE, --preflight-token VALUE
workbench cancel
Cancels an existing operation.
Usage:
Flags:
--json, --help, --dir VALUE
workbench login
Connects the CLI to Workbench Cloud or captures provider auth.
Usage:
Flags:
--json, --help, --base-url VALUE, --local-only, --method VALUE, --no-open, --profile VALUE, --profile-root VALUE, --start-only, --timeout N, --wait
workbench logout
Logs out of Workbench Cloud or removes local provider auth.
Usage:
Flags:
--json, --help
Remote URLs
https://HOST/skills/OWNER/SKILL Workbench Cloud skill remotefile:///absolute/path local file remote for explicit sync
Invocation rules
Use the Source, Eval, and Skill guides for product journeys. Use this reference for exact syntax, accepted flags, selectors, object references, and automation output.
- Bare
workbenchrenders help; domain work starts fromsource,eval, orskill. - Use
--dir DIRon commands that support it to target a project without changing directories. - Use
workbench help COMMANDfor command-specific help andworkbench help --allfor the complete local help surface. - Use
--jsonwhen a command is part of automation. Human output is optimized for scanning and may include prose progress.
Selectors and reuse
- If you omit
--versionsor--agents, Workbench uses the corresponding manifestdefaultselector. --versions alland--agents allexpand the configured version and agent lists.--cases LISTnarrowseval runoreval gradeto specific case ids.-n Nand--samples Napply to execution-producing commands such aseval runandskill improve;eval gradejudges existing execution evidence and does not accept samples.--rerunbypasses reusable current evidence for the selected phase.--dry-runpreviews selectors, package source status, launch checks, and planned work without writing package versions, refs, runs, remotes, traces, artifacts, sync state, or cancellation files.
Object references
OWNER/SKILLnames a published Workbench skill.OWNER/SKILL@VERSIONpins an exact still-published package version forinstallorclone.RUN_ID,JOB_ID, execution-evidence ids, artifact ids, and version ids are emitted by nested Eval and Skill commands.workbench eval show REFdisplays Eval evidence;workbench eval show REF:PATHprints an exact evidence file.workbench skill diff A..Bcompares two Workbench package versions.- Remote URL forms are listed in the generated command surface above.
skill syncis an explicit repair and portability command, not the normal way to follow an operation.
Output and scripting
- Use
--jsonfor stable automation. - Long-running JSON commands keep stdout to one final JSON document.
- After a recorded run id exists, progress JSON Lines on stderr are
workbench.run.v1snapshots. - Human
next:and JSONnextcarry at most one suggested next command. - Errors that can be fixed by a command report the command to run next.