Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion deploy/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,27 @@ export const deployCommand = new Command()
.description(`Interact with Deno Deploy

Calling this subcommand without any further subcommands will
deploy your local directory to the specified application.`)
deploy your local directory to the specified application.

For non-interactive use (CI, AI agents), authenticate via the
DENO_DEPLOY_TOKEN env var (or --token) and pass --json --non-interactive
to every subcommand. The CLI then emits a single JSON object on stdout,
a structured { error: { code, message, hint } } envelope on stderr,
and a stable exit code (0 OK, 1 GENERIC, 2 USAGE, 3 AUTH, 4 NOT_FOUND,
5 CONFLICT, 6 NETWORK). See https://docs.deno.com/runtime/reference/cli/deploy/#agent--ci-usage
for the full reference.`)
.example(
"Verify the active token",
"whoami --json",
)
.example(
"Deploy current directory non-interactively",
"--json --non-interactive --org my-org --app my-app --prod",
)
.example(
"Create a static app from CI",
"create --json --non-interactive --org my-org --app my-app --source local --runtime-mode static --static-dir dist --region us",
)
.globalOption("--endpoint <endpoint:string>", "the endpoint", {
default: "https://console.deno.com",
hidden: true,
Expand Down
7 changes: 6 additions & 1 deletion sandbox/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,12 @@ Example:
export const sandboxCommand = new Command<GlobalContext>()
.name("deno sandbox")
.version(VERSION)
.description("Interact with sandboxes")
.description(`Interact with sandboxes

For headless / CI use, authenticate via the DENO_DEPLOY_TOKEN env var
(or --token) — no browser flow is opened when a token is supplied.
See https://docs.deno.com/runtime/reference/cli/sandbox/ for the
full reference.`)
.globalOption("--endpoint <endpoint:string>", "the endpoint", {
default: "https://console.deno.com",
hidden: true,
Expand Down
Loading