Skip to main content

cnspec login

Register with Mondoo Platform.


Log in to Mondoo Platform using a registration token. To pass in the token, use the '--token' flag.

You can generate a new registration token on the Mondoo Dashboard. Go to -> Space -> Settings -> Registration Token. Copy the token and pass it in using the '--token' argument.

You remain logged in until you explicitly log out using the 'logout' subcommand.

cnspec login [flags]


      --api-endpoint string   Set the Mondoo API endpoint.
-h, --help help for login
--name string Set asset name.
-t, --token string Set a client registration token.

Options inherited from parent commands

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