Projects
Introduction
A DDN project allows you to deploy your supergraph and relevant data connectors on Hasura DDN.
Initialize a new supergraph project directory locally
You can initialize a new supergraph project directory locally using the CLI by running:
ddn supergraph init <path>
Create a new project on Hasura DDN
You can create a project on Hasura DDN using the CLI by running:
ddn project create
Maximum number of projects on Hasura DDN
The maximum number of projects you can create on Hasura DDN is 150.
Get Hasura DDN project details
You can get information on your project using the CLI by running:
ddn project get <project-name>
You will see an output similar to the following:
+-------------+----------------------------------------------------------------+
| Name | stunning-eagle-6335 |
+-------------+----------------------------------------------------------------+
| Console URL | https://console.hasura.io/project/stunning-eagle-6335 |
+-------------+----------------------------------------------------------------+
| Build Count | 14 |
+-------------+----------------------------------------------------------------+
| Domain | stunning-eagle-6335.ddn.hasura.app |
+-------------+----------------------------------------------------------------+
| Created At | Mon, 03 Jun 2024 14:42:26 IST |
+-------------+----------------------------------------------------------------+
List all projects on Hasura DDN
You can get a list of all your projects using the CLI by running:
ddn project get
You will see an output similar to the following:
+-------------------------------+-----------------------+---------------------------------------------------------+
| CREATED AT | NAME | CONSOLE URL |
+-------------------------------+-----------------------+---------------------------------------------------------+
| Mon, 03 Jun 2024 14:42:26 IST | heavy-muskrat-2190 | https://console.hasura.io/project/heavy-muskrat-2190 |
+-------------------------------+-----------------------+---------------------------------------------------------+
| Wed, 10 Apr 2024 18:58:59 IST | stunning-eagle-6335 | https://console.hasura.io/project/stunning-eagle-6335 |
+-------------------------------+-----------------------+---------------------------------------------------------+
Delete a project on Hasura DDN
You can delete a project using the CLI by running:
ddn project delete <project-name>