Skip to content

hardis:project:action:list

Description

Command Behavior

Lists deployment actions defined in the project configuration.

Displays a table of actions for the specified scope and deployment phase, showing position, ID, label, type, and context.

Agent Mode

Supports non-interactive execution with --agent:

sf hardis:project:action:list --agent --scope branch --when pre-deploy

Required in agent mode:

  • --scope, --when
Technical explanations
  • Reads the action list from the YAML config file and displays it as a formatted table.
  • Supports --json output via SfCommand.

Parameters

Name Type Description Default Required Options
agent boolean Run in non-interactive mode for agents and automation
branch option Target branch name (for branch scope, defaults to current branch)
debug
-d
boolean Activate debug mode (more logs)
flags-dir option undefined
json boolean Format output as json.
pr-id option Pull request ID (for pr scope, defaults to draft)
scope option Configuration scope: project, branch, or pr project
branch
pr
websocket option Websocket host:port for VsCode SFDX Hardis UI integration
when option When to run the action: pre-deploy or post-deploy pre-deploy
post-deploy

Examples

$ sf hardis:project:action:list
$ sf hardis:project:action:list --agent --scope branch --when pre-deploy
$ sf hardis:project:action:list --scope project --when post-deploy --json