Installing the Hasura CLI
How do I install Hasura CLI in my machine?
Last updated
Was this helpful?
How do I install Hasura CLI in my machine?
Last updated
Was this helpful?
In your Terminal, run the following command:
This will install the Hasura CLI in /usr/local/bin
. You might have to provide your sudo
password depending on the permissions of your /usr/local/bin
location.
If you’d prefer to install to a different location other than /usr/local/bin
, set the env var INSTALL_PATH
:
Download the binary cli-hasura-windows-amd64.exe
available under Assets
of the latest release from the GitHub release page:
Rename the downloaded file to hasura
. You can add the path to the environment variable PATH
for making hasura
accessible globally.
For more info, refer to their documentation:
If you want to hack the matrix, you may want to use autocomplete. The process is different for bash or zsh, so you will want to .
For Mac (bash), run this command: