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

Đang mở
#809 1 bình luận 3 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@9pace đang làm issue này rồi.

Từ ngày 3/6/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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
Ngôn ngữ chính
TypeScript
Star
110
Fork
138
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
55

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của aws/aws-cdk-cli

Tất cả issue của aws/aws-cdk-cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.