package cli const help = `PIPELINES — reusable workflows for your repositories Usage: pipelines [arguments] [options] AUTHOR new [name] [prompt] Create a draft and open OpenCode with @pipelines edit [name|id] [prompt] Pick a pipeline, draft changes, open OpenCode drafts List retained draft files (including TUI drafts) validate Check a draft using the server's validator submit Explicitly publish a new immutable version BROWSE list List registered pipelines show Inspect graph, settings, source and history versions List immutable versions export Print original Markdown source templates List optional templates (never seeds the DB) template Inspect a template; --source prints Markdown EXECUTE provider-check Validate a provider/model with a tool-free response run [name] [prompt] Fuzzy selection, multiline prompt, live inspector runs List audited runs; --pipeline filters results inspect Inspect stages, outputs, errors and status cancel Cancel a run; changes are NOT rolled back retry Restart a failed run with its original input and directory debug Ask OpenCode questions about a recorded or active run draft-delete Delete a selected retained draft and its metadata connection Server and public phone connection (no secrets) status Server/ntfy health, ports and server computer IPs stats All-history usage, pipeline counts and daily activity ping Check the server connection rpc Send any protocol command (automation escape hatch) SERVER / INTERFACE tui Open the dashboard (default with no command) serve Start native server in the foreground (Ctrl+C stops it) service enable Configure user autostart service disable | status Stop/remove autostart, or inspect OS service status skill install Install/update the shared OpenCode authoring skill uninstall [--yes] Remove verified Go binaries; retain data and drafts Legacy managed installs: select PIPELINES_PREFIX explicitly for start/stop, restart/doctor/logs and retained-data or --purge uninstallation. Options: --url ws://127.0.0.1:8080/connect --json --help Use pipelines help for its flags. Names with spaces must be quoted. Examples: pipelines edit "bug fix" "Add a review step" pipelines new "release notes" "Summarize changes and notify my phone" pipelines new "weekly digest" --template scheduled-summary --no-open --json --yes pipelines validate /path/to/draft.md --json pipelines submit /path/to/draft.md pipelines run "bug fix" "Fix the layout" --json Draft-first: OpenCode edits a private draft; nothing is published automatically. Every submission is validated server-side. Submission activates any schedules. JSON mode never launches an editor or picker; supply explicit arguments. `