When a command requires authentication and none is available, the CLI detects the error and—if running in an interactive terminal—offers to start the login flow automatically. If you decline, or if the session is non-interactive, the command exits non-zero with guidance on how to authenticate.