GPT Engineer CLI Cheatsheet - gpte Code Generation Full Reference
GPT Engineer generates an entire codebase from a natural-language prompt and can improve existing code. gpte (or gpt-engineer) is its CLI: write a prompt file, run the command, review the generated code. This sheet covers create, improve, model, and flags so you can bootstrap a small project from scratch.
Install and Create 4
pip install gpt-engineergpt-engineer projects/my-new-projectgpte projects/my-new-projectgpt-engineer --helpImprove and Feedback 4
gpt-engineer -i projects/my-old-projectgpt-engineer --steps use_feedbackgpt-engineer --use-custom-prepromptsgpt-engineer projects/x -iModel and Flags 12
gpt-engineer projects/x --model gpt-4ogpt-engineer projects/x --model anthropic/claude-3-5-sonnetgpt-engineer projects/x --temperature 0.1gpt-engineer projects/x --steps tddgpt-engineer projects/x --steps clarifygpt-engineer projects/x --steps simplegpt-engineer projects/x -s defaultgpt-engineer projects/x --steps evaluategpt-engineer projects/x --verbosegpt-engineer projects/x -vexport OPENAI_API_KEY=sk-xxxxgpt-engineer --versionTips
- Put a prompt file (no extension) named prompt in the project dir; the command only needs the directory path.
- Improve mode (-i) lets you pick files for context, controlling scope precisely.
- --steps sets the workflow: tdd, clarify, simple, or use_feedback, by task complexity.
FAQ
How is GPT Engineer different from IDE tools like Cursor?
It generates a whole codebase into a workspace dir, biased toward bootstrapping projects; IDE tools assist incrementally inside the editor.
Is OpenAI the only option?
OpenAI by default, but also Azure OpenAI, Anthropic, and local open models via --model and config.
Official References
Each command links to its official documentation below, so you can verify the latest usage and read deeper.
Maintained by LaoHand
Publicly updated on Sep 10, 2026, continuously proofread against official docs.
Contact Us
Wrong command or description? Send us corrections, business inquiries or product feedback by email.
Contact Us