validate
agoraform validateagoraform validate -f path/to/manifest.yamlagoraform validate path/to/manifest.yamlPurpose
Section titled “Purpose”Validate an Agoraform YAML manifest before plan or apply. The command loads the manifest, checks the v0.1 schema (apiVersion: agoraform.io/v1alpha1), resource addresses, duplicate logical names, resource references, and dependency cycles. When providers are registered, it also checks resource types, provider connection settings, and provider-specific required fields.
The default manifest path is agoraform.yaml.
Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
[file] | Optional positional path to the manifest. At most one argument. |
Specify a manifest as an argument or with --file, not both.
| Flag | Description |
|---|---|
-f, --file | Path to the Agoraform manifest (default agoraform.yaml) |
Cobra also provides -h / --help.
Expected behavior
Section titled “Expected behavior”On success, validate prints a line such as:
Validated agoraform.yaml (2 resources).It may contact providers to check connectivity. It does not mutate remote platforms.
Matomo runtime connection settings come from MATOMO_URL, MATOMO_TOKEN_AUTH, and MATOMO_SITE_ID; Tag Manager resource or publication work also requires MATOMO_CONTAINER_ID. Google Ads connection settings come from GOOGLE_ADS_DEVELOPER_TOKEN, GOOGLE_ADS_CLIENT_ID, GOOGLE_ADS_CLIENT_SECRET, GOOGLE_ADS_REFRESH_TOKEN, and GOOGLE_ADS_CUSTOMER_ID.
v0.3.0 loads .agoraform.env next to the selected manifest before initializing providers. Existing process environment variables win.
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 | Validation succeeded |
1 | Runtime, validation, or provider failure |
3 | Invalid CLI usage |
Caveats
Section titled “Caveats”- Live validate requires reachable provider configuration for the resources you declare.
- Unknown provider configuration fields are rejected.
- Manifests that still contain Matomo
idGoalin attributes are rejected; move identity into local state.