sts
CLI provides easy access to the functionality provided by the StackState APIs. It can be used for automate using StackState data, configure StackState and to develop StackPacks.sts
CLI will eventually replace the stac
CLI, however, not all commands are currently supported. For an overview of the differences and overlap between the new sts
CLI and the stac
CLI, see the CLI comparison page.sts
CLI on the same machine as the stac
CLI.sts
CLIsts
CLI works with StackState version 5.0 and above.sts
CLI:<URL>
and <API-TOKEN>
and run the command below. After installation, the sts
command will be available for the current user on both the Powershell terminal and the command prompt (cmd.exe).<URL>
and <API-TOKEN>
for your StackState instance.sts
command will be available for the current user on both the Powershell terminal and the command prompt (cmd.exe).sts
command available everywhere:<URL>
and <API-TOKEN>
and run the command below. After installation, the sts
command will be available for the current user.<URL>
and <API-TOKEN>
for your StackState instance.sts
command will be available for the current user.<URL>
and <API-TOKEN>
and run the command below. After installation, the sts
command will be available for the current user.<URL>
and <API-TOKEN>
for your StackState instance.sts
command will be available for the current user.<URL>
and <API-TOKEN>
required to configure the CLI for your StackState instance.docker run
command (e.g. docker run stackstate/stackstate-cli2 version
).sts
CLI<URL>
is the URL to your StackState instance and <API-TOKEN>
is the API token you copied from the CLI page in the StackState UI:~/.config/stackstate-cli/config.yaml
.STS_CLI_URL
- the URL to your StackState instance.STS_CLI_API_TOKEN
- the API token taken from the StackState UI Main menu > CLI page.--expiration
parameter is optional and can be used to set the expiration date of the service token.sts
CLI supports configuration and management of different (authentication) contexts. This enables you to easily switch between an administrative and regular user, or to switch between different StackState instances. For example, you could use a different context for a test and production instance of StackState. You can list, save, delete, set and validate contexts in the new sts
CLI. Run sts context -h
for details of the available commands and their usage.sts
CLI. You can also configure the CLI through a combination of environment variables and flags.STS_CLI_URL
--url
STS_CLI_API_TOKEN
--api-token
STS_CLI_SERVICE_TOKEN
--service-token
STS_CLI_API_PATH
/api
)STS_CLI_CONTEXT
--context
--config <PATH>
flag.sts
CLI and all associated configuration are now removed for the current user.sts
CLI and all associated configuration will be removed for the current user.sts
CLI and all associated configuration are now removed for the current user.sts
CLI, follow the steps below.sts
CLI, run the command:sts
CLI, run the command:sts
CLI and all associated configuration are now removed for the current user.sts
CLI and all associated configuration are now removed for the current user.sts
CLI, follow the steps below.sts
CLI, run the command:sts
CLI, run the command:sts
CLI and all associated configuration are now removed for the current user.