./.gateways.yaml in your working directory. Create or update it with gateways init.
Sample .gateways.yaml
This example is for an upload-type application whose build output is uploaded from dist/, then installed and started on the server after deploy.
bucket_explorer_id, static_website_id, or push_resource depending on the command flow you use. You can also omit target fields and let gateways push open the picker the first time.
Common fields
| Field | Purpose |
|---|---|
project / environment | Slugs for the Gateways project and environment. |
email | Optional: pin this folder to a Gateways user; tokens are stored per email in ~/.config/gateways/config.json. |
path | Default directory for uploads (override with gateways push --path). |
push_resource | Last-used push target (resource-… or id); set by gateways push or gateways resource. |
start_commands | Lines run on the server after an upload deploy (e.g. npm ci, npm start). |
ignore | Glob patterns excluded from zips and static uploads (see cli/README.md in the repo for pattern rules). |
bucket_explorer_id / static_website_id | Used for static deploy and CDN sync flows. |
Related
- Commands —
init,reset,push,resource, and flags. - Introduction — Quick start with
gateways initandgateways login.