Command reference
Check and deploy
Section titled “Check and deploy”apex versionapex check -f deployment.yamlapex validate -f deployment.yaml --manifests manifestsapex prepare -f deployment.yaml --manifests manifestsapex apply -f deployment.yaml --dry-runapex deploy -f deployment.yaml --yesFor a first run, use --dry-run to inspect the planned nodes, components, target paths, and commands. For dynamic versions, save the resolved Deployment from validate and reuse it in later steps.
URL and offline checks
Section titled “URL and offline checks”apex validate --manifests manifests --check-urlsapex prepare -f deployment.yaml --offline-dir ./bundleSteps and dependencies
Section titled “Steps and dependencies”Use --step, --from-step, or --steps to select lifecycle steps for apply. Use --dependencies-only or --dependency <id> to handle dependency resources only. Run apex <command> --help for complete options.
Cleanup
Section titled “Cleanup”apex clean -f deployment.yaml --yesclean removes target Apex work directories and requires confirmation; use --yes for automation. It does not replace product uninstall or data cleanup. Do not confuse it with apex-component-purge.
Component packages
Section titled “Component packages”apex package listapex package install explorerapex package remove explorerPackage commands use the most recent successful Default Deployment by default. If no usable snapshot or credentials are available, specify -f <deployment.yaml>. Removal normally asks for confirmation; use --yes for automation.