Commands
Porch provides six built-in command types for different execution patterns. Each command type serves a specific purpose and has its own configuration options.
Overview
| Command Type | Purpose | Execution Mode |
|---|---|---|
| Shell | Execute shell commands | Single |
| PowerShell | Execute PowerShell scripts | Single |
| Serial | Run commands sequentially | Container |
| Parallel | Run commands concurrently | Container |
| ForEach Directory | Execute commands in multiple directories | Container |
| Copy to Temp | Copy working directory to temporary location | Utility |
Single Commands
Single commands execute a single task:
- Shell: Execute any shell command or script
- PowerShell: Execute PowerShell scripts (Windows, Linux, macOS)
Container Commands
Container commands group and control the execution of other commands:
- Serial: Execute commands one after another
- Parallel: Execute commands simultaneously
- ForEach Directory: Execute commands for each directory found
Utility Commands
Utility commands provide special functionality:
- Copy to Temp: Create isolated temporary environments
Common Attributes
All commands share these common attributes:
type(required): The command typename(required): Descriptive name for the commandworking_directory(optional): Working directory for executionenv(optional): Environment variables as key-value pairsruns_on_condition(optional): When to run (success,error,always,exit-codes)runs_on_exit_codes(optional): Specific exit codes that trigger execution
See individual command pages for type-specific attributes and detailed examples.