cnspec shell
Interactive query shell for MQL.
Synopsis
Run an interactive shell in which you can explore MQL queries.
cnspec shell [flags]
Options
--ask-pass Prompt for connection password.
-c, --command string MQL query to execute in the shell.
--discover string Enable the discovery of nested assets. Supported: 'all|auto|instances|host-instances|host-machines|container|container-images|pods|cronjobs|statefulsets|deployments|jobs|replicasets|daemonsets' (default "auto")
--discover-filter stringToString Additional filter for asset discovery. (default [])
-h, --help help for shell
--host-machines Also scan host machines like ESXi server.
-i, --identity-file string Select a file from which to read the identity (private key) for public key authentication.
--insecure Disable TLS/SSL checks or SSH hostkey config.
--instances Also scan instances. This only applies to API targets like AWS, Azure, or GCP.
--option --option key=value Additional connection options. You can pass multiple options using --option key=value. (default [])
-p, --password string Set the connection password, such as for SSH/WinRM.
--path string Path to a local file or directory for the connection to use.
--platform-id string Select a specific target asset by providing its platform ID.
--sudo Elevate privileges with sudo.
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
SEE ALSO
- cnspec - cnspec CLI
- cnspec shell arista - Connect to an Arista endpoint.
- cnspec shell aws - Connect to an AWS account or instance.
- cnspec shell azure - Connect to a Microsoft Azure subscription or virtual machines.
- cnspec shell container - Connect to a container, image, or registry.
- cnspec shell docker - Connect to a Docker container or image.
- cnspec shell filesystem - Connect to a mounted file system target.
- cnspec shell gcp - Connect to a Google Cloud Platform (GCP) project.
- cnspec shell github - Connect to a GitHub organization or repository.
- cnspec shell gitlab - Connect to a GitLab group.
- cnspec shell google-workspace - Connect to a Google Workspace organization.
- cnspec shell host - Connect to a host endpoint.
- cnspec shell k8s - Connect to a Kubernetes cluster or local manifest files(s).
- cnspec shell local - Connect to your local system.
- cnspec shell mock - Connect to mock target (a simulated asset).
- cnspec shell ms365 - Connect to a Microsoft 365 tenant.
- cnspec shell oci - Connect to Oracle Cloud Infrastructure (OCI) tenancy.
- cnspec shell okta - Connect to an Okta organization.
- cnspec shell opcua - Connect to an OPC UA endpoint.
- cnspec shell slack - Connect to a Slack team.
- cnspec shell ssh - Connect to an SSH target.
- cnspec shell terraform - Connect to Terraform HCL (files.tf and directories), plan files (json), and state files (json).
- cnspec shell vagrant - Connect to a Vagrant host.
- cnspec shell vcd - Connect to a VMware Virtual Cloud Director organization.
- cnspec shell vsphere - Connect to a VMware vSphere API endpoint.
- cnspec shell winrm - Connect to a WinRM target.