(cli): Every CLI option should be supported as env variable

Aperta
#809 1 commento 3 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@9pace ci sta già lavorando.

Dal 3/6/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

aws-cdk effort/medium feature-request p1

Follow up on https://github.com/aws/aws-cdk-cli/issues/743 and https://github.com/aws/aws-cdk-cli/issues/808

Every CLI option (that's in the schema) should be also be supported as an env var, using a standardized naming scheme.

For example:

AWS_CDK_CONFIG_STRICT=true
aws_cdk_config_strict=true
  • This requires the schema to be aware of types and to parse values accordingly.
  • Naming needs to be consistent and support nested structures
  • Consider if we want to support both all upper and all lower or just one of them
  • Windows support

In it's final form, the configuration should be read with the following priority order (first in list takes precedence):

  1. Command-line options
  2. Environment variables
  3. Per-app configuration in $PWD/cdk.json
  4. Per-user configuration in $HOME/cdk.json
  5. Built-in defaults
Lingua principale
TypeScript
Stelle
110
Fork
138
Merge medio
1g 9h
PR unite (30g)
55

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di aws/aws-cdk-cli

Tutte le issue di aws/aws-cdk-cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.