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:
Through homebrew:
To upgrade it:
To install or upgrade:
Download
Download the latest release of hoop command line for your architecture (usually hoop-windows-amd64) and save it in the Downloads folder
Extract
Extract the file using winrar or winzip
Place it in the right folder
Move the extracted file hoop.exe
to the folder C:\Windows\System32\
Check the installation
Open a terminal session and type hoop version
if it successfully shows the program’s version it’s installed.
Prerequisites
- Install the Windows Terminal https://aka.ms/terminal
- Install Ubuntu WSL https://ubuntu.com/wsl
- Open the Windows Terminal App
- Install and open the Ubuntu typing
ubuntu
. It should prompt to create a user in the first time
- gain root access
- To install or upgrade the hoop.dev command line:
Check the latest version for your operating system architecture in the releases page.
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.