Skip to main content

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_HOME to place both files in a single custom directory.
  • TERRAGENAI_CONFIG_FILE to set an exact config file path.
  • TERRAGENAI_HISTORY_FILE to 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

terragenai-0.0.12.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

terragenai-0.0.12-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

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

Hashes for terragenai-0.0.12.tar.gz
Algorithm Hash digest
SHA256 0aee543d109c01e6efe8dc2c298cc343f0127540b55d57a1a77e8c5003fdb466
MD5 4ad6861f49896a939de25703d8e84109
BLAKE2b-256 9acb0302dfea7f57c42b4ab8e389aad682fe64c61b3354630f56a80da179af48

See more details on using hashes here.

Provenance

The following attestation bundles were made for terragenai-0.0.12.tar.gz:

Publisher: publish.yml on eshika289/terragenAI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for terragenai-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 2a9089664c1a259a7b147d450d9e951f12bc7bd278dc85db89e3370e348faf89
MD5 ebfc9824d837bf726a063503207ad791
BLAKE2b-256 a6d964360f0216de9741d24143aacd2e84560e3a58558f51224bf528671d3339

See more details on using hashes here.

Provenance

The following attestation bundles were made for terragenai-0.0.12-py3-none-any.whl:

Publisher: publish.yml on eshika289/terragenAI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page