Installation
You can download the CLI binary below. Please follow the instructions for your system.
- macOS and Linux
- Windows
Simply run the installer script in your terminal:
curl -L https://graphql-engine-cdn.hasura.io/ddn/cli/v4/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/v4/latest/cli-ddn-windows-amd64.exe -o ddn.exe
In Windows, if you get an "Unrecognized application" warning, click "Run anyway".
Additionally, you'll need to add this executable to your system's PATH:
Step 1: Locate the and rename the executable: Find the full path to the directory containing the executable. For
example, if the executable is located in C:\Program Files\cli-ddn-windows-amd64.exe
, note this path. Also, rename it
to ddn
for ease when writing commands later on.
Step 2: Open System Properties:
- Press
Win + X
and select System. - Click on Advanced system settings on the left side.
- In the System Properties window, click on the Environment Variables button.
Step 3: Edit the PATH Variable:
- In the Environment Variables window, find the System variables section.
- Scroll down and select the Path variable, then click Edit.
- In the Edit Environment Variable window, click New and paste the path to the directory containing your executable
(e.g.,
C:\Program Files\ddn.exe
).
Step 4: Save Your Changes:
- Click OK to close the Edit Environment Variable window.
- Click OK to close the Environment Variables window.
- Click OK to close the System Properties window.
Step 5: Verify the Changes: Open a new Command Prompt or PowerShell window and type the following.
ddn
Verify Installation
Running ddn version
should print the CLI version, For example:
DDN CLI Version: v2.0.1