bazable.config.json.
Usage
Options
number
Fetch a specific contract version instead of the latest.
string
Use a specific access token (headless mode, no browser authentication). Useful in CI.
Prerequisites
- Your
bazable.config.jsonmust contain acloudProjectId(set automatically by the firstbazable push). - You must be authenticated. If you are not logged in, the command starts the device-code flow automatically. In CI, use
--tokento authenticate headlessly.
What it does
1
Check authentication
If no stored token exists (and no
--token is provided), starts the device-code flow.2
Fetch the contract
Retrieves the contract data from the cloud. Gets the latest version by default, or the specified
--version.3
Overwrite the local contract
Your local
bazable.config.json is replaced with the fetched version. All endpoints, schemas, base URLs, and the projectName are updated.4
Handle missing versions
If the requested version does not exist, a clear error is shown.