Development & CLI
Nhost CLI
Tools to develop and test Nhost projects locally
Instaling the Nhost CLI
To install the Nhost CLI copy the following command and paste it into your terminal:
The get.sh
script checks for both the architecture and operating system and installs the right binary.
Supported Platforms:
- MacOS
- Linux
- Windows WSL2
Dependencies:
Updating the Nhost CLI
Update an existing installation to the latest version.
Terminal
Running Nhost
Inside of the folder where you want to create your project, run:
Terminal
init
will scaffold a bunch of files that Nhost uses to manage configuration, database schema and migrations, APIs, functions, etc.
With the project scaffolding in place, start the local Nhost instance with nhost up
:
Terminal
The following services are started:
- Postgres
- Hasura Console
- GraphQL API
- Authentication
- Storage
- Functions
- Dashboard
- Mailhog (SMTP server for testing emails locally)
Support for Nhost Run services is coming soon