CLI Commands

cnspec status

Verify cnspec access to Mondoo Platform by sending a ping to check credentials.

Send a ping to Mondoo Platform to verify that your credentials are valid and that cnspec can communicate with the API. This is useful for troubleshooting connectivity or authentication issues after running cnspec login.

cnspec status

Get the status as JSON for use in scripts:

cnspec status --output json

Options

  -h, --help            help for status
  -o, --output string   Set the output format: json, yaml

Options inherited from parent commands

      --api-proxy string   Set the proxy for communications with Mondoo Platform API
      --auto-update        Enable automatic provider installation and update (default true)
      --config string      Set config file path (default $HOME/.config/mondoo/mondoo.yml)
      --log-level string   Set the log level: error, warn, info, debug, trace (default "info")
  -v, --verbose            Enable verbose output

SEE ALSO

On this page