@@ -318,7 +318,27 @@ export const deployCommand = new Command()
318318 . description ( `Interact with Deno Deploy
319319
320320Calling this subcommand without any further subcommands will
321- deploy your local directory to the specified application.` )
321+ deploy your local directory to the specified application.
322+
323+ For non-interactive use (CI, AI agents), authenticate via the
324+ DENO_DEPLOY_TOKEN env var (or --token) and pass --json --non-interactive
325+ to every subcommand. The CLI then emits a single JSON object on stdout,
326+ a structured { error: { code, message, hint } } envelope on stderr,
327+ and a stable exit code (0 OK, 1 GENERIC, 2 USAGE, 3 AUTH, 4 NOT_FOUND,
328+ 5 CONFLICT, 6 NETWORK). See https://docs.deno.com/runtime/reference/cli/deploy/#agent--ci-usage
329+ for the full reference.` )
330+ . example (
331+ "Verify the active token" ,
332+ "whoami --json" ,
333+ )
334+ . example (
335+ "Deploy current directory non-interactively" ,
336+ "--json --non-interactive --org my-org --app my-app --prod" ,
337+ )
338+ . example (
339+ "Create a static app from CI" ,
340+ "create --json --non-interactive --org my-org --app my-app --source local --runtime-mode static --static-dir dist --region us" ,
341+ )
322342 . globalOption ( "--endpoint <endpoint:string>" , "the endpoint" , {
323343 default : "https://console.deno.com" ,
324344 hidden : true ,
0 commit comments