Vercel/environment
@swamp/vercel/environmentv2026.08.03.4
01README
Vercel environment infrastructure models
02Release Notes
- Updated: env
- Updated: custom_environments
03Models
@swamp/vercel/environment/custom-environmentsv2026.08.03.4custom_environments.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| teamId? | string | Vercel team ID |
| slug? | string | Vercel team slug (alternative to teamId) |
| idOrName | string | The unique project identifier or the project name |
| description? | string | Description of the custom environment. This is optional. |
| branchMatcher? | object | How we want to determine a matching branch. This is optional. |
| copyEnvVarsFrom? | string | Where to copy environment variables from. This is optional. |
| token? | string | Vercel API token; overrides the VERCEL_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
fn create()
Create a Custom Environments
fn get(id: string)
Get a Custom Environments
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Custom Environments |
fn lookup()
Look up an existing Custom Environments by matching global argument values and import it into state
fn adopt(id: string)
Import an existing Custom Environments by ID into state for management
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Custom Environments to import |
fn update(identifier?: string)
Update Custom Environments attributes
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific Custom Environments by id (e.g. one discovered by list) |
fn delete(id: string)
Delete the Custom Environments
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Custom Environments |
fn sync(identifier?: string)
Sync Custom Environments state from Vercel
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific Custom Environments by id (e.g. one discovered by list) |
Resources
state(infinite)— Custom Environments resource state
@swamp/vercel/environment/envv2026.08.03.3env.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| teamId? | string | Vercel team ID |
| slug? | string | Vercel team slug (alternative to teamId) |
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| evs | array | |
| type? | enum | The type of environment variable |
| target? | array | The target environment of the Shared Environment Variable |
| projectId? | array | Associate a Shared Environment Variable to projects. |
| token? | string | Vercel API token; overrides the VERCEL_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
fn create()
Create a Env
fn get(id: string)
Get a Env
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Env |
fn lookup()
Look up an existing Env by matching global argument values and import it into state
fn adopt(id: string)
Import an existing Env by ID into state for management
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Env to import |
fn sync(identifier?: string)
Sync Env state from Vercel
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific Env by id (e.g. one discovered by list) |
Resources
state(infinite)— Env resource state
04Previous Versions
2026.08.03.3
- Updated: env
- Updated: custom_environments
05Stats
A
100 / 100
Downloads
3
Archive size
14.7 KB
Verified by Swamp
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned
06Platforms
07Labels