Metadata-Version: 2.4
Name: terragenai
Version: 0.0.3
Summary: A minimal example CLI package.
Author: Eshika Malgari
License: MIT
Project-URL: Homepage, https://github.com/eshika289/terragenAI
Project-URL: Repository, https://github.com/eshika289/terragenAI
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: typer>=0.9.0
Requires-Dist: rich>=13.0.0
Requires-Dist: requests>=2.31.0
Requires-Dist: python-hcl2>=4.3.0
Requires-Dist: openai>=1.0.0
Requires-Dist: faiss-cpu>=1.7.0
Requires-Dist: numpy>=1.26.0
Requires-Dist: pydantic>=2.0.0
Provides-Extra: dev
Requires-Dist: black>=24.0.0; extra == "dev"
Requires-Dist: pytest>=8.0.0; extra == "dev"
Requires-Dist: pytest-cov>=5.0.0; extra == "dev"
Requires-Dist: ruff>=0.6.0; extra == "dev"

# terragenai 

A generative AI CLI tool that builds terraform configurations using Terraform Enterprise or Cloud private registry modules.

## Common Flags

```bash
terragenai --help
terragenai --version
terragenai --configure
```

`--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`).

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
```
% 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_type  = "t3.micro"
    instance_count = 2
  }

You: exit
% 
```
