> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-commands.md).

# Harness CLI Commands

Browse the Harness CLI command reference by module, with examples and flags for each resource and action.

The Harness CLI follows a consistent `harness <verb> <noun>` pattern across every module. Each page in this section covers one module: the resources it exposes, the actions each resource supports, and worked examples you can run from a terminal or a script.

***

## Before you begin <a href="#before-you-begin" id="before-you-begin"></a>

* **Harness CLI installed and authenticated:** Go to [Install and upgrade](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/install-and-upgrade.md) to install the CLI, and [Authenticate](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/authenticate.md) to set up credentials.
* **Resource and action matrix:** Go to [Supported resources and actions](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/supported-resources-and-actions.md) to check which actions a resource supports before you build a script.
* **Shared flags:** Go to [Global flags and output formats](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/global-flags-and-output.md) to learn about scope, output formats, filtering, and pagination.

***

## Command reference by module <a href="#command-reference-by-module" id="command-reference-by-module"></a>

{% content-ref url="/pages/rIgJ2JKTD4pCCZqvEdB1" %}
[Platform](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-commands/platform-commands.md)
{% endcontent-ref %}

{% content-ref url="/pages/ulm95Nhy3j7kGe8EdIDv" %}
[Continuous Delivery](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-commands/cd-and-pipeline-commands.md)
{% endcontent-ref %}

{% content-ref url="/pages/nF3ukRqoxQKJNVpHUJ4h" %}
[Artifact Registry](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-commands/artifact-registry-commands.md)
{% endcontent-ref %}

{% content-ref url="/pages/C7QjExW1JjlgN7M12XAk" %}
[Infrastructure as Code Management](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-commands/iacm-commands.md)
{% endcontent-ref %}

{% content-ref url="/pages/4MOHovTLGbAI9DODeock" %}
[Code Repository](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-commands/code-repository-commands.md)
{% endcontent-ref %}

{% content-ref url="/pages/NlgPPQ75G1s2x7HhDEmg" %}
[GitOps](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-commands/gitops-commands.md)
{% endcontent-ref %}

{% content-ref url="/pages/l5Uo5v12e5vEXHzyFM9v" %}
[Governance](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-commands/governance-commands.md)
{% endcontent-ref %}

{% content-ref url="/pages/5ZCah45FSW5SWcAB70La" %}
[Audit](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-commands/audit-commands.md)
{% endcontent-ref %}

{% content-ref url="/pages/9YE4gBx76bpnhsKN8gFt" %}
[Worker Agents](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-commands/worker-agent-commands.md)
{% endcontent-ref %}

{% content-ref url="/pages/uv2v6XFyk9mhyuRgfbro" %}
[Resilience Testing](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-commands/resilience-testing-commands.md)
{% endcontent-ref %}

{% content-ref url="/pages/SrBWtT2YZpsH4yGDZgu3" %}
[Knowledge Graph](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-commands/knowledge-graph-commands.md)
{% endcontent-ref %}

{% content-ref url="/pages/lMjZqOEL3jTfj2tGxttr" %}
[Feature Management & Experimentation](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-commands/fme-commands.md)
{% endcontent-ref %}

***

## Next steps <a href="#next-steps" id="next-steps"></a>

* Go to [Supported resources and actions](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/supported-resources-and-actions.md) to view the full resource matrix.
* Go to [Troubleshooting](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/troubleshooting.md) to resolve common CLI errors.

{% @harness-feedback/feedback module="harness-ai" pagePath="harness-ai/use-harness-cli/harness-cli/harness-cli-commands" %}
