Skip to content

Commit d2cfc3a

Browse files
danielmillerpclaude
andcommitted
fix: render .env.example template in agentex init
The .env.example.j2 template file exists in every template directory but was missing from the root_templates dict in init.py, so it was silently dropped during project generation. Add it so generated projects include a .env.example with LITELLM_API_KEY and OPENAI_BASE_URL placeholders, guiding users to put credentials in .env instead of manifest.yaml. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 0987fa8 commit d2cfc3a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • src/agentex/lib/cli/commands

src/agentex/lib/cli/commands/init.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def create_project_structure(
7575
# Create root files
7676
root_templates = {
7777
".dockerignore.j2": ".dockerignore",
78+
".env.example.j2": ".env.example",
7879
"manifest.yaml.j2": "manifest.yaml",
7980
"README.md.j2": "README.md",
8081
"environments.yaml.j2": "environments.yaml",

0 commit comments

Comments
 (0)