Global install from npm
npm i -g @cardano-graphql/cli
cgql --help
yarn & yarn add-global
cgql --help
Depending on your local environment, you may need to add the yarn global bin to your PATH. The following command is useful for a single terminal session:
export PATH="$(yarn global bin):$PATH"
cgql --help