Find the difyctl command for a job, pass it values as flags or JSON, and run the next steps its results suggest
Find a Command
Describe the job to help in a few words, and it lists the commands that match. For example, to find the command that publishes an app:
difyctl help publish app
To browse instead, run difyctl help on its own: it lists the words commands start with, such as get and run. Add one of those words to list every command that starts with it:
difyctl help get
Once you’ve found the command, run help with its full name to see the fields it takes (the values you pass to it):
difyctl help describe console_app
You can also add --help or -h to the command itself.
Run a Command
difyctl never asks you to confirm a command, even one you can’t undo. Before you run such a command, check the ID it targets, for example with the matching get command.
help labels the commands you can’t undo as destructive, such as stop run and the delete commands that act on your server.If help shows stop run as write instead, your server or difyctl is too old to label destructive commands. Until both are updated, check the target of every command that isn’t read.
Pass Values as Flags
Pass each field you need as its flag, followed by the value. A command’s help lists its flags with their types, defaults, and whether they’re required. For example, part of the help for run console_app workflow:
Flags --app-id string required --inputs map<string, json> optional Variables declared by the app. … --workflow-id string optional Pin a published workflow version
The type tells you how to pass the value. Most fields take the value as is. For example, to describe an app by its ID, which difyctl get console_app lists:
For a boolean field, pass the flag alone to set it to true, or add =false to set it to false, such as --auto-generate-name=false on run console_app chat.
For a list field, such as string[], repeat the flag for each value, such as --identifiers a --identifiers b on install plugin.
For a field whose type is json, object, or a map, pass the JSON text as the flag’s value. For example, with --inputs from the help above:
difyctl run console_app workflow --app-id 0a1b2c3d-4e5f-6789-abcd-ef0123456789 --inputs '{"topic": "AI"}'
To read the JSON from a file instead, write @ and the file’s path, such as --inputs @inputs.json. To read it from stdin, write --inputs @-.Watch for @ on a string field: it never reads a file. --yaml-content @app.yml sends the literal text @app.yml, not the file’s contents. To send the contents, let the shell read the file with --yaml-content "$(cat app.yml)".
Send a Whole Request as JSON
When a script builds the request, or you keep it in a file, put all the fields in one JSON object and pass it with --input (singular, not the --inputs field above).Write each field by its name: the flag without --, with underscores instead of dashes (app_id, not --app-id):
difyctl run console_app workflow --input '{"app_id": "0a1b2c3d-4e5f-6789-abcd-ef0123456789", "inputs": {"topic": "AI"}}'
--input also reads from a file, such as --input @request.json, or from stdin, with --input @-.A flag takes priority over the same field in --input. This way, you can keep a request in a file and change one value per run. With {"mode": "workflow", "limit": 50, "page": 1} in request.json, this lists the second page of your Workflow apps:
difyctl get console_app --input @request.json --page 2
Follow Hints
Some results include hints: commands the server suggests you run next, with their values filled in wherever the server knows them. When a hint is the step you want next, run it instead of building that command yourself.For example, after a chat app replies to difyctl run console_app chat, the result carries this hint:
To run a hint, write its op with spaces instead of dots, and pass its input to --input. Replace each null with your own value. For this hint, that’s difyctl run console_app chat with your next message as the query:
difyctl run console_app chat --input '{"app_id": "0a1b2c3d-4e5f-6789-abcd-ef0123456789", "conversation_id": "9f8e7d6c-5b4a-4321-8fed-cba987654321", "query": "And on weekends?", "inputs": {}}'
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Dify Enterprise Docs","colors":{"primary":"#0060FF","light":"#688FE8","dark":"#0034FF"},"logo":{"light":"https://assets-docs.dify.ai/2025/05/d05cfc6ebe48f725d171dc71c64a5d16.svg","dark":"https://assets-docs.dify.ai/2025/05/c51f1cda47c1d9a4a162d7736f6e4c53.svg"},"favicon":"https://mintcdn.com/dify-enterprise-docs/zvhvyUvEpyoIONBf/logo/dify-logo.png?fit=max\u0026auto=format\u0026n=zvhvyUvEpyoIONBf\u0026q=85\u0026s=e0afd8349b7a272ad12280680a53043c","navbar":{"links":[{"href":"mailto:support@dify.ai","label":"Support"}]},"footer":{"socials":{"x":"https://x.com/dify_ai","github":"https://github.com/langgenius/dify","linkedin":"https://www.linkedin.com/company/langgenius"}},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","default":true,"href":"en/3.14.x/deploy/checklist"},{"language":"zh","href":"zh/3.14.x/deploy/checklist"},{"language":"ja","href":"ja/3.14.x/deploy/checklist"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dify-enterprise-docs","hasAudioNarration":false,"actualSubdomain":"dify-enterprise-docs","customDomains":["enterprise-docs.dify.ai"],"gitSource":{"type":"github","owner":"langgenius","repo":"dify-enterprise-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b093c32dd4a00ade0d099a3","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"en","tag":"Developer Resources","count":2107},{"language":"ja","tag":"開発者リソース","count":2107},{"language":"zh","tag":"开发者资源","count":2107},{"language":"en","tag":"Use","count":1519},{"language":"ja","tag":"使い方","count":1519},{"language":"zh","tag":"使用","count":1519},{"language":"en","tag":"Workspace API","count":1459},{"language":"ja","tag":"Workspace API","count":1459},{"language":"zh","tag":"Workspace API","count":1459},{"language":"en","tag":"Knowledge APIs","count":685},{"language":"ja","tag":"ナレッジ API","count":685},{"language":"zh","tag":"知识库 API","count":685},{"language":"en","tag":"Orchestrate","count":671},{"language":"ja","tag":"オーケストレーション","count":671},{"language":"zh","tag":"编排","count":671},{"language":"en","tag":"App APIs","count":593},{"language":"ja","tag":"アプリ API","count":593},{"language":"zh","tag":"应用 API","count":593},{"language":"en","tag":"Workflow \u0026 Chatflow","count":576},{"language":"ja","tag":"ワークフローとチャットフロー","count":576},{"language":"zh","tag":"工作流与对话流","count":576},{"language":"en","tag":"Deploy","count":565},{"language":"ja","tag":"デプロイ","count":565},{"language":"zh","tag":"部署","count":565},{"language":"en","tag":"Plugins","count":563},{"language":"ja","tag":"プラグイン開発","count":561},{"language":"zh","tag":"插件开发","count":561},{"language":"ja","tag":"管理","count":506},{"language":"zh","tag":"管理","count":506},{"language":"en","tag":"Administer","count":451}],"searchSettings":{"maxResults":12}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"body{text-autospace:normal}html[data-current-path=\"/\"] .nav-tabs{display:none}"}]}
{"page":{"pagePath":"en/3.14.x/develop/cli/find-and-run-commands","slug":"/en/3.14.x/develop/cli/find-and-run-commands","pageMetadata":{"title":"Find and Run Commands","description":"Find the difyctl command for a job, pass it values as flags or JSON, and run the next steps its results suggest","href":"/en/3.14.x/develop/cli/find-and-run-commands"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Find the difyctl command for a job, pass it values as flags or JSON, and run the next steps its results suggest\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`find-a-command`,children:`Find a Command`}),`\n`,_jsxs(_components.p,{children:[`Describe the job to `,_jsx(_components.code,{children:`help`}),` in a few words, and it lists the commands that match. For example, to find the command that publishes an app:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`difyctl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` help`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` publish`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` app`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`To browse instead, run `,_jsx(_components.code,{children:`difyctl help`}),` on its own: it lists the words commands start with, such as `,_jsx(_components.code,{children:`get`}),` and `,_jsx(_components.code,{children:`run`}),`. Add one of those words to list every command that starts with it:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`difyctl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` help`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` get`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Once you’ve found the command, run `,_jsx(_components.code,{children:`help`}),` with its full name to see the fields it takes (the values you pass to it):`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`difyctl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` help`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` describe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` console_app`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`You can also add `,_jsx(_components.code,{children:`--help`}),` or `,_jsx(_components.code,{children:`-h`}),` to the command itself.`]}),`\n`,_jsx(Heading,{level:`2`,id:`run-a-command`,children:`Run a Command`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`difyctl`}),` never asks you to confirm a command, even one you can’t undo. Before you run such a command, check the ID it targets, for example with the matching `,_jsx(_components.code,{children:`get`}),` command.`]})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`help`}),` labels the commands you can’t undo as `,_jsx(_components.code,{children:`destructive`}),`, such as `,_jsx(_components.code,{children:`stop run`}),` and the `,_jsx(_components.code,{children:`delete`}),` commands that act on your server.`]}),`\n`,_jsxs(_components.p,{children:[`If `,_jsx(_components.code,{children:`help`}),` shows `,_jsx(_components.code,{children:`stop run`}),` as `,_jsx(_components.code,{children:`write`}),` instead, your server or `,_jsx(_components.code,{children:`difyctl`}),` is too old to label destructive commands. Until both are updated, check the target of every command that isn’t `,_jsx(_components.code,{children:`read`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`pass-values-as-flags`,children:`Pass Values as Flags`}),`\n`,_jsxs(_components.p,{children:[`Pass each field you need as its flag, followed by the value. A command’s help lists its flags with their types, defaults, and whether they’re required. For example, part of the help for `,_jsx(_components.code,{children:`run console_app workflow`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Flags`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --app-id string required`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --inputs map\u003cstring, json> optional Variables declared by the app. …`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --workflow-id string optional Pin a published workflow version`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`The type tells you how to pass the value. Most fields take the value as is. For example, to describe an app by its ID, which `,_jsx(_components.code,{children:`difyctl get console_app`}),` lists:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`difyctl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` describe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` console_app`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --app-id`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 0a1b2c3d-4e5f-6789-abcd-ef0123456789`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Three kinds of field differ:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`For a `,_jsx(_components.code,{children:`boolean`}),` field, pass the flag alone to set it to true, or add `,_jsx(_components.code,{children:`=false`}),` to set it to false, such as `,_jsx(_components.code,{children:`--auto-generate-name=false`}),` on `,_jsx(_components.code,{children:`run console_app chat`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`For a list field, such as `,_jsx(_components.code,{children:`string[]`}),`, repeat the flag for each value, such as `,_jsx(_components.code,{children:`--identifiers a --identifiers b`}),` on `,_jsx(_components.code,{children:`install plugin`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`For a field whose type is `,_jsx(_components.code,{children:`json`}),`, `,_jsx(_components.code,{children:`object`}),`, or a `,_jsx(_components.code,{children:`map`}),`, pass the JSON text as the flag’s value. For example, with `,_jsx(_components.code,{children:`--inputs`}),` from the help above:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`difyctl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` console_app`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` workflow`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --app-id`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 0a1b2c3d-4e5f-6789-abcd-ef0123456789`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --inputs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"topic\": \"AI\"}'`})]}),`\n`]})})}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`To read the JSON from a file instead, write `,_jsx(_components.code,{children:`@`}),` and the file’s path, such as `,_jsx(_components.code,{children:`--inputs @inputs.json`}),`. To read it from stdin, write `,_jsx(_components.code,{children:`--inputs @-`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Watch for `,_jsx(_components.code,{children:`@`}),` on a `,_jsx(_components.code,{children:`string`}),` field: it never reads a file. `,_jsx(_components.code,{children:`--yaml-content @app.yml`}),` sends the literal text `,_jsx(_components.code,{children:`@app.yml`}),`, not the file’s contents. To send the contents, let the shell read the file with `,_jsx(_components.code,{children:`--yaml-content \"$(cat app.yml)\"`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`send-a-whole-request-as-json`,children:`Send a Whole Request as JSON`}),`\n`,_jsxs(_components.p,{children:[`When a script builds the request, or you keep it in a file, put all the fields in one JSON object and pass it with `,_jsx(_components.code,{children:`--input`}),` (singular, not the `,_jsx(_components.code,{children:`--inputs`}),` field above).`]}),`\n`,_jsxs(_components.p,{children:[`Write each field by its name: the flag without `,_jsx(_components.code,{children:`--`}),`, with underscores instead of dashes (`,_jsx(_components.code,{children:`app_id`}),`, not `,_jsx(_components.code,{children:`--app-id`}),`):`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`difyctl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` console_app`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` workflow`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --input`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"app_id\": \"0a1b2c3d-4e5f-6789-abcd-ef0123456789\", \"inputs\": {\"topic\": \"AI\"}}'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`--input`}),` also reads from a file, such as `,_jsx(_components.code,{children:`--input @request.json`}),`, or from stdin, with `,_jsx(_components.code,{children:`--input @-`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`A flag takes priority over the same field in `,_jsx(_components.code,{children:`--input`}),`. This way, you can keep a request in a file and change one value per run. With `,_jsx(_components.code,{children:`{\"mode\": \"workflow\", \"limit\": 50, \"page\": 1}`}),` in `,_jsx(_components.code,{children:`request.json`}),`, this lists the second page of your Workflow apps:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`difyctl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` get`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` console_app`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --input`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @request.json`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --page`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 2`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`follow-hints`,children:`Follow Hints`}),`\n`,_jsxs(_components.p,{children:[`Some results include `,_jsx(_components.code,{children:`hints`}),`: commands the server suggests you run next, with their values filled in wherever the server knows them. When a hint is the step you want next, run it instead of building that command yourself.`]}),`\n`,_jsxs(_components.p,{children:[`For example, after a chat app replies to `,_jsx(_components.code,{children:`difyctl run console_app chat`}),`, the result carries this hint:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"hints\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"summary\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Reply in this conversation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"op\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"run.console_app.chat\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"app_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0a1b2c3d-4e5f-6789-abcd-ef0123456789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"conversation_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"9f8e7d6c-5b4a-4321-8fed-cba987654321\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"query\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"inputs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:` …`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`To run a hint, write its `,_jsx(_components.code,{children:`op`}),` with spaces instead of dots, and pass its `,_jsx(_components.code,{children:`input`}),` to `,_jsx(_components.code,{children:`--input`}),`. Replace each `,_jsx(_components.code,{children:`null`}),` with your own value. For this hint, that’s `,_jsx(_components.code,{children:`difyctl run console_app chat`}),` with your next message as the `,_jsx(_components.code,{children:`query`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`difyctl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` console_app`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` chat`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --input`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"app_id\": \"0a1b2c3d-4e5f-6789-abcd-ef0123456789\", \"conversation_id\": \"9f8e7d6c-5b4a-4321-8fed-cba987654321\", \"query\": \"And on weekends?\", \"inputs\": {}}'`})]}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Find and Run Commands","description":"Find the difyctl command for a job, pass it values as flags or JSON, and run the next steps its results suggest","href":"/en/3.14.x/develop/cli/find-and-run-commands"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Find a Command","slug":"find-a-command","depth":2,"children":[]},{"title":"Run a Command","slug":"run-a-command","depth":2,"children":[{"title":"Pass Values as Flags","slug":"pass-values-as-flags","depth":3,"children":[]},{"title":"Send a Whole Request as JSON","slug":"send-a-whole-request-as-json","depth":3,"children":[]}]},{"title":"Follow Hints","slug":"follow-hints","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"dify-enterprise-docs","siteName":"Dify Enterprise Docs","title":"Find and Run Commands - Dify Enterprise Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"3.14.x":{"href":"/en/3.14.x/develop/cli/find-and-run-commands","matchLevel":0},"3.13.x":{"href":"/en/3.13.x/develop/cli/introduction","matchLevel":2},"3.12.x":{"href":"/en/3.12.x/develop/cli/introduction","matchLevel":2},"3.11.x":{"href":"/en/3.11.x/develop/cli/introduction","matchLevel":2},"3.10.x":{"href":"/en/3.10.x/deploy/checklist","matchLevel":4},"3.9.x":{"href":"/en/3.9.x/deploy/checklist","matchLevel":4},"3.8.x":{"href":"/en/3.8.x/deploy/checklist","matchLevel":4},"3.7.x":{"href":"/en/3.7.x/deploy/checklist","matchLevel":4},"3.6.x":{"href":"/en/3.6.x/deploy/checklist","matchLevel":4},"3.5.x":{"href":"/en/3.5.x/deploy/checklist","matchLevel":4},"3.4.x":{"href":"/en/3.4.x/deploy/checklist","matchLevel":4},"3.3.x":{"href":"/en/3.3.x/deploy/checklist","matchLevel":4},"3.2.x":{"href":"/en/3.2.x/deploy/checklist","matchLevel":4},"3.1.x":{"href":"/en/3.1.x/deploy/checklist","matchLevel":4},"3.0.x":{"href":"/en/3.0.x/deploy/checklist","matchLevel":4},"2.8.x":{"href":"/en/2.8.x/deploy/checklist","matchLevel":4},"2.7.x":{"href":"/en/2.7.x/deploy/checklist","matchLevel":4},"2.6.x":{"href":"/en/2.6.x/deploy/checklist","matchLevel":4},"2.5.x":{"href":"/en/2.5.x/deploy/checklist","matchLevel":4}},"firstHrefInLanguage":{"en":{"href":"/en/3.14.x/develop/cli/find-and-run-commands","matchLevel":0},"zh":{"href":"/zh/3.14.x/develop/cli/find-and-run-commands","matchLevel":1},"ja":{"href":"/ja/3.14.x/develop/cli/find-and-run-commands","matchLevel":1}}},"lastModified":"2026-11-27T08:17:49.278Z","originalFileLocation":"en/3.14.x/develop/cli/find-and-run-commands.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Find the difyctl command for a job, pass it values as flags or JSON, and run the next steps its results suggest\">\u003cmeta data-mint-head name=\"application-name\" content=\"Dify Enterprise Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Find and Run Commands - Dify Enterprise Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Find the difyctl command for a job, pass it values as flags or JSON, and run the next steps its results suggest\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Dify Enterprise Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://enterprise-docs.dify.ai/en/3.14.x/develop/cli/find-and-run-commands\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dify-enterprise-docs.mintlify.site/_mintlify/api/og/v2?division=Get+Started\u0026amp;title=Find+and+Run+Commands\u0026amp;description=Find+the+difyctl+command+for+a+job%2C+pass+it+values+as+flags+or+JSON%2C+and+run+the+next+steps+its+results+suggest\u0026amp;theme=e95e546bd9c3a8e3c27c730b\u0026amp;signature=90b184eeacad1bda58b82f7cdc8b63c4f576d8171fc4de43c56f0b7f978d7b51\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Find and Run Commands - Dify Enterprise Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Find the difyctl command for a job, pass it values as flags or JSON, and run the next steps its results suggest\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dify-enterprise-docs.mintlify.site/_mintlify/api/og/v2?division=Get+Started\u0026amp;title=Find+and+Run+Commands\u0026amp;description=Find+the+difyctl+command+for+a+job%2C+pass+it+values+as+flags+or+JSON%2C+and+run+the+next+steps+its+results+suggest\u0026amp;theme=e95e546bd9c3a8e3c27c730b\u0026amp;signature=90b184eeacad1bda58b82f7cdc8b63c4f576d8171fc4de43c56f0b7f978d7b51\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Dify Enterprise Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0060FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://enterprise-docs.dify.ai/en/3.14.x/develop/cli/find-and-run-commands\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/3.14.x/develop/cli/find-and-run-commands.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://enterprise-docs.dify.ai/en/3.14.x/develop/cli/find-and-run-commands\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://enterprise-docs.dify.ai/zh/3.14.x/develop/cli/find-and-run-commands\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://enterprise-docs.dify.ai/ja/3.14.x/develop/cli/find-and-run-commands\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://enterprise-docs.dify.ai/en/3.14.x/develop/cli/find-and-run-commands\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://enterprise-docs.dify.ai/#organization\",\"name\":\"Dify Enterprise Docs\",\"url\":\"https://enterprise-docs.dify.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://assets-docs.dify.ai/2025/05/d05cfc6ebe48f725d171dc71c64a5d16.svg\"}},{\"@type\":\"WebSite\",\"@id\":\"https://enterprise-docs.dify.ai#website\",\"name\":\"Dify Enterprise Docs\",\"url\":\"https://enterprise-docs.dify.ai\",\"publisher\":{\"@id\":\"https://enterprise-docs.dify.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://enterprise-docs.dify.ai/en/3.14.x/develop/cli/find-and-run-commands#webpage\",\"url\":\"https://enterprise-docs.dify.ai/en/3.14.x/develop/cli/find-and-run-commands\",\"name\":\"Find and Run Commands\",\"description\":\"Find the difyctl command for a job, pass it values as flags or JSON, and run the next steps its results suggest\",\"dateModified\":\"2026-11-27T08:17:49.278Z\",\"isPartOf\":{\"@id\":\"https://enterprise-docs.dify.ai#website\"},\"breadcrumb\":{\"@id\":\"https://enterprise-docs.dify.ai/en/3.14.x/develop/cli/find-and-run-commands#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://enterprise-docs.dify.ai/en/3.14.x/develop/cli/find-and-run-commands#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Get Started\",\"item\":\"https://enterprise-docs.dify.ai/en/3.14.x/develop/cli/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Find and Run Commands\",\"item\":\"https://enterprise-docs.dify.ai/en/3.14.x/develop/cli/find-and-run-commands\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://enterprise-docs.dify.ai/en/3.14.x/develop/cli/find-and-run-commands#article\",\"headline\":\"Find and Run Commands\",\"name\":\"Find and Run Commands\",\"description\":\"Find the difyctl command for a job, pass it values as flags or JSON, and run the next steps its results suggest\",\"url\":\"https://enterprise-docs.dify.ai/en/3.14.x/develop/cli/find-and-run-commands\",\"mainEntityOfPage\":{\"@id\":\"https://enterprise-docs.dify.ai/en/3.14.x/develop/cli/find-and-run-commands#webpage\"},\"dateModified\":\"2026-11-27T08:17:49.278Z\",\"publisher\":{\"@id\":\"https://enterprise-docs.dify.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://enterprise-docs.dify.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Dify Enterprise Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Dify Enterprise Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/3.14.x/develop/cli/find-and-run-commands.md","siteName":"Dify Enterprise Docs","nav":{"global":null,"languages":[{"language":"en","default":true,"versions":[{"version":"3.14.x","tabs":[{"tab":"Deploy","pages":[{"title":"Deploy","href":"/en/3.14.x/deploy/checklist"}]},{"tab":"Administer","pages":[{"title":"Administer","href":"/en/3.14.x/administer/workspace-management"}]},{"tab":"Use","pages":[{"title":"Use","href":"/en/3.14.x/use/build/workflow-chatflow"}]},{"tab":"Developer Resources","menu":[{"item":"Workspace API","pages":[{"title":"Workspace API","href":"/en/3.14.x/develop/api/guides/get-started"}]},{"item":"CLI","groups":[{"group":"Get Started","icon":"rocket","pages":[{"title":"Overview","href":"/en/3.14.x/develop/cli/overview"},{"title":"Get Started","href":"/en/3.14.x/develop/cli/get-started"},{"title":"Use `difyctl` as an External SSO User","sidebarTitle":"External SSO Users","description":"Sign in to difyctl through single sign-on without a Dify account, then find and run the apps open to external users, stop their runs, and answer their Human Input forms","href":"/en/3.14.x/develop/cli/external-sso-users"},{"title":"Find and Run Commands","href":"/en/3.14.x/develop/cli/find-and-run-commands"}]},{"group":"Work with Apps","icon":"cube","pages":[{"title":"Build Apps","sidebarTitle":"Build","description":"Have your coding agent build, change, test, and publish your Workflow and Chatflow apps","href":"/en/3.14.x/develop/cli/build-apps"},{"title":"Run Apps","sidebarTitle":"Run","href":"/en/3.14.x/develop/cli/run-apps"},{"title":"Create and Update Apps from DSL Files","sidebarTitle":"Create or Update from DSL","href":"/en/3.14.x/develop/cli/create-and-update-apps-from-dsl-files"}]},{"group":"Automate","icon":"gears","pages":[{"title":"Use `difyctl` in CI and Automation","sidebarTitle":"CI and Scripts","href":"/en/3.14.x/develop/cli/scripts-and-ci"},{"title":"Use a Personal Access Token","sidebarTitle":"Personal Access Tokens","href":"/en/3.14.x/develop/cli/personal-access-tokens"}]},{"group":"Manage difyctl","icon":"screwdriver-wrench","pages":[{"title":"Manage Your Sign-In","sidebarTitle":"Sign-In and Sessions","href":"/en/3.14.x/develop/cli/manage-sign-in"},{"title":"Update or Uninstall difyctl","sidebarTitle":"Update or Uninstall","href":"/en/3.14.x/develop/cli/update-or-uninstall"},{"title":"Upgrade Across Enterprise 3.14.0","sidebarTitle":"Upgrade Across 3.14.0","href":"/en/3.14.x/develop/cli/upgrade-across-3-14"}]},{"group":"Reference","icon":"terminal","pages":[{"title":"Command Index","href":"/en/3.14.x/develop/cli/reference/command-index"},{"title":"Results, Errors, and Exit Codes","sidebarTitle":"Results and Errors","href":"/en/3.14.x/develop/cli/reference/results-errors-and-exit-codes"},{"title":"Configuration","href":"/en/3.14.x/develop/cli/reference/configuration"}]}]},{"item":"Plugins","pages":[{"title":"Plugins","href":"/en/3.14.x/develop/plugins/getting-started/getting-started-dify-plugin"}]}]}]},{"version":"3.13.x","tag":"LTS","pages":[{"title":"3.13.x","href":"/en/3.13.x/develop/cli/introduction"}]},{"version":"3.12.x","pages":[{"title":"3.12.x","href":"/en/3.12.x/develop/cli/introduction"}]},{"version":"3.11.x","pages":[{"title":"3.11.x","href":"/en/3.11.x/develop/cli/introduction"}]},{"version":"3.10.x","pages":[{"title":"3.10.x","href":"/en/3.10.x/deploy/checklist"}]},{"version":"3.9.x","tag":"LTS","pages":[{"title":"3.9.x","href":"/en/3.9.x/deploy/checklist"}]},{"version":"3.8.x","pages":[{"title":"3.8.x","href":"/en/3.8.x/deploy/checklist"}]},{"version":"3.7.x","pages":[{"title":"3.7.x","href":"/en/3.7.x/deploy/checklist"}]},{"version":"3.6.x","pages":[{"title":"3.6.x","href":"/en/3.6.x/deploy/checklist"}]},{"version":"3.5.x","pages":[{"title":"3.5.x","href":"/en/3.5.x/deploy/checklist"}]},{"version":"3.4.x","pages":[{"title":"3.4.x","href":"/en/3.4.x/deploy/checklist"}]},{"version":"3.3.x","pages":[{"title":"3.3.x","href":"/en/3.3.x/deploy/checklist"}]},{"version":"3.2.x","pages":[{"title":"3.2.x","href":"/en/3.2.x/deploy/checklist"}]},{"version":"3.1.x","pages":[{"title":"3.1.x","href":"/en/3.1.x/deploy/checklist"}]},{"version":"3.0.x","pages":[{"title":"3.0.x","href":"/en/3.0.x/deploy/checklist"}]},{"version":"2.8.x","pages":[{"title":"2.8.x","href":"/en/2.8.x/deploy/checklist"}]},{"version":"2.7.x","pages":[{"title":"2.7.x","href":"/en/2.7.x/deploy/checklist"}]},{"version":"2.6.x","pages":[{"title":"2.6.x","href":"/en/2.6.x/deploy/checklist"}]},{"version":"2.5.x","pages":[{"title":"2.5.x","href":"/en/2.5.x/deploy/checklist"}]}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/3.14.x/develop/cli/find-and-run-commands"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/3.14.x/develop/cli/find-and-run-commands"}]}]},"basePath":"","title":"Find and Run Commands - Dify Enterprise Docs","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":[],"chunks":[]}