@nhost/cli
v1.50.2
Published
Nhost CLI — run via npx or install as a devDependency
Readme
Nhost CLI on npm
Run the Nhost CLI through your package manager — no curl or brew, version-pinned per project.
One-off usage
npx @nhost/cli@latest --version
pnpm dlx @nhost/cli@latest --version
yarn dlx @nhost/cli@latest --version
bunx @nhost/cli@latest --versionInstall in a project
npm install -D @nhost/cli
pnpm add -D @nhost/cli
yarn add -D @nhost/cli
bun add -d @nhost/cliThen run the local binary with your package manager:
npm exec nhost -- --version
pnpm exec nhost --version
yarn nhost --version
bunx nhost --versionOr add scripts to package.json:
{
"scripts": {
"backend:up": "nhost up",
"backend:down": "nhost down"
}
}The package version matches the CLI release version ([email protected] on GitHub), so pinning
the package pins the CLI for the whole team.
Supported platforms
macOS (arm64, x64) and Linux (arm64, x64). On Windows, use WSL2 — inside WSL the Linux binary is selected automatically.
