Skip to content

nhost/cli

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
cmd
 
 
 
 
 
 
nix
 
 
 
 
 
 
ssl
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Nhost is an open source Firebase alternative with GraphQL.

The Nhost CLI is used to get a local development environment. The local development environment will automatically track database migrations and hasura metadata.

It's recommended to use the Nhost CLI and the Nhost GitHub Integration to develop locally and automatically deploy changes to production with a git-based workflow (similar to Netlify & Vercel).

Services:

Get Started

Install the Nhost CLI:

sudo curl -L https://raw.githubusercontent.com/nhost/cli/main/get.sh | bash

Initialize a project:

nhost init

Initialize a project with a remote project as a starting point:

nhost init --remote

Start the development environment:

nhost up

You can also use the Nhost Dashboard:

nhost up --ui nhost

Documentation

Build from source

Make sure you have Go 1.18 or later installed.

The source code includes a self-signed certificate for testing purposes Nhost workers with configured access to AWS may use cert.sh script to generate a real certificate from Let's Encrypt.

go build -o /usr/local/bin/nhost will build the binary available as nhost command in terminal.


## Dependencies

- [Docker](https://docs.docker.com/get-docker/)
- [Docker Compose](https://docs.docker.com/compose/install/)
- [curl](https://curl.se/)
- [Git](https://git-scm.com/downloads)

## Supported Platforms:

- MacOS
- Linux
- Windows WSL2