Introducing One Click Deploy to Hasura Cloud
Tags: graphql
Published: 2023-02-14 08:13:32

---
title: Introducing One Click Deploy to Hasura Cloud
published: true
date: 2023-02-08 14:59:24 UTC
tags: graphql
canonical_url: https://hasura.io/blog/introducing-one-click-deploy-to-hasura-cloud/
---

 ![Introducing One Click Deploy to Hasura Cloud](https://hasura.io/blog/content/images/2023/02/one-click-deploy-to-hasura-cloud.png)

Today, we are happy to introduce One Click Deploy to Hasura Cloud, helping all our users quickly create, share and explore a new project on Hasura Cloud from a sample app. Existing Hasura developers can now share their backends quickly for anyone else to try out.

As a new user to Hasura (or GraphQL), you will be able to explore GraphQL backends quickly. The example backends will feature a range of use cases from database schemas with sample models and apps, external GraphQL APIs that can be connected to Hasura via Remote Schemas, external REST APIs that can be added to Hasura via Action Transforms and more.

## Try it out

We have created sample projects you can deploy to Hasura Cloud to try this out quickly.

- [Chinook Music Library](https://cloud.hasura.io/deploy?github_repo=https://github.com/hasura/data-hub&hasura_dir=data-models/postgres/chinook/hasura&branch=main)
- [Slack Backend](https://cloud.hasura.io/deploy?github_repo=https://github.com/hasura/learn-graphql&hasura_dir=tutorials/backend/hasura-auth-slack/slack-backend)

## How does it work?

When you click a `Deploy to Hasura Cloud` button, you will be taken to the Hasura Cloud dashboard, where a new project is automatically created for you and the migrations, metadata and seeds are applied from the GitHub repo of the sample app connected to the button.

<video width="320" height="240" controls="">
  <source src="https://graphql-engine-cdn.hasura.io/assets/blog/videos/one-click-deploy-to-hasura-cloud.mp4" type="video/mp4">
  Your browser does not support the video tag.
</source></video>

You can dynamically enter any environment variables required to run the Hasura project. This way, you avoid cloning a Git repo, setting up Hasura CLI and applying the Hasura deploy command pointing to a Hasura Cloud project.

[Hasura CLI](https://hasura.io/docs/latest/hasura-cli/index/) is used extensively by users running Hasura in a production environment. A CLI-generated Hasura project is at the core of collaboration between various teams within an organisation, migrating from local development -> staging -> production, among many other workflows.

Extending the power of Hasura CLI, every publicly available Hasura project generated by the CLI is now a sample app that can be deployed as a Hasura Cloud project.

## Discovering examples and sample apps

We have launched the [Hasura Hub](https://hasura.io/hub/) page, where you can now browse a list of sample apps that can be deployed quickly using the Deploy to Hasura Cloud button workflow.

![Introducing One Click Deploy to Hasura Cloud](https://hasura.io/blog/content/images/2023/02/Hasura-Hub.png)
_Browse through a curated list of sample apps and example projects to deploy using one click_

Want to contribute to this list? Feel free to submit your sample [Hasura project here](https://hasura.io/hub/submit-new-integration/) and we will get back to you.

## Creating your own one-click to deploy app

An example Deploy button that can be used to embed inside your Hasura project repos.

![Introducing One Click Deploy to Hasura Cloud](https://lh6.googleusercontent.com/acyiLqgMfP0ubfkeiJpCVktDN_-yULPhxTDu02H7dT1tkHxzaTyQo8IdDQQDswR8KWBcc9e_gC2afDCZhfZSlYcG4LlwHutu-zdcQ70KWwKH94zN5JEdDjgLucTP1T3j-c3TGw9PbQSg4-hkDBgkUJc)

If you have an existing Hasura CLI project on GitHub, it can be instantly deployed to Hasura Cloud. You will have to just format the URL to point to your project and Hasura will take care of applying migrations and metadata automatically.

```
https://cloud.hasura.io/deploy?github_repo=<LINK-TO-GIT-REPO>&hasura_dir=<PATH-TO-HASURA-DIRECTORY-IN-REPO>&branch=<BRANCH-NAME>
```

Replace the github repo, path to Hasura directory and the branch appropriately.

## Docs and resources

- [One Click Deploy to Hasura Cloud on Hasura Docs](https://hasura.io/docs/latest/hasura-cloud/one-click-deploy/index/)
- [Create a One Click Deploy App](https://hasura.io/docs/latest/hasura-cloud/one-click-deploy/create-one-click-to-deploy-apps/)
- [Hasura Hub](https://hasura.io/hub/)