Skip to main content

Supported resources and actions

Last updated on

This page provides a reference matrix of all resources supported by the Harness CLI and the actions available for each resource. Use it to verify whether a specific operation is supported before building scripts, integrations, or automation workflows.

For detailed examples, flags, and usage information, see the module-specific pages linked throughout this guide.


What you will learn in this topic

By the end of this page, you will know:

  • Which resources are available in each CLI module.
  • Which actions each resource supports (list, get, create, update, delete, execute, push, and pull).
  • Which resources support multi-level scoping through the --level flag.
  • How to interpret the create and update behavior types shown in the matrix.

Before you begin

  • Harness CLI installed and authenticated: For setup steps, see Install and upgrade and Authenticate.
  • Interactive alternative: Run harness list noun --matrix in your terminal to view the same information directly from your installed CLI version.

Matrix legend

SymbolMeaning
Action is supported
Action is not supported
LSupports the --level flag for multi-scope resources (account, organization, or project)
SSet-fields: Creates a resource using --set key=value or positional arguments
GTPGet-then-put: Updates a resource by fetching the current state, applying --set or --del changes, and saving the result
YYAML-native: Manages a resource through YAML files using --file or -f

All list actions support pagination flags (--limit, --offset, --all, and --count) by default.


Platform

The Platform module manages the Harness account hierarchy, role-based access control, connectors, secrets, delegates, and related administrative resources. These foundational resources are used throughout the Harness platform.

For examples and detailed usage information, see Platform commands.

Resourcelistgetcreateupdatedeleteexecute
account
organizationSGTP
projectLSGTP
userL
user_groupL
service_accountL
roleL
role_assignmentL
resource_groupL
permission
connectorLSGTP
delegateL
delegate_token
secretLSGTP
settingL
entity_usage

Continuous Delivery

The Continuous Delivery module manages pipelines, executions, triggers, templates, freeze windows, services, environments, infrastructure definitions, and service overrides.

For examples and detailed usage information, see Continuous Delivery commands.

Resourcelistgetcreateupdatedeleteexecute
pipelineYYY
pipeline:dynamic
pipeline:input_set
pipeline:summary
pipeline_v1
execution
execution_step
execution_log
execution:abort
execution:retry
execution:retry_history
triggerYY
input_setYY
runtime_input_template
approval_instance
approval_instance:approve
approval_instance:reject
templateY
template_versionY
template_version:set-stable
freeze_windowL
global_freeze
serviceSGTP
environmentSGTP
infrastructureSGTP
service_overrideSGTP

Artifact Registry

The Artifact Registry module manages registries, artifacts, artifact versions, and metadata. It also provides specialized push, pull, and execute operations.

For examples and detailed usage information, see Artifact Registry commands.

Resourcelistgetcreateupdatedeleteexecutepushpull
registryS
registry:firewall_scan
registry:migrate
registry_metadataGTP
artifactMultiple
artifact:bulk
artifact_metadataGTP
artifact_version
artifact_version:copy
artifact_version:firewall_scan
artifact_version_metadataGTP
artifact_file

The push column reads Multiple for artifact because each package format has its own qualified noun. The 18 supported formats are artifact:generic, artifact:maven, artifact:npm, artifact:python, artifact:nuget, artifact:rpm, artifact:cargo, artifact:go, artifact:conda, artifact:dart, artifact:composer, artifact:ruby, artifact:swift, artifact:puppet, artifact:debian, artifact:conan, artifact:helm, and artifact:docker.

The execute column on artifact covers the five package-manager install helpers: artifact:npm_install, artifact:npm_ci, artifact:pip_install, artifact:mvn_install, and artifact:dotnet_restore.

harness configure registry is a registry-level action that writes local package-manager client configuration. It does not map to one of the columns above.


Infrastructure as Code Management

The Infrastructure as Code Management module manages Terraform and OpenTofu workspaces, Ansible hosts, inventories, and playbooks, and the module and provider registries.

For examples and detailed usage information, see Infrastructure as Code Management commands.

Resourcelistgetexecute
workspace
host
inventory
playbook
registry_module
provider

Workspace create, update, and delete commands are planned for Harness CLI v3.1.


Code Repository

The Code Repository module manages repositories, pull requests, reviewers and codeowners, AI review insights, branches, commits, tags, comments, and status checks.

For examples and detailed usage information, see Code Repository commands.

Resourcelistgetcreateupdatedeleteexecute
repositoryLSGTP
prSGTP
pr:mine
pr:review_pending
pr:merge
pr:close
pr:review
pr:insight
pr:review_group
pr_suggested_reviewer
pr_suggested_label
pr_success_criterion
code_principal
pr_reviewer
pr_codeowner
branchS
commit
pr_commit
tagS
pr_activity
pr_commentYGTP
pr_check
commit_check

GitOps

The GitOps module manages Argo CD-backed agents, applications, destination clusters, source repositories, and ApplicationSets.

For examples and detailed usage information, see GitOps commands.

Resourcelistgetcreateupdatedeleteexecute
gitops_agentS
gitops_agent:install
gitops_applicationYY
gitops_application:sync
gitops_application:refresh
gitops_clusterYY
gitops_repositoryYY
gitops_application_setYY

Harness Worker Agents

Harness Worker Agents are Harness-managed automation workers. The agent noun lives in the platform module.

For examples and detailed usage information, see Worker Agent commands.

Resourcelistgetcreateupdatedelete
agentYY

Governance

The Governance module manages OPA-based policies, policy sets, and policy evaluations.

For examples and detailed usage information, see Governance commands.

Resourcelistgetcreateupdatedelete
policySGTP
policy_setSGTP
policy_evaluation

Audit

The Audit module provides read-only access to audit events across the Harness platform.

For examples and detailed usage information, see Audit commands.

Resourcelistget
audit_event