A cross-platform CLI that scaffolds new projects from cookiecutter templates with interactive prompts and hooks.
Overview
Cookiecutter creates new projects from reusable template directories. You point it at a template—often hosted on GitHub or stored locally—and answer prompts defined in a JSON file; it copies files with your choices filled in.
The tool runs on Windows, macOS, and Linux and can be installed as a standalone CLI. Templates may target any language or markup format, not only Python packages. Pre-generate and post-generate hooks run shell or Python scripts for extra setup steps such as initializing version control or installing dependencies.
Template authors declare variables and defaults in cookiecutter.json so end users see a consistent question flow. The same engine can be invoked from Python code for automated scaffolding inside larger workflows.
A catalog of community templates covers common project types, and maintainers document usage for both consumers and template creators.
Key features
- Template-driven scaffolding
- Interactive variable prompts
- Pre and post-generate hooks
- Local and remote templates
- Python API import
- Cross-platform CLI
- Any-language templates
Use cases
- Bootstrapping Python packages
- Standardizing team project layouts
- Automating repetitive repo creation