---
title: "nctl scan"
diataxis: reference
applies_to:
  product: "nctl"
audience: ["developer","platform-engineer"]
last_updated: 2026-03-07
url: https://docs.nirmata.io/docs/nctl/commands/nctl_scan/
---

## nctl scan

Scan resources

### Examples

```bash

  # Scan a Kubernetes cluster and analyze and publish the scan results
  nctl scan kubernetes --cluster --analyze --publish

  # Scan Kubernetes manifests, Dockerfiles, and Terraform code in a repository
  nctl scan repository https://github.com/nirmata/demo-resources

  # Scan the current directory
  nctl scan repository 

```

### Options

```text
  -h, --help   help for scan
```text

### Options inherited from parent commands

```text
  -v, --v Level   number for the log level verbosity
```

### SEE ALSO

* [nctl](nctl.md)	 - nctl is the command line interface for Nirmata
* [nctl scan compliance](nctl_scan_compliance.md)	 - Run a compliance scan against a Kubernetes cluster
* [nctl scan dockerfile](nctl_scan_dockerfile.md)	 - scan dockerfile resources
* [nctl scan github-actions](nctl_scan_github-actions.md)	 - Scan GitHub Actions workflow files for security vulnerabilities
* [nctl scan helm](nctl_scan_helm.md)	 - scan helm-charts
* [nctl scan json](nctl_scan_json.md)	 - scan json resources
* [nctl scan kubernetes](nctl_scan_kubernetes.md)	 - scan kubernetes resources
* [nctl scan prompt](nctl_scan_prompt.md)	 - [Experimental] scan LLM prompts
* [nctl scan repository](nctl_scan_repository.md)	 - scan files in a git repository
* [nctl scan skills](nctl_scan_skills.md)	 - [Experimental] scan agent skills
* [nctl scan terraform](nctl_scan_terraform.md)	 - scan terraform resources


