Wraps Logo
DocsHome
Reference

Environment Variables

All environment variables used by the Wraps CLI and SDKs.

Wraps Configuration

Control CLI behavior, telemetry, and API connectivity.

VariableDescriptionDefault
WRAPS_LOCAL_ONLYDisable telemetry and API callsfalse
WRAPS_API_KEYAPI key for Wraps Platform-
WRAPS_API_URLCustom API endpointhttps://api.wraps.dev
WRAPS_TELEMETRY_DISABLEDDisable anonymous telemetryfalse
WRAPS_HOMECustom config directory~/.wraps

AWS Credentials

Standard AWS environment variables for authentication. The CLI and SDKs use the default AWS credential chain, so these are only needed when not using AWS CLI profiles or IAM roles.

VariableDescriptionDefault
AWS_ACCESS_KEY_IDAWS access key-
AWS_SECRET_ACCESS_KEYAWS secret key-
AWS_SESSION_TOKENTemporary session token (for STS/SSO)-
AWS_REGIONAWS regionus-east-1
AWS_PROFILENamed AWS CLI profiledefault
AWS_ROLE_ARNIAM role ARN for OIDC assumption-

DNS Automation

Provide DNS provider credentials to enable automatic DNS record creation during domain verification.

VariableDescriptionDefault
CLOUDFLARE_API_TOKENCloudflare API token for DNS automation-
CLOUDFLARE_ZONE_IDCloudflare zone ID-
VERCEL_TOKENVercel API token for DNS automation-

Pulumi (Internal)

These variables are managed automatically by the CLI. You should only override them if you have a custom Pulumi setup.

VariableDescriptionDefault
PULUMI_CONFIG_PASSPHRASEEncryption passphrase for Pulumi stateAuto-generated
PULUMI_BACKEND_URLPulumi state backend URLfile://~/.wraps/pulumi

CI/CD Examples

GitHub Actions

Use OIDC federation to assume an IAM role without storing access keys.

.github/workflows/deploy.yml
name: Deploy Email Infrastructureon:  push:    branches: [main]jobs:  deploy:    runs-on: ubuntu-latest    permissions:      id-token: write      contents: read    steps:      - uses: actions/checkout@v4      - uses: aws-actions/configure-aws-credentials@v4        with:          role-to-assume: arn:aws:iam::123456789012:role/github-actions          aws-region: us-east-1      - run: npx @wraps.dev/cli email init --yes --preset production

Vercel

Vercel handles OIDC automatically when you set the role ARN. No access keys are needed.

Vercel Environment Variables
# In Vercel project settings, add:AWS_ROLE_ARN=arn:aws:iam::123456789012:role/wraps-email-role# Vercel handles OIDC automatically — no access keys needed

Next Steps

AWS Setup

Step-by-step guide for configuring AWS credentials and permissions for Wraps.

View Guide
Error Codes

Complete reference for all CLI error codes and SDK error classes with solutions.

View Reference