Skip to content

add-env-var

Source

add-env-var.ts

Usage

bash
npm exec saf-workflow kickoff add-env-var <name>

To run this workflow automatically, tell the agent to:

  1. Navigate to the target package
  2. Run this command
  3. Follow the instructions until done

Checklist

When run, the workflow will:

  • Copy template files and rename placeholders.
  • Update env.schema.json to remove TODOs
  • Run npm install @saflib/env
  • Run npm exec saf-env generate
  • Run npm exec saf-env generate-all

Help Docs

bash
Usage: saf-workflow kickoff add-env-var [options] <name>

Add a new environment variable to the schema and generate the corresponding
TypeScript types

Arguments:
  name        The name of the environment variable (in all upper case, e.g.,
              'API_KEY' or 'DATABASE_URL')

Options:
  -h, --help  display help for command