Skip to main content

Vercel/environment

@swamp/vercel/environmentv2026.08.03.4· 1mo agoMODELS
01README

Vercel environment infrastructure models

02Release Notes
  • Updated: env
  • Updated: custom_environments
03Models2
@swamp/vercel/environment/custom-environmentsv2026.08.03.4custom_environments.ts

Global Arguments

ArgumentTypeDescription
teamId?stringVercel team ID
slug?stringVercel team slug (alternative to teamId)
idOrNamestringThe unique project identifier or the project name
description?stringDescription of the custom environment. This is optional.
branchMatcher?objectHow we want to determine a matching branch. This is optional.
copyEnvVarsFrom?stringWhere to copy environment variables from. This is optional.
token?stringVercel 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
ArgumentTypeDescription
idstringThe 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
ArgumentTypeDescription
idstringThe ID of the Custom Environments to import
fn update(identifier?: string)
Update Custom Environments attributes
ArgumentTypeDescription
identifier?stringTarget a specific Custom Environments by id (e.g. one discovered by list)
fn delete(id: string)
Delete the Custom Environments
ArgumentTypeDescription
idstringThe ID of the Custom Environments
fn sync(identifier?: string)
Sync Custom Environments state from Vercel
ArgumentTypeDescription
identifier?stringTarget 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

ArgumentTypeDescription
teamId?stringVercel team ID
slug?stringVercel team slug (alternative to teamId)
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
evsarray
type?enumThe type of environment variable
target?arrayThe target environment of the Shared Environment Variable
projectId?arrayAssociate a Shared Environment Variable to projects.
token?stringVercel 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
ArgumentTypeDescription
idstringThe 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
ArgumentTypeDescription
idstringThe ID of the Env to import
fn sync(identifier?: string)
Sync Env state from Vercel
ArgumentTypeDescription
identifier?stringTarget a specific Env by id (e.g. one discovered by list)

Resources

state(infinite)— Env resource state
04Previous Versions1
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