deno deploy [OPTIONS] [args]...The deno deploy command provides a command line interface for managing and deploying applications to Deno Deploy EA, Deno's platform for hosting JavaScript, TypeScript, and WebAssembly applications.
When called without any subcommands, deno deploy will deploy your local directory to the specified application.
The deploy command uses secure token-based authentication stored in your system's keyring:
-h, --help - Show help information--org <name> - Specify the organization name--app <name> - Specify the application name--prod - Deploy directly to productionCreates a new application in Deno Deploy.
deno deploy create [root-path]
Options:
-h, --help - Show help information--org <name> - The name of the organization to create the application fordeno deploy create --org my-organization
Manage environment variables for your deployed applications.
deno deploy env
Options:
-h, --help - Show help information--org <name> - The name of the organization--app <name> - The name of the applicationdeno deploy env list
Lists all environment variables in an application.
deno deploy env add <variable> <value>
Adds an environment variable to the application.
deno deploy env add DATABASE_URL "postgresql://user:pass@localhost/db"
deno deploy env update-value <variable> <value>
Updates the value of an existing environment variable.
deno deploy env update-value API_KEY "new-api-key-value"
Environment variables can be made available to specific contexts such as Production, Preview, Local, and Build.
deno deploy env update-contexts <variable> [contexts...]
Updates the contexts of an environment variable in the application:
deno deploy env delete <variable>
Deletes an environment variable from the application.
deno deploy env delete OLD_API_KEY
deno deploy env load <file>
Loads environment variables from a .env file into the application.
deno deploy env load .env.production
Stream logs from a deployed application.
deno deploy logs
Options:
-h, --help - Show help information--org <name> - The name of the organization--app <name> - The name of the application--start <date> - The starting timestamp of the logs--end <date> - The ending timestamp of the logs (requires --start)deno deploy logs --org my-org --app my-app --start "2024-01-01T00:00:00Z"
The deploy command includes tools to help you configure integrations for use as Cloud Connections in your applications.
Configure AWS integration for use as a Cloud Connection in your application.
deno deploy setup-aws --org <name> --app <name>
Options:
-h, --help - Show help information--org <name> - The name of the organization (required)--app <name> - The name of the application (required)deno deploy setup-aws --org my-org --app my-app
Configure Google Cloud Platform integration for use as a Cloud Connection in your application.
deno deploy setup-gcp --org <name> --app <name>
Options:
-h, --help - Show help information--org <name> - The name of the organization (required)--app <name> - The name of the application (required)deno deploy setup-gcp --org my-org --app my-app
# Deploy current directory to production
deno deploy --prod
# Deploy with specific org and app
deno deploy --org my-company --app my-api --prod
# Create a new application
deno deploy create --org my-company
# Set up environment variables
deno deploy env add DATABASE_URL "postgresql://..."
deno deploy env add API_KEY "your-api-key"
# Load from .env file
deno deploy env load .env.production
# View recent logs
deno deploy logs --org my-company --app my-api
# View logs for specific time range
deno deploy logs --org my-company --app my-api \
--start "2024-01-01T00:00:00Z" \
--end "2024-01-01T23:59:59Z"
# Set up AWS integration
deno deploy setup-aws --org my-company --app my-api
# Set up GCP integration
deno deploy setup-gcp --org my-company --app my-api
deno deploy --help for general helpdeno deploy <subcommand> --help for specific subcommand help
© 2018–2025 the Deno authors
Licensed under the MIT License.
https://docs.deno.com/runtime/reference/cli/deploy