A minimal example CLI package.
Project description
terragenai
A generative AI CLI tool that builds terraform configurations using a Terraform Enterprise or Cloud organization's private registry modules.
Common Flags
terragenai --help
terragenai --version
terragenai --configure
terragenai --sync
--configure saves settings to your OS-specific user config directory.
It prompts for Terraform-related settings (TF_ORG, TF_REGISTRY_DOMAIN, TF_API_TOKEN, GIT_CLONE_TOKEN).
--sync fetches all modules from your Terraform Cloud/Enterprise private registry, clones each repo, parses Terraform variables, and builds a local module catalog used for AI-powered code generation. Run this before starting a chat session, and re-run it whenever your registry modules change.
Overrides:
TERRAGENAI_HOMEto place both files in a single custom directory.TERRAGENAI_CONFIG_FILEto set an exact config file path.TERRAGENAI_HISTORY_FILEto set an exact history file path.
Usage
% pip install terragenai
% terragenai --sync
Fetching Terraform modules for org: my-org
Found 12 module(s)
Processing my-org/vpc/aws
Indexed v1.0.0
Indexed v1.1.0
Processing my-org/ec2-module/aws
Indexed v2.0.0
...
Done. 12 repo(s) indexed.
Catalog written to ~/.terragenai/catalog/modules.json
% terragenai
TerragenAI Chat started. Type 'exit' to quit.
You: create 2 ec2 instances in us-west-2
Thinking...
Assistant:
module "ec2" {
source = "app.terraform.io/my-org/ec2-module/aws"
ami = "ami-0123456789abcdef0"
instance_type = "t3.micro"
key_name = "my-ssh-key"
region = "us-west-2"
instance_count = 2
}
You: exit
%
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file terragenai-0.0.12.tar.gz.
File metadata
- Download URL: terragenai-0.0.12.tar.gz
- Upload date:
- Size: 23.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0aee543d109c01e6efe8dc2c298cc343f0127540b55d57a1a77e8c5003fdb466
|
|
| MD5 |
4ad6861f49896a939de25703d8e84109
|
|
| BLAKE2b-256 |
9acb0302dfea7f57c42b4ab8e389aad682fe64c61b3354630f56a80da179af48
|
Provenance
The following attestation bundles were made for terragenai-0.0.12.tar.gz:
Publisher:
publish.yml on eshika289/terragenAI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
terragenai-0.0.12.tar.gz -
Subject digest:
0aee543d109c01e6efe8dc2c298cc343f0127540b55d57a1a77e8c5003fdb466 - Sigstore transparency entry: 983809750
- Sigstore integration time:
-
Permalink:
eshika289/terragenAI@1d5bc0337112e0c89f63db0fe3db01fa72ad01f0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/eshika289
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1d5bc0337112e0c89f63db0fe3db01fa72ad01f0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file terragenai-0.0.12-py3-none-any.whl.
File metadata
- Download URL: terragenai-0.0.12-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a9089664c1a259a7b147d450d9e951f12bc7bd278dc85db89e3370e348faf89
|
|
| MD5 |
ebfc9824d837bf726a063503207ad791
|
|
| BLAKE2b-256 |
a6d964360f0216de9741d24143aacd2e84560e3a58558f51224bf528671d3339
|
Provenance
The following attestation bundles were made for terragenai-0.0.12-py3-none-any.whl:
Publisher:
publish.yml on eshika289/terragenAI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
terragenai-0.0.12-py3-none-any.whl -
Subject digest:
2a9089664c1a259a7b147d450d9e951f12bc7bd278dc85db89e3370e348faf89 - Sigstore transparency entry: 983809751
- Sigstore integration time:
-
Permalink:
eshika289/terragenAI@1d5bc0337112e0c89f63db0fe3db01fa72ad01f0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/eshika289
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1d5bc0337112e0c89f63db0fe3db01fa72ad01f0 -
Trigger Event:
push
-
Statement type: