new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Deno · Reference · all subjects

cli commands/deploy

63 notes in this subject, read out of this brain and free to use. This is page 1 of 2.

deno deploy help documentation

Use deno deploy --help for general help. Use deno deploy <subcommand> --help for specific subcommand help. Check the Deno Deploy documentation at /deploy/ for platform-specific information.

deno deploy database list example

# List all databases deno deploy database list # Filter by name deno deploy database list my-db

deno deploy database delete

Permanently deletes a database instance. Also available as database remove or database rm. Syntax: deno deploy database delete <name>.

deno deploy database delete example

deno deploy database delete my-old-db

deno deploy database query example

deno deploy database query my-db mydb "SELECT * FROM users LIMIT 10"

deno deploy database list

Lists all database instances in the organization. Also available as database ls. Syntax: deno deploy database list [search].

deno deploy database query

Executes a SQL query against a database. Syntax: deno deploy database query <name> <database> [query...].

deno deploy command overview

The deno deploy command provides a command line interface for managing and deploying applications to Deno Deploy EA. When called without any subcommands, deno deploy will deploy your local directory to the specified application.

deno deploy global options

Global options for deno deploy: -h, --help (show help information), --org <name> (specify the organization name), --app <name> (specify the application name), --prod (deploy directly to production).

deno deploy authentication

The deploy command uses secure token-based authentication stored in the system's keyring. Automatic authentication prompts when needed. Deploy tokens are securely stored using the system keyring. The CLI provides operations to get, set, and delete authentication tokens.

deno deploy create subcommand

Creates a new application in Deno Deploy. When run without flags, an interactive wizard walks through configuration. When any configuration flag is provided, the command runs in non-interactive mode. Syntax: deno deploy create [root-path]. The optional [root-path] argument sets the local project directory and defaults to the current working directory.

deno deploy create general options

-h, --help (show help information), --org <name> (organization to create app in), --app <name> (application name used in default URL), --allow-node-modules (include node_modules when uploading), --no-wait (skip waiting for first build to complete), --dry-run (validate flags and run through flow without creating anything).

deno deploy create source options

--source <github|local> (deploy from GitHub repo or local filesystem), --owner <name> (GitHub owner/organization, required when source is github), --repo <name> (GitHub repository name, required when source is github).

deno deploy create build configuration options

--app-directory <path> (path to app directory within project), --framework-preset <preset> (use framework preset for build defaults; supported values: astro, nextjs, nuxt, remix, solidstart, sveltekit, fresh, lume, or "" for none), --do-not-use-detected-build-config (skip auto-detected build settings), --install-command <command> (install command, e.g. "deno install"), --build-command <command> (build command, e.g. "deno task build"), --pre-deploy-command <command> (command to run after building but before deploying).

deno deploy create runtime mode options

--runtime-mode <dynamic|static> (whether app runs as server or static site). Dynamic mode (server): --entrypoint <file> (entrypoint file, e.g. main.ts), --arguments <arg> (arguments passed to entrypoint, can be specified multiple times), --working-directory <path> (working directory for process). Static mode (static site): --static-dir <dir> (directory containing static files to serve), --single-page-app (serve index.html for routes that don't match file instead of returning 404).

deno deploy create build resource options

--build-timeout <minutes> (build timeout; allowed values: 5, 10, 15, 20, 25, 30), --build-memory-limit <megabytes> (build memory limit in MB; allowed values: 1024, 2048, 3072, 4096), --region <region> (deployment region; allowed values: us, eu, global).

deno deploy create interactive wizard steps

The interactive wizard guides through these steps: Organization (select org to create app in), App name (choose app name), Source (deploy from GitHub or local directory), GitHub repo (select owner and repo if source is GitHub), App directory (pick directory within project with auto-detected workspace members), Build configuration (auto-detect framework settings or configure manually), Build timeout (how long build can run), Build memory limit (how much memory build gets), Region (where to deploy: us, eu, or global), Confirm (review and confirm before creating).

deno deploy create example: interactive

deno deploy create

deno deploy create example: local dynamic app with flags

deno deploy create \ --org my-org \ --app my-api \ --source local \ --runtime-mode dynamic \ --entrypoint main.ts \ --install-command "deno install" \ --build-command "deno task build" \ --build-timeout 5 \ --build-memory-limit 1024 \ --region us

deno deploy create example: static site

deno deploy create \ --org my-org \ --app my-site \ --source local \ --runtime-mode static \ --static-dir dist \ --single-page-app \ --build-command "deno task build" \ --build-timeout 10 \ --build-memory-limit 2048 \ --region us

deno deploy create example: framework preset

deno deploy create \ --org my-org \ --app my-fresh-app \ --source local \ --framework-preset fresh \ --build-timeout 5 \ --build-memory-limit 1024 \ --region us

deno deploy create example: GitHub repo

deno deploy create \ --org my-org \ --app my-app \ --source github \ --owner my-github-org \ --repo my-repo \ --framework-preset astro \ --build-timeout 10 \ --build-memory-limit 2048 \ --region global

deno deploy env subcommand

Manage environment variables for deployed applications. Syntax: deno deploy env. Options: -h, --help (show help information), --org <name> (organization name), --app <name> (application name).

deno deploy env list

Lists all environment variables in an application. Syntax: deno deploy env list.

deno deploy env add

Adds an environment variable to the application. Syntax: deno deploy env add <variable> <value>. Options: --secret (mark the variable as a secret; secret values are hidden in dashboard and in env list output).

deno deploy env add example

deno deploy env add DATABASE_URL "postgresql://user:••••@localhost/db" # Add a secret environment variable deno deploy env add API_KEY "sk-secret-value" --secret

deno deploy env update-value

Updates the value of an existing environment variable. Syntax: deno deploy env update-value <variable> <value>.

deno deploy env update-value example

deno deploy env update-value API_KEY "new-api-key-value"

deno deploy env update-contexts

Updates the contexts of an environment variable in the application. Syntax: deno deploy env update-contexts <variable> [contexts...]. Environment variables can be made available to specific contexts such as Production, Preview, Local, and Build.

deno deploy env delete

Deletes an environment variable from the application. Syntax: deno deploy env delete <variable>.

deno deploy env delete example

deno deploy env delete OLD_API_KEY

deno deploy env load

Loads environment variables from a .env file into the application. The CLI automatically detects which variables are likely secrets based on their names (e.g. keys containing SECRET, TOKEN, PASSWORD, etc.) and marks them accordingly. Syntax: deno deploy env load <file>. Options: --non-secrets <keys...> (keys from .env file that should be treated as non-secrets, overriding auto-detection).

deno deploy env load example

deno deploy env load .env.production # Load and treat specific keys as non-secrets deno deploy env load .env.production --non-secrets PUBLIC_URL SITE_NAME

deno deploy database subcommand

Manage database instances for your organization. Syntax: deno deploy database. Options: -h, --help (show help information), --org <name> (organization name).

deno deploy database provision

Creates a new database instance. Syntax: deno deploy database provision <name> --kind <denokv|prisma> [--region <region>]. Options: --kind <denokv|prisma> (type of database to provision, required), --region <region> (primary region for database, required for Prisma).

deno deploy database provision example

# Provision a Deno KV database deno deploy database provision my-kv-db --kind denokv # Provision a Prisma Postgres database deno deploy database provision my-pg-db --kind prisma --region us-east-1

deno deploy database link

Links an external PostgreSQL database to your organization. Syntax: deno deploy database link <name> [connectionString]. You can provide a connection string or use individual flags. Options: --hostname <host> (database hostname, conflicts with connection string), --username <user> (database username, conflicts with connection string), --password <pass> (database password, conflicts with connection string), --port <number> (database port, conflicts with connection string), --cert <cert> (SSL certificate for connection), --dry-run (test connection without actually linking).

deno deploy database link example

# Link using a connection string deno deploy database link my-db "postgres://user:••••@host:5432/mydb" # Link using individual flags deno deploy database link my-db \ --hostname db.example.com \ --username admin \ --password secret \ --port 5432 # Test the connection first deno deploy database link my-db "postgres://user:••••@host:5432/mydb" --dry-run

deno deploy database assign

Assigns a database instance to an application. Syntax: deno deploy database assign <name> [--app <name>]. If --app is not provided, you will be prompted to select one interactively.

deno deploy database assign example

deno deploy database assign my-db --app my-api

deno deploy database detach

Removes the connection between a database instance and an application. Syntax: deno deploy database detach <name> [--app <name>].

deno deploy database detach example

deno deploy database detach my-db --app my-api

deno deploy switch

Sets the default organization and application for subsequent commands, so you don't have to pass --org and --app every time. Syntax: deno deploy switch [--org <name>] [--app <name>]. When run without flags, an interactive prompt lets you select the org and app.

deno deploy switch example

# Switch interactively deno deploy switch # Switch to a specific org and app deno deploy switch --org my-company --app my-api

deno deploy logout

Removes the stored authentication token. Syntax: deno deploy logout.

deno deploy logs

Stream logs from a deployed application. Syntax: deno deploy logs. Options: -h, --help (show help information), --org <name> (organization name), --app <name> (application name), --start <date> (starting timestamp of logs), --end <date> (ending timestamp of logs, requires --start).

deno deploy logs example

deno deploy logs --org my-org --app my-app --start "2024-01-01T00:00:00Z"

deno deploy sandbox subcommand

Interact with running sandboxes directly from the Deploy CLI. Syntax: deno deploy sandbox --help. Options: -h, --help (show help information), --token <token> (override auth token used for sandbox operations), --config <path> (custom path to Deploy CLI config file), --org <name> (organization that owns sandboxes).

deno deploy sandbox list

Lists every sandbox in the organization along with status details. Syntax: deno deploy sandbox list --org my-org.

deno deploy sandbox kill

Immediately terminates the specified sandbox when you no longer need it. Syntax: deno deploy sandbox kill <sandbox-id> --org my-org.

deno deploy sandbox ssh

Starts an SSH session against a running sandbox for interactive debugging. Syntax: deno deploy sandbox ssh <sandbox-id> --org my-org.

deno deploy setup-aws

Configure AWS integration for use as a Cloud Connection in your application. Syntax: deno deploy setup-aws --org <name> --app <name>. Options: -h, --help (show help information), --org <name> (organization name, required), --app <name> (application name, required).

deno deploy setup-aws example

deno deploy setup-aws --org my-org --app my-app

deno deploy setup-gcp

Configure Google Cloud Platform integration for use as a Cloud Connection in your application. Syntax: deno deploy setup-gcp --org <name> --app <name>. Options: -h, --help (show help information), --org <name> (organization name, required), --app <name> (application name, required).

deno deploy setup-gcp example

deno deploy setup-gcp --org my-org --app my-app

deno deploy basic deployment examples

# Deploy current directory to production deno deploy --prod # Deploy with specific org and app deno deploy --org my-company --app my-api --prod

deno deploy creating applications examples

# Start the interactive creation wizard deno deploy create # Create with a framework preset deno deploy create --org my-company --app my-site \ --source local --framework-preset fresh \ --build-timeout 5 --build-memory-limit 1024 --region us # Create a static site from a GitHub repo deno deploy create --org my-company --app my-docs \ --source github --owner my-github-org --repo my-docs-repo \ --runtime-mode static --static-dir dist --single-page-app \ --build-command "npm run build" \ --build-timeout 10 --build-memory-limit 2048 --region global

deno deploy switching context examples

# Set a default org and app so you don't have to pass --org/--app every time deno deploy switch --org my-company --app my-api # Now these commands use the saved org and app automatically deno deploy env list deno deploy logs

deno deploy database management examples

# Provision a Deno KV database deno deploy database provision my-kv --kind denokv --org my-company # Link an external PostgreSQL database deno deploy database link my-pg "postgres://user:••••@host:5432/db" --org my-company # Assign a database to an app deno deploy database assign my-kv --app my-api # Query a database deno deploy database query my-pg mydb "SELECT count(*) FROM users"

deno deploy environment setup examples

# Set up environment variables deno deploy env add DATABASE_URL "postgresql://..." --secret deno deploy env add SITE_NAME "My App" # Load from .env file deno deploy env load .env.production

Give your agent this brain