Add site
add_siteAdd a publishing target to your site configuration. Store secret credentials as .env references to keep them out of config files.
Instructions
Add a publishing target to config/sites.yaml. Secret credential fields are recorded as a reference to a .env variable name; the value itself goes in .env, never in config.yaml.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| slug | Yes | Short name used when publishing, e.g. "indianic". Lowercase letters, digits, and hyphens only. | |
| platform | Yes | One of: ghost, wordpress | |
| credentials | Yes | Keyed by this platform's credential field names. For a secret field pass the NAME of the .env variable holding the value; for a non-secret field pass the value itself. Call list_sites or read the error from a wrong platform to see the field names. | |
| default_author | No |