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 will you 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: Go to Install and upgrade and Authenticate to set up the CLI.
  • 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.

See Platform commands for examples and detailed usage information.

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.

See Continuous Delivery commands for examples and detailed usage information.

Resourcelistgetcreateupdatedeleteexecute
pipelineYYY
pipeline:dynamic
pipeline:input_set
pipeline:summary
pipeline_v1
execution
execution_step
execution_log
trigger
input_set
runtime_input_template
approval_instance
template
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.

See Artifact Registry commands for examples and detailed usage information.

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

Infrastructure as Code Management

The Infrastructure as Code Management module manages Terraform and OpenTofu workspaces and their lifecycle operations.

See Infrastructure as Code Management commands for examples and detailed usage information.

Resourcelistgetexecute
workspace

Code Repository

The Code Repository module manages repositories, pull requests, branches, commits, and tags.

See Code Repository commands for examples and detailed usage information.

Resourcelistgetcreateupdatedeleteexecute
repositorySGTP
prSGTP
pr:merge
pr:close
branchS
commit
tagS
pr_activity

Governance

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

Resourcelistgetcreateupdatedelete
policySGTP
policy_setSGTP
policy_evaluation

Audit

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

Resourcelistget
audit_event

Next steps