stackato [options] command [arguments] [command-options]
Try stackato help, stackato help [command], and stackato options for more information.
Many of the informational commands take a --json option if you wish to generate machine-parseable output. In some cases the --json option reveals additional details.
Note
Administrative user privileges are required where "(admin)" is noted.
Log into the current target.
If --token-file is used, the authentication token is saved in the specified token file. Subsequent stackato commands will make use of the specified authentication and token file.
If --group is used, client will persistently set the current group. (All the applicaton and services commands use the option for current group also, but only for that one operation, i.e. transient).
Note
The admin user has the ability to switch to any other user without password when using the login command.
Used to interactively set an authentication token for external SSO systems which do not use an email/password interactive login.
The command displays a Management Console URL which generates a token once the user has authenticated with the SSO provider in the browser. Paste the generated token into the CLI prompt to save it and authenticate.
Use --token-file to set the path to an existing file containing the targets and authorization tokens.
Use --target to specify an API endpoint other than the current target.
Display logs for application instances. Takes the following options:
--follow : Tail the stream of log entries.
--num N : Show the last N log entries. Default: 100. 0 shows the whole log.
--source S : Show only log entries coming from source S (glob pattern).
--instance N : Show only log entries coming from instance N.
--filename F : Show only log entries coming from file F (glob pattern).
--text T : Show only log entries matching the glob pattern T.
ssh [--instance instance] [appname] [command]
Allows ssh access to an app in an interactive shell:
$ stackato ssh myappIf a command is added, it is run and the connection exited:
$ stackato ssh myapp ls -lBy default, the first instance (0) is targeted. Specify other instances with the --instance option:
$ stackato ssh myapp --instance 1 ls -l
host add [--dry-run] [<ip-address> <host>]
host update [--dry-run] [<ip-address> <host>]
host remove [--dry-run] [<ip-address>|<host>]
host list
Manipulate the hosts file on the Stackato client system. Add mappings, replace, remove, and show them.
Note
Unlike most stackato command options, this one operates on the client system, not the target system.
Most of the options below are also listed above with the commands they apply to. This list is equivalent to the output of stackato help options and is included as a cross-reference.