Skip to content
forked from hopinc/cli

💻 Interact with Hop in your terminal

Notifications You must be signed in to change notification settings

CyberFlameGO/hop_cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hop CLI

The Hop CLI allows you to interface with Hop services through your command line. It can be used as a replacement for the Console.

Installing

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.

Logging In

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.

Usage

Projects

You can set a default project to use which will automatically be applied to every command.

hop projects switch

Even when you have a default set, however, you can override it by passing the --project argument to a command with the project's namespace. For example: hop deploy --project api.

Deploying

To deploy a project directory, first navigate to the directory through cd and then execute:

hop deploy

This will walk you through the steps needed to create a deployment, unless you already have a hop.json within the current directory. Then, the directory will be uploaded to our build servers and deployed to Hop!

About

💻 Interact with Hop in your terminal

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages

  • Rust 100.0%