This section explains how to install and configure InOrbit’s CLI. The CLI allows you to apply, list, and clear configurations. There are two methods for installing the CLI. The prerequisite is having either Python 3 or Docker installed, depending on installation method.Documentation Index
Fetch the complete documentation index at: https://inorbitinc.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Using the InOrbit CLI with Docker
The InOrbit CLI is distributed in a Docker image which is available on DockerHub. To run the container, follow the commands below:It is possible to mount a volume with all configuration files inside the container to make editing and applying them easier. This example uses the current working directory.
Installing the Package
The other method is to install the official Python package from PyPi.pip by running the command above.
Configuring Environment Variables
INORBIT_CLI_API_KEY with your API key. You can get the API key from the Developer Console.
The CLI verbose mode can be enabled by setting the INORBIT_CLI_VERBOSE environment variable to true.
Getting Started with the CLI
By typing theinorbit or inorbit --help command, you will find the CLI’s help.
The CLI provides the following main commands:
apply: Applies a configuration object.delete: Deletes a configuration object.get: Lists or dumps configuration objects.describe: Get detailed information about configuration objects.
Listing Tags and Robots
inorbit describe <entity> command. You can query the following entities:
- collections: Describe all collections and detailed collection data.
- robots: Describe all robots and detailed robot data.
- tags: Describe all tags and detailed tag data.
Applying a Configuration Object
Theapply command can be used to create or update configuration objects. To apply a configuration object follow these steps:
- Create a JSON file describing the configuration object. (The reference schemas for the different kinds are described in following sections)
-
Run
inorbit apply -f config_file.json. If everything goes well, you’ll see a message likeConfiguration <config/file/path> applied successfully. -
You can use
inorbit get config --scope "<scope>" --kind "<kind>" "<object_id>" --dumpto check that the configuration object was correctly saved in InOrbit.
Deleting a Configuration Object
To delete a configuration object, runinorbit delete config --kind "<kind>" "<object_id>" --scope "<scope>".
You will receive an ok response if the configuration object was successfully deleted.
To make sure that the configuration object was deleted, run inorbit get config --scope "<scope>" --kind "<kind>" "<object_id>" and check that there are no results.
Listing Configuration Objects
Example listing of all config objects of a given kind:IncidentDefinition objects applying to the entire account:
inorbit get config --scope "<scope>" --kind "<kind>".
The --dump option can also be used to dump the contents (in JSON form) of the objects instead of just listing them.
By default the operation lists any configuration object defined for the account, but system defaults are hidden. They can be included adding the
--include-system-defaults option.