DocsCommand reference
angular-setup
Explicit one-time wiring of Angular local development configuration. Commit the safe wiring so teammates can use the generated setup script.
Try it
SecretSleuth angular-setup --repo "C:\repos\my-app" --dry-run
How it works
| File | Change | Commit it? |
|---|---|---|
angular.json | The development configuration gets a fileReplacements entry: environment.ts → environment.local.ts | Yes |
package.json | An ironforgeSecrets block, an env:local script, and start prefixed with node scripts/ironforge-dev-secrets.mjs && | Yes |
scripts/ironforge-dev-secrets.mjs | New. Reads your store and writes environment.local.ts. No dependencies beyond Node | Yes |
environment.development.ts | Only if missing: a copy of environment.ts | Yes, after remediating it |
environment.local.ts | A placeholder re-exporting its base, so ng serve works before the first npm start | Never (git-ignored) |
.gitignore | Adds each environment.local.ts path | Yes |
A workspace already wired is left byte-for-byte alone. See Angular workspaces for the whole flow, onboarding, and production builds.
Options
| Flag | Description |
|---|---|
--repo <path> | Required |
--dry-run | Print the changes without writing |
Check the result
After reviewing the preview, run SecretSleuth angular-setup --repo "C:\repos\my-app" to wire the workspace. Commit the safe wiring; local values remain in the profile and are used to generate a Git-ignored environment.local.ts. Teammates can then run the committed setup script. Values compiled into a browser bundle remain visible to users.