Commands
Overview of Instruqt CLI commands.
Overview
The Instruqt Command-Line Interface (CLI) is a text-based interface that accepts commands to create and maintain tracks. Instruqt CLI commands let you do things like:
Create a new track from scratch.
Pull the configuration files of an existing track.
Push your local changes to the Instruqt platform to update the track.
Start an automated test of the track.
Instruqt CLI commands
Instruqt CLI commands always start with the instruqt directive, followed by a command with an optional subcommand and optional flags.
For example, challenge is a command which has a create subcommand and a --title flag:
instruqt challenge create --title "Create a Kubernetes cluster"But version is a command on its own:
instruqt versionAvailable commands
To get started working with your content you can specify your team (org name) with the following command:
instruqt config set team your-team-nameTo explore the available commands, open a terminal on your machine and enter the following command:
↳ Instruqt CLI shows the available commands:
active-users
List all users playing an invite.
auth
Authentication commands.
challenge
Create and manage challenges.
completion
Generate shell auto completion scripts.
config
View and edit Instruqt CLI configuration.
developer
Manage the developers of a track.
help
Help about any command.
note
Create and manage notes.
track
Create and manage tracks.
update
Update the CLI.
version
Show the version of the CLI.
Drill down commands
You can drill down any command with the --help flag—for example the track command:
↳ After which Instruqt CLI shows the subcommands for track command:
And you can even further drill down by adding a subcommand:
↳ After which Instruqt CLI shows examples and the flags for the create subcommand:
Telemetry and crash reports
The Instruqt CLI collects basic usage statistics that help us develop the product. No personal information is collected. You can disable telemetry with the following command:
Our CLI submits crash reports automatically to Instruqt via Sentry, which helps us fix issues you may encounter faster. You can disable crash-reports with the following command:
Commonly used commands
The following commonly used commands are further specified for your reference:
Last updated
Was this helpful?