Skip to Content

wfapi env

Manage multiple environments (dev, staging, prod, etc.).

Basic Usage

View current environment:

wfapi env

Switch to an environment:

wfapi env <name>

Switch back to default:

wfapi env default

Examples

# Show current environment wfapi env # Switch to dev environment (uses .wfapi.dev) wfapi env dev # Switch to staging wfapi env staging # Switch to production wfapi env prod # Back to default wfapi env default

Environment Configs

When an environment is active, wfapi uses the corresponding config file:

EnvironmentConfig File
default.wfapi
dev.wfapi.dev
staging.wfapi.staging
prod.wfapi.prod
Custom name.wfapi.(name)

Environment Badges

Commands display a colored badge when an environment is active:

  • DEV/DEVELOPMENT — Yellow background
  • STAGING/STAGE — Blue background
  • PROD/PRODUCTION — Red background
  • TEST — Cyan background
  • QA — Magenta background
  • Other — Green background
Last updated on