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
#
UpgradeTo upgrade the CLI to the latest version, re-run the commands in the installation step.
#
Commands#
InitSwitches the coreHost
of KintoHub instance for future CLI commands.
#
ResetWill 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.
#
StatusLists all environments that current .git
repository has been deployed to.
Requirements -- Command must be executed from within a
.git
repository
#
Service#
Fetch ServicesList 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 ServiceAllows 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.
#
AccessRequirements -- Command must be executed from within a
.git
repository
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.
#
TeleportRequirements -- Command must be ran within a
.git
repository
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.
#
VersionDisplays the current CLI version.
#
HelpDisplays a list of available commands.