The Hop CLI allows you to interface with Hop services through your command line. It can be used as a replacement for the Console.
During development, the Hop CLI can only be installed by directly compiling the binary on your machine. To do this, you'll first need to install Rust. Then, once you've cloned the repository, you can execute this command within the directory:
cargo install --path .
This will make the
hop command available to you.
To get started, you need to login to your Hop account through the CLI:
hop auth login
A browser window will open the Hop Console and prompt you to allow the CLI to connect to your account. Once done, you will be redirected back.
That's all! You can now start using the CLI.
You can set a default project to use which will automatically be applied to every command.
hop projects switch
You can override it by passing the
--project argument. For example:
hop deploy --project api.
To deploy a project directory, first navigate to the directory through
cd and then execute:
This will deploy the project to Hop, or create a new one if you don't have a Hopfile (