dify/cli/src/commands/resume/app/guide.ts
L1nSn0w f0fd7ddb60
feat(cli): unified help system (#36896)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-04 07:27:28 +00:00

17 lines
624 B
TypeScript

export const agentGuide = `
WHEN TO USE
Continue a workflow that paused for human input. run app (or a prior
resume app) exits 2 and prints a JSON object with status "paused",
form_token, workflow_run_id and resolved_default_values. Resume with:
difyctl resume app <app_id> <form_token> --workflow-run-id <id> \\
--inputs '{"name":"Alice"}' -o json
LOOP
A resume can pause again (exit 2 with a new form_token). Repeat until
exit 0. Pass --stream to print events live.
ERROR RECOVERY
not logged in (exit 4) difyctl auth login
stale form/run id re-run the app to get a fresh pause token
`