Coder Social home page Coder Social logo

hello5470 / cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hopinc/cli

0.0 0.0 1.0 1.7 MB

๐Ÿ’ป Interact with Hop in your terminal

Home Page: https://docs.hop.io/cli

License: Mozilla Public License 2.0

Shell 1.26% Rust 98.67% PowerShell 0.08%

cli's Introduction

Hop CLI

Build and release

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

Installation

Any of the following will make the hop command available to you.

Arch Linux

Use your favorite AUR helper to install the package (e.g. paru):

paru -S hop-cli

Windows

Install with the Hop Windows Installer 64bit or the Hop Windows Installer 32bit

Homebrew

brew install hopinc/tap/hop

Linux, MacOS and FreeBSD

It can be installed with our universal install script:

curl -fsSL https://download.hop.sh/install | sh

Source

To build the application from the source code, 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 .

Logging In

To get started, you need to log in 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

You can override it by passing the --project argument. 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 deploy the project to Hop, or create a new one if you don't have a Hopfile (hop.yml) already.

Linking

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

hop link

This will link the directory to the deployment and create a Hopfile (hop.yml).

Contributing

Contributions are welcome! Please open an issue or pull request if you find any bugs or have any suggestions.

cli's People

Contributors

pxseu avatar looskie avatar phineas avatar jelni avatar alii avatar dustinrouillard avatar ndzn avatar knvi avatar

Forkers

mathreading

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.