Installation
You can download the CLI binaries below and start using it immediately. Please follow the instructions for your system.
Install instructions
- macOS and Linux
- Windows
Simply run the installer script in your terminal:
curl -L https://graphql-engine-cdn.hasura.io/ddn/cli/v1/get.sh | bash
Download the latest cli-ddn-windows-amd64.exe
binary and run it.
curl -L https://graphql-engine-cdn.hasura.io/ddn/cli/v1/latest/cli-ddn-windows-amd64.exe -o ddn.exe
Unrecognized application warning
In Windows, if you get an "Unrecognized application" warning, click "Run anyway".
Verify Installation
Running ddn
should print the following message:
DDDDDDD\ DDDDDDD\ NN\ NN\
DD __DD\ DD __DD\ NNN\ NN |
DD | DD | DD | DD | NNNN\ NN |
DD | DD | DD | DD | NN NN\NN |
DD | DD | DD | DD | NN \NNNN |
DD | DD | DD | DD | NN |\NNN |
DDDDDDD | DDDDDDD | NN | \NN |
\_______/ \_______/ \__| \__|
Usage:
ddn [command]
DDN commands
apply Apply a SupergraphBuild to its Environment on Hasura DDN
build Create Supergraph and Data Connector builds
create Create a new resource on Hasura DDN
delete Delete a resource from Hasura DDN
get List resources or get details of a resource from Hasura DDN
Metadata commands
add Add objects to the local metadata
dev Watch and do local development in a local DDN project
update Update objects in the local metadata
CLI auth commands
login Login to DDN
logout Logout from DDN
Other commands
help Help about any command
plugins Manage plugins for the CLI
update-cli Update this CLI to the latest version or to a specific version
version Prints the CLI version
Flags:
--dir string DDN project directory in which hasura.yaml is present (default ".")
-h, --help help for ddn
--log-level string Log level. accepts DEBUG, WARN, INFO, ERROR, FATAL (default "INFO")
--no-prompt Set this flag to no prompt for anything, the command fails if any input is missing
-o, --out string Format in which the output should be printed, accepts table, json and yaml (default "table")
-p, --project string DDN Project Name
-s, --supergraph-manifest string SupergraphManifest to use. (Optional. DefaultSupergraphManifest used if not provided)
Use "ddn [command] --help" for more information about a command.