Command Line Interface (CLI)
KintoHub provides a command line interface (CLI) which can be used to debug and interact with your services.
The CLI is currently an open source ALPHA utility that we are working on. Contributions are welcomed at kintoproj/kinto-cli
Installation#
- Mac
- Linux
- Windows
Upgrade#
To upgrade the CLI to the latest version, re-run the commands in the installation step.
Commands#
Init#
Switches the coreHost of KintoHub instance for future CLI commands.
Reset#
Will reset your CLI coreHost and set it to null
Environment#
Fetch Environments:#
Lists all environments on the current cluster
Port-Forward environment:#
Allows you to port-forward all remote services inside a particular environment to your local machine. You will be prompted to choose an environment if the optional [environment-id] argument was not supplied.
Status#
Lists all environments that current .git repository has been deployed to.
Requirements -- Command must be executed from within a
.gitrepository
Service#
Fetch Services#
List all services within the chosen environment. You will be prompted to choose an environment if the optional [environment-id] argument is not supplied.
Port-Forward Service#
Allows you to port-forward a specific remote service inside a particular environment to your local machine. You need to pass the mandotary {environmentId} and {serviceId} for this command.
Access#
Requirements -- Command must be executed from within a
.gitrepository
This command will port-forward all of your remote services belonging to your local git repository , from the chosen environment, to your local machine. You will be prompted to choose an environment.
Teleport#
Requirements -- Command must be ran within a
.gitrepository
This command will redirect all the traffic for a single remote service, belonging to your local git repository and port-forward rest of the remaining remote services, from the chosen environment to your local machine. You will be prompted to choose an environment.
Version#
Displays the current CLI version.
Help#
Displays a list of available commands.