CLI reference

The CLI is supported for Linux and MacOS

Usage

The CLI must be named 'instant-linux' for Linux, and 'instant-macos' for MacOS for autocomplete to work

Main Commands

completion    Generate the autocompletion script for the specified shell
package       Package level commands
project       Project level commands
help          Help about any command

Sub Commands

package

The package sub command includes commands:

init          Initialize a package with relevant configs, volumes and setup
up            Stand a package back up after it has been brought down
down          Bring a package down without removing volumes or configs
remove        Remove everything related to a package (volumes, configs, etc)
generate      Generate a new package

The package level commands, as shown, are there to control packages within a project, as well as generate the skeleton for a new package.

Each of these sub commands accept the following flags:

E.g. ./instant package init -n interoperability-layer-openhim

For information about flags associated to any one of the package commands, do instant-linux package [command] --help

After generating a new package, remember to add the package ID to the config file

project

The project sub command includes commands:

The project level commands, as shown, are there to simultaneously perform commands on all packages in a project, as well as generate the config file for a new project, in the desired format.

Each of these sub commands accept the following flags:

For information about flags associated to any one of the project commands, do instant-linux project [command] --help

completion

The completion sub command includes commands:

The project level commands, as shown, are there to enable autocomplete for the specified shell.

Last updated

Was this helpful?