deno.com
On this page

Deploy Button

Info

You are viewing the documentation for Deno DeployEA. Looking for Deploy Classic documentation? View it here.

The Deploy Button offers a shortcut for users to create and deploy a new application on Deno Deploy based on existing code hosted in a Git repository.

It provides a link directly into the Deno Deploy application creation flow, and populates settings in the creation flow based on provided query parameters or values found in the deno.json file of the specified source.

The specified repository will be cloned to the user’s GitHub account and set as the source for a new project. By default, the new repository will be public, but can be set to be private if required.

Example Jump to heading

The deploy button below demonstrates the creation of a new application based on a simple starter project

Deploy on Deno

Create and deploy a new application Jump to heading

Use the code below to give a button which creates and deploys a new application:

Markdown

[![Deploy on Deno](https://deno.com/button)](https://app.deno.com/new?clone=REPOSITORY_URL)

HTML

<a href="https://app.deno.com/new?clone=REPOSITORY_URL"><img src="https://deno.com/button" alt="Deploy on Deno"/></a>

URL

https://app.deno.com/new?clone=REPOSITORY_URL

Parameters Jump to heading

The following query parameters can be used to configure a Deploy Button:

  • clone — (required) The URL of the source repo to clone as a new repo which will then be deployed
  • path — (optional) The path within the source repo to clone from. Providing this will create a new repo whose root is this directory from within the source repository.
  • install — (optional) the command to execute prior to a build in order to install dependencies
  • build — (optional) the command to execute to build the application

Did you find what you needed?

Privacy policy