Cookiecutter

Cross-platform CLI that generates projects from templates, using cookiecutter.json prompts and pre/post-generate hooks. Works with local or GitHub templates.

install· uv

Cookiecutter is a command-line project generator. It takes a template (a directory containing variables) and prompts the user for values, then writes a new project into the current working directory based on those answers. Templates can be local directories or remote repositories, and GitHub repos can be referenced with a gh: prefix, for example uvx cookiecutter gh:audreyfeldroy/cookiecutter-pypackage.

Template authors define the interface in a single cookiecutter.json file, which declares every variable and its default. Templates can be written in any language or markup format, so they work for Python packages, Rust, Terraform, docs sites, and similar boilerplate. Pre-prompt, pre-generate and post-generate hooks, written as shell or Python scripts, handle extra setup such as git init or dependency installation.

Cookiecutter runs on Windows, macOS and Linux, and supports Python 3.10 to 3.14. Users do not need to know Python to use a template. It can also be called from Python code via from cookiecutter.main import cookiecutter, passing either a local path or a repo reference. It suits developers and teams who repeatedly scaffold similar projects, and template maintainers who publish reusable starters such as cookiecutter-pypackage, cookiecutter-django and cookiecutter-pytest-plugin.

Installation

# via uv
uv tool install cookiecutter

Alternatives & related tools

add a badge to your README

Maintain Cookiecutter? Show that it's featured on trmn. The badge links back to this page.

Featured on trmn
Markdown
[![Featured on trmn](https://www.trmn.sh/badge/cookiecutter.svg)](https://www.trmn.sh/tools/cookiecutter?utm_source=badge)
HTML
<a href="https://www.trmn.sh/tools/cookiecutter?utm_source=badge"><img src="https://www.trmn.sh/badge/cookiecutter.svg" alt="Featured on trmn" height="20"></a>