Skip to main content

CLI Scripting Options

To use the Altostra CLI in shell scripts, provide either the --text or --json options.
Both options cause the Altostra CLI to run in a non-interactive mode, disabling any interactivity and reducing the output to be easy to parse.

In non-interactive mode, stdout is used purely for command output and all warnings or error messages are emitted through stderr.

--text

Output results as plain text without decoration for piping to other commands.

Property values are delimited by tabs '\t' and records are delimited by EOL ('\n' on Linux and Unix and '\r\n' on Windows).

--json

Output results as JSON for piping to other commands.
Appropriate for APIs that expect JSON, and for tools such as jq.

Ready to Get Started?

Get Started for Free
© 2022 Altostra, Inc.