terradart_cli 0.33.0 copy "terradart_cli: ^0.33.0" to clipboard
terradart_cli: ^0.33.0 copied to clipboard

The terradart command — synth, plan, apply and migrate a TerraDart Stack or an existing Terraform tree, and write outputs as a --dart-define-from-file JSON.

example/example.md

Example #

A TerraDart package whose bin/infra.dart calls runStack or runEnvironments:

dart pub add --dev terradart_cli

dart run terradart_cli:terradart plan --env qa
dart run terradart_cli:terradart apply --env qa
flutter run --dart-define-from-file=.terradart/dart_defines.qa.json

# A client build job that may read the state but not change it:
dart run terradart_cli:terradart outputs --env prd
flutter build web --dart-define-from-file=.terradart/dart_defines.prd.json

terradart migrate does not need a project. From any directory:

dart pub global activate terradart_cli
terradart migrate --dir infra --out infra_dart
cd infra_dart && dart pub get && terradart plan

See The terradart command and Migrating from HCL.

1
likes
0
points
162
downloads

Documentation

Documentation

Publisher

unverified uploader

Weekly Downloads

The terradart command — synth, plan, apply and migrate a TerraDart Stack or an existing Terraform tree, and write outputs as a --dart-define-from-file JSON.

Homepage
Repository (GitHub)
View/report issues

Topics

#terraform #opentofu #infrastructure #cli

License

unknown (license)

Dependencies

args, crypto, path, terradart_migrate, yaml

More

Packages that depend on terradart_cli