blossom environment:access:token:create
Create a bypass token
Usage
blossom environment:access:token:create --environment ENVIRONMENT [--name NAME] [--expires EXPIRES]
Flags
| Flag | Description |
|---|---|
--environment, -e (required) |
Environment id the token opens, with its Previews |
--name |
Optional label, such as CI or uptime |
--expires |
Days until it expires: 30, 90, 365 or never. Default: never. |
Examples:
blossom environment:access:token:create --environment environment-100 --name CI
curl -H "X-Blossom-Access: $BLOSSOM_ACCESS_TOKEN" https://shop.example.com/
Creates a bypass token for automated tests, monitors and screenshot tools, and prints it once. Blossom keeps only its digest, so store it as a secret in the tool that sends it. It starts working within about 30 seconds.
Send it as the X-Blossom-Access header. It opens the Environment and its
Previews while the access mode is Account members. --expires takes 30, 90
or 365 days, or never, the default; revoking with environment:access:token:revoke is
the usual control.