SuperAPI AI Directory

nhost/nhost

Nhost CLI is the local development command-line tool for Nhost, an open-source Firebase alternative, used to set up a local environment that automatically tracks database migrations and Hasura metadata. It launches the full suite of Postgres, GraphQL, Auth, Storage, and Functions services via Docker, and supports working with the Nhost GitHub Integration to deploy to production via a Git-based workflow. The CLI also includes a built-in MCP server, allowing AI assistants to access GraphQL data, project configuration, and documentation under fine-grained permission control, assisting with schema management, metadata changes, and migrations. The material does not provide complete installation commands or pricing information.

Open website

About this tool

Purpose Nhost CLI is intended for Nhost local development, used to establish a development environment that automatically tracks database migrations and Hasura metadata. Nhost is described as an open-source Firebase alternative with GraphQL. The official recommendation is to use Nhost CLI together with the Nhost GitHub Integration, developing locally and automatically deploying changes through a Git workflow similar to Netlify and Vercel.

Key capabilities The CLI can launch a complete stack including Postgres, GraphQL, Auth, Storage, and Functions via Docker, and outputs local service URLs. The local Dashboard address is https://local.dashboard.local.nhost.run。CLI It includes a built-in MCP server that lets AI assistants interact with Nhost projects via the Model Context Protocol, providing secure, controlled access to GraphQL data, project configuration, and documentation; permissions can be set at a fine-grained level to specify which queries and mutations the LLM can execute. During development, it can be used for AI-assisted schema management, metadata changes, and migrations, with direct access to the GraphQL schema for building queries.

Usage The commonly used commands listed in the material include nhost init, nhost up, nhost down, and nhost logs. nhost init generates a Git-version-controlled nhost/ backend configuration directory and a functions/ directory, and can also start from an existing Nhost Cloud project; nhost up launches the full suite of services via Docker and prints the local service URLs; nhost down stops the services; nhost logs views logs. Login is only needed to pull configuration from an existing Nhost Cloud project or to deploy; purely local work can skip it.

Regarding installation, the material lists approaches such as npm, pnpm, Yarn, and Bun, and also mentions installing within a project to pin the team version, running without installation, quick installation on Linux/macOS, and specifying a version, but the captured text did not retain the specific installation commands, so complete command content is not currently provided.

Building from source requires Go 1.18 or later, and after building, the nhost command can be used in the terminal. The source includes self-signed certificates for testing; Nhost workers configured with AWS access permissions can use the cert.sh script to generate real certificates from Let's Encrypt.

Use cases Suitable for developers and teams that need to reproduce the Nhost backend locally, manage database migrations and Hasura metadata, deploy via a Git workflow, and want AI assistants to assist with GraphQL query building, schema management, metadata changes, and migrations under controlled permissions.

Limitations and notes Local development depends on Docker; building from source depends on Go 1.18 or later. The material does not provide pricing, cost, a complete list of supported platforms, or complete installation commands.

The script for regenerating local TLS certificates now requires an explicit Kubernetes target, which is a breaking change from the previous way of running it without arguments.Changes. Must be run from the repository root by entering the CLI development shell. Runtime requires Certbot and its Route53 plugin, kubectl, jq, dig; shellcheck is only used for script lint and is not a runtime dependency. The operator needs working AWS credentials and an active Kubernetes context, with get and patch permissions on the Deployment plus rollout status/watch permissions; the script will not select or change the kubectl context.

The wildcard authentication hook patches the existing ACME_CHALLENGE_* environment variables in the Deployment. Each of the nine supported variables must appear exactly once in a single container as a direct, non-empty value; duplicate variables, valueFrom, or Deployment layout changes are handled as fail-closed. Rapidly issuing challenges may cause intermediate rollout churn; only the last-invoked hook waits for the final generation and DNS readiness. Challenge values are intentionally retained. If Certbot reuses all cached authorizations, the hook is not invoked and issuance is a valid no-op; if only partially cached, the final hook also verifies all retained values.

The rollout timeout, global DNS timeout, and DNS polling interval default to 300, 300, and 2 seconds respectively, and can be overridden via ACME_ROLLOUT_TIMEOUT_SECONDS, ACME_DNS_TIMEOUT_SECONDS, ACME_DNS_POLL_INTERVAL_SECONDS; the worst case is about ten minutes after a fast patch. DNS uses the system resolver by default; ACME_DNS_SERVER can be set to a hostname or IPv4 resolver on standard port 53; when recursive negative caching delays new TXT records, prefer an authoritative or suitable public resolver.

Do not run certificate requests concurrently against the same Deployment, because its environment can hold only one value per service. A UID or generation change during rollout also aborts the run. Verification values are public DNS data, and kubectl set env will inevitably expose the current value in that process's argument list; the hook suppresses command output containing values and does not create a token state file, but operators should still restrict local process inspection and command tracing. Route53 certificates, certificate replication targets and final cleanup remain unchanged. Commands must be run from cli/ so that existing relative output paths continue to resolve. No specific platform details are provided under the Supported Platforms heading.