push
Deploy a Symbols project to production, staging, or dev. Choose the version via mode: published, latest, specific version, or branch.
Instructions
Push/deploy a Symbols project to a specific environment.
Deploys the project to a target environment (production, staging, dev). Call publish first to set the live version, then push to deploy.
Requires authentication — provide either token or api_key.
Args: project: Project ID (MongoDB ObjectId) or project key (pr_xxxx). token: JWT access token from login or ~/.smblsrc. api_key: API key (sk_live_...) from project integration settings. Alternative to token. environment: Target environment key (e.g. "production", "staging", "dev"). mode: Deploy mode — "latest" (newest from branch), "published" (current published version), "version" (specific version), or "branch" (track a branch). version: Required when mode is "version" — the version string or ID to deploy. branch: Branch to deploy from when mode is "latest" or "branch" (default: "main").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | published | |
| token | No | ||
| branch | No | main | |
| api_key | No | ||
| project | Yes | ||
| version | No | ||
| environment | No | production |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |