Skip to main content

Using deployctl on the command line

deployctl is a command line tool (CLI) that lets you work with the Deno Deploy platform.

Install deployctl

You can install the deployctl command with the below command:

deno install --allow-all --no-check -r -f

You also need to set the DENO_DEPLOY_TOKEN environment variable to your personal access token. You can generate your Personal Access Token in


To deploy a local script:

deployctl deploy --project=helloworld main.ts

To deploy a remote script:

deployctl deploy --project=helloworld

To deploy a remote script without static files:

deployctl deploy --project=helloworld --no-static

To ignore the node_modules directory while deploying:

deployctl deploy --project=helloworld --exclude=node_modules main.tsx

See the help message (deployctl -h) for more details.

deno CLI and local development

For local development you can use the deno CLI. To install deno, follow the instructions in the Deno manual.

After installation, you can run your scripts locally:

$ deno run --allow-net=:8000
Listening on http://localhost:8000

To watch for file changes add the --watch flag:

$ deno run --allow-net=:8000 --watch ./main.js
Listening on http://localhost:8000

For more information about the Deno CLI, and how to configure your development environment and IDE, visit the Deno Manual's Getting Started section.