logo

Hoop CLI

Command Line

The command line allows administrating gateway resources and connecting to remote resources. There're two ways of interact with connections

Exec (ad-hoc executions)

The exec command allows for executing ad-hoc commands over remote connections. It initiates a command in a remote service and then returns the result, applying all policies and configurations.
shell
$ hoop exec myconnection -i '/bin/process-job.sh'
ad-hoc cli execution example

Connect (terminal console)

The connect command allows creating an interactive session with a remote resource. Every command that runs in a terminal console could be integrated with Hoop. A few examples:
  • docker exec
  • bash
  • ssh
  • rails console
  • python console
  • kubectl exec
  • aws ecs execute-command
shell
$ hoop connect bash-console connection: bash-console | session: 53ed53f9-a5f9-45e9-bbf5-becd1f44f41e root@5601881aa15e:/app#
terminal console cli example

Connect (TCP)

The connect could also be used to interact with TCP services like databases and can be used with IDE or any database native client. The port is forwarded locally to the end-user granting secure connection to remote services.
shell
$ hoop connect pg-prod connection: pg-prod | session: 4619c80f-7166-487c-8c9f-9609e59ae5d6 --------------------postgres-credentials-------------------- host=127.0.0.1 port=5433 user=noop password=noop ------------------------------------------------------------ ready to accept connections!
postgres tcp connection example

Powered by Notaku