env/add-var
Source
Usage
bash
npm exec saf-workflow kickoff env/add-var <name>To run this workflow automatically, tell the agent to:
- Navigate to the target package
- Run this command
- Follow the instructions until done
Checklist
When run, the workflow will:
- Copy template files and rename placeholders.
- Upsert env.schema.json from template
- Add the environment variable 'EXAMPLE_ENV_VAR' to the env.schema.json file.
- Run
npm install @saflib/env - Run
npm exec saf-env generate
Help Docs
bash
Usage: npm exec saf-workflow kickoff env/add-var <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')
Example: "EXAMPLE_ENV_VAR"