---
title: blossom environment:access:link:create
url: "/docs/reference/cli/environment/access/link/create/"
canonical_url: https://docs.blossom88.com/docs/reference/cli/environment/access/link/create/
markdown_url: https://docs.blossom88.com/docs/reference/cli/environment/access/link/create.md
summary: Create a shareable link
categories:
- cli
- reference
---

# blossom environment:access:link:create

Create a shareable link

## Usage

    blossom environment:access:link:create --environment ENVIRONMENT [--name NAME] [--expires EXPIRES]

## Flags

| Flag | Description |
| --- | --- |
| `--environment, -e (required)` | Environment or Preview id the link opens |
| `--name` | Optional label, such as who it's for |
| `--expires` | Days until it expires: 1, 7, 30 or never. Default: 7. |

Examples:

    blossom environment:access:link:create --environment environment-100
    blossom environment:access:link:create --environment environment-100 --name "Acme review" --expires 30

Creates a shareable link for someone without a Blossom login and prints its
URL. It works when the Environment's access mode is Account members, and it
starts working within about 30 seconds.

A link opens only the Environment or Preview it was made on. `--expires`
takes 1, 7 or 30 days, or `never`; the default is 7.

Copy a fresh URL later with `environment:access:link:show`. Revoke it with
`environment:access:link:revoke`; it stops working within about 30 seconds.
