terradart_cli 0.35.0 copy "terradart_cli: ^0.35.0" to clipboard
terradart_cli: ^0.35.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 global activate terradart_cli

terradart plan --env qa
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:
terradart outputs --env prd
flutter build web --dart-define-from-file=.terradart/dart_defines.prd.json

To pin the version per project, dart pub add --dev terradart_cli and run each command as dart run terradart_cli:terradart <command>.

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

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

See The terradart command, Environments and Migrating from HCL.

1
likes
160
points
102
downloads

Documentation

Documentation
API reference

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
Contributing

Topics

#terraform #opentofu #infrastructure #cli

License

Apache-2.0 (license)

Dependencies

args, crypto, path, terradart_hcl, terradart_migrate, yaml

More

Packages that depend on terradart_cli