envshed unlink
Remove a secret from its cross-project link group. The secret keeps its current value but will no longer propagate changes.
Usage
envshed unlink <key>
Arguments
| Argument | Description |
|---|---|
key | The secret key to unlink (e.g., DATABASE_URL) |
Examples
# Unlink DATABASE_URL from its link group
envshed unlink DATABASE_URL
# From a workspace
envshed --workspace apps/web unlink SHARED_KEY
Behavior
- The secret retains its current value after unlinking
- If the link group has fewer than 2 members after removal, the entire link group is deleted
- Other members of the link group are not affected (they remain linked to each other)
Monorepo behavior
- Inside a workspace directory or with
-w: uses that workspace's project context - At the monorepo root (without
--all): uses the root project context - Bulk mode (
--all): not supported — use-wto target a specific workspace
Requires authentication and update Secret permission on the project.