Skip to content

Global Flags

These flags are available on all commands (except login, logout, status, version):

Flag Short Type Default Description
--env -e string production Environment (testing, staging, production)
--output -o string text Output format (json, text)
--verbose -v bool false Show verbose HTTP request/response details
--no-color bool false Disable colored output

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Use staging environment
mysecutec assets list --env staging

# Get JSON output
mysecutec threats list --output json

# Verbose HTTP debugging
mysecutec assets get abc-123 --verbose

# Combine flags
mysecutec threats list -e testing -o json -v

Output Formats

Text (default)

Colored tables and key-value pairs rendered in the terminal.

JSON

Raw JSON API responses, useful for piping to jq or other tools:

1
mysecutec assets list -o json | jq '.assets[0]'