The stackato client is used for interacting with the system from the command line.
- Download the client for your platform (Windows, OS X, Linux x86, Linux x64)
- Unzip the archive in a convenient directory.
- Add the the executable to your system/shell $PATH by:
- moving it to a directory in your $PATH,
- creating a symlink from a directory in your $PATH, or
- creating a shell alias for the executable.
- Confirm that the client is installed correctly by running stackato -v or stackato help.
To connect the stackato client from you favorite command line interface, you will need to specify the API Endpoint, which is the hostname prepended with “api.”: api.stackato-pry5.local
Target and Login
PS C:\stackato> stackato target api.stackato-pry5.local
Successfully targeted to [https://api.stackato-pry5.local]
PS C:\stackato> stackato login
Attempting login to [https://api.stackato-pry5.local]
Email: <your email account>@foobar.com
Successfully logged into [https://api.stackato-pry5.local]
Reset current group: OK
Group and Apps
To view and application log stream, use the stackato logs command:
PS C:\stackato> stackato logs [myapp] PS C:\stackato> stackato logs f5qarc4-console
To limit the number of lines displayed, use the –num option:
PS C:\stackato> stackato logs [myapp] –num 50
To view log stream as it is updated, use the –follow option:
PS C:\stackato> stackato logs [myapp] –follow
Note stackato logs buffers only 400 lines of the log stream history (i.e. lines generated prior to it being run). If you need earlier log lines, use the stackato files command to fetch the relevant log file from the logs/ directory
You can save whatever you get to your local machine by using redirection operators:
PS C:\stackato> stackato logs f5qarc4-relay –num 50 >> relaylog01.txt
PS C:\stackato> stackato logs f5qarc4-relay –follow
PS C:\stackato> stackato files [appname] [path] [–all]
PS C:\stackato> stackato files f5qarc4-relay /logs
PS C:\stackato> stackato files f5qarc4-relay /logs/stderr.log >> relay-stderr.log