Command-Line
Install and configure the hoop.dev CLI to interact with your applications.
Prerequisites
To get the most out of this guide, you will need to:
Installation
Through homebrew:
To upgrade it:
Authenticate
For Managed Instance Users
If you’re using our managed instance, you can skip directly to the hoop login
command below. The gateway URL will automatically be set to https://use.hoop.dev
.
For Self-Hosted Users
If you’ve deployed your own instance, use the URL you specified in the API_URL
environment variable of your Hoop Gateway:
The configuration will be saved to $HOME/.hoop/config.yaml
.
Obtaining an Access Token
Once the gateway URL is configured, authenticate with the API by running:
This command will open your default browser and redirect you to the identity provider for authentication.
Using Environment Variables
Another way to use the command line is by exporting the following environment variables:
When using environment variables, it will ignore the local configuration file $HOME/.hoop/config.yaml
Managing Configuration
To remove your existing configuration:
This command will delete all stored configuration settings, including the gateway URL and authentication tokens.
hoop connect
The hoop connect
command allows you to create an interactive session with a remote resource. The resource can be an interactive terminal console or TCP services such as databases.. Here are a few examples:
Terminal console
- docker exec
- bash
- ssh
- rails console
- python console
- kubectl exec
- aws ecs execute-command
TCP
The connect feature can be used to interact with TCP services such as databases. It can be used with an IDE or any native database client. The port is forwarded locally to the end-user, providing a secure connection to remote services.
The connection is established through a secure tunnel. The connection is encrypted and authenticated using the user’s identity.