Skip to content

How Apex works

Apex is a manifest-driven deployment orchestrator. It reads a Deployment YAML to determine nodes, platforms, transports, components, and versions; reads Component Manifests for packages, dependencies, checksums, and lifecycle commands; then prepares artifacts, executes steps in dependency order, and produces plans, reports, and logs.

Product installers are still provided by the components. Apex selects what to deploy, where to put it, the order of operations, and whether each step succeeded. It does not replace product service management or data formats.

check → validate → prepare → apply
Step Purpose Does not
check Read the Deployment YAML, check its basic structure, and test node connectivity. Load Component Manifests or download artifacts.
validate Validate schema, versions, platforms, dependencies, resources, and lifecycle commands; resolve the Version Catalog when needed. Download or install product artifacts.
prepare Download or import artifacts, verify SHA256, and write the artifact index. Connect to target nodes or install products.
apply Generate a plan, distribute artifacts, and run component lifecycle commands. Download artifacts itself.

deploy runs the four stages in sequence. When running them separately, finish prepare before apply; missing indexes or artifacts cause apply to ask for preparation.

Deployment YAML describes topology and execution, including nodes, roles, transport, platform, target Apex directory, SSH settings, and optional profile/channel settings. A Component Manifest declares supported platforms, installers and resources, dependencies, optional packages, and lifecycle steps.

Users usually maintain only the Deployment YAML. Component Manifests ship with releases or are downloaded by version. See the Deployment YAML reference for field definitions.

  • transport: local runs commands on the machine running Apex. It suits single-node Host installations and does not need an SSH server or loopback connection.
  • transport: ssh suits separate control and target hosts. Apex creates the work directory, uploads verified artifacts, and runs lifecycle commands over SSH.
  • A Deployment can mix local and SSH nodes. The node platform selects artifacts and lifecycle steps, regardless of the control host OS.

A Deployment can pin exact versions or use version: auto with spec.release. validate resolves exact versions from the Version Catalog and emits a resolved Deployment; prepare and apply use the same result to avoid version drift.

Artifacts are identified by filename, URL, and SHA256. A missing or invalid required artifact stops the workflow; missing optional resources usually produce a warning. Offline imports match exact filenames.

Plans and reports are written under apex_home/reports/. Operation logs and command evidence are kept under apex_home/logs/. Start troubleshooting with the report’s node, component, stage, and exit code, then inspect the corresponding logs. Redact sensitive details before sharing.

Telemetry is enabled by default and best-effort; delivery failures do not change deployment exit codes. Disable it with telemetry_enabled: false or APEX_TELEMETRY_DISABLED=1. --dry-run does not send deployment events.