An npm package that automatically installs and wraps the Hasura CLI binary in an isolated manner, currently at v2.38.0. It mirrors the official Hasura CLI releases (Go binary) and is auto-published on new Hasura releases. Key differentiator: it allows per-project installation with different versions, avoiding global binary management and ensuring team consistency. Supports alpha, beta, and latest release channels via npm tags. Requires Node.js >= 16.
npm install hasura-cliVerified import paths — ran on the pinned version, not inferred.
Shows installation, version check, project init, and migration apply using the hasura binary via npx.
Check Hasura CLI changelog for breaking changes between versions, not this package's changelog.
Always specify a tag or version: 'npm install --save-dev hasura-cli@latest' or 'npm install --save-dev hasura-cli@2.38.0'.
Use the binary via npx, shell scripts, or npm scripts. Do not attempt to import.
Pre-download the binary and place it at node_modules/.bin/hasura, or set environment variable HASURA_BINARY_PATH to a local path.
Use '@latest' for stable releases unless you need to test pre-release features.
This is a binary-only package. Use 'npx hasura' or add to scripts.
Reinstall globally: 'npm install -g hasura-cli' or use 'npx hasura'.
Use 'sudo npm install -g hasura-cli' or configure npm prefix for user.
Update to latest version of hasura-cli (>=2.0.0). Alternatively, set environment variable HASURA_BINARY_PATH to a manually downloaded binary.
Delete node_modules and reinstall: 'rm -rf node_modules && npm install'.