wos deploy
Status: stub. Day 3 deliverable.
Usage
wos deploy <policy.yaml>
wos deploy <policy.yaml> --token <key> --endpoint <url>Pre-flight lints the policy locally (Athena), then POSTs to
/api/v1/policies on the WOS control plane. Idempotent — re-deploying
identical bytes returns the existing version row.
| Source | Variable / flag | Default |
|---|---|---|
| API token | WOS_API_TOKEN / --token | (required) |
| Endpoint | WOS_ENDPOINT / --endpoint | https://api.worker-os.com |
Exit codes
| Code | Meaning |
|---|---|
0 | Committed (new version) or idempotent re-commit. |
1 | Server-side rejection (UNAUTHORIZED, POLICY_INVALID, rate-limit). |
2 | Network or local I-O failure. |