Command Line

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 permits executing ad-hoc executions over remote connections. It initializes a command in a remote service and then return the result back applying all policies and configurations.
$ 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
$ 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.
$ hoop connect pg-prod connection: pg-prod | session: 4619c80f-7166-487c-8c9f-9609e59ae5d6 --------------------postgres-credentials-------------------- host= port=5433 user=noop password=noop ------------------------------------------------------------ ready to accept connections!
postgres tcp connection example

Powered by Notaku