TOWNCRIER(1)
π TOWNCRIER π
okay so bestie, welcome to the General Commands Manual page for towncrier, and honestly? this one's a bop. let's get into it.
β¨ NAME β¨
towncrier β manage a useful, summarised news file for your project π«Ά
πΈ SYNOPSIS πΈ
towncrier β¦ [--config CONFIG_FILE] [--dir FRAGMENTS_DIR] β¦
towncrier [build] [--name PROJECT_NAME] [--version RELEASE_VERSION]
[--date RELEASE_DATE] [--draft] [--yes] [--keep]
towncrier create [--content CONTENT] [--edit|--no-edit] FRAGMENT_FILE
towncrier check [--compare-with GIT_COMMIT]
towncrier --help
towncrier --version
π¦ DESCRIPTION π¦
so towncrier is a utility to produce useful, summarised news files for your project. the whole vibe is that instead of reading the VCS history to produce it, or having one single file which developers all write to (chaos, honestly π), towncrier reads "news fragments" which contain information useful to end users. it's giving organization. it's giving main character energy. periodt.
π OPTIONS π
--config CONFIG_FILEβ use the specifiedCONFIG_FILEto configure program behaviour. (default:towncrier.tomlor, if that does not exist,pyproject.toml) π--dir FRAGMENTS_DIRβ manage news fragments in the directoryFRAGMENTS_DIR, relative to the project directory. (default:newsfragments) π-v,--versionβ emit the program version. π·οΈ-h,--helpβ describe how to use the program. πβοΈ
π COMMANDS π
π§ build
[build] [--name PROJECT_NAME] [--version RELEASE_VERSION]
[--date RELEASE_DATE] [--draft] [--yes] [--keep]
okay so this is the big one. it discovers all the news fragments in FRAGMENTS_DIR, and collates them. it renders them as a news document for project PROJECT_NAME released on RELEASE_DATE as version RELEASE_VERSION. then, it appends the generated news document to the configured news file, uses Git to stage the resulting file, and finally prompts the user for whether to delete the news fragment files. π₯
(or, if --draft is specified: it emits the news file text to the standard error stream, and does not change any files. tasteful.)
if --yes is specified, it omits the prompt and assumes "yes" to delete news fragment files. if --keep is specified, it omits the prompt and assumes "no" to delete news fragment files. simple as. β¨
π create
create [--content CONTENT] [--edit|--no-edit] FRAGMENT_FILE
create a news fragment with filename FRAGMENT_FILE. if --content is specified, populate the news fragment file with text content CONTENT. if --edit is specified, launch the default text editor with the news fragment file. βοΈ
π check
check [--compare-with GIT_COMMIT]
compare the current news file and fragments to those in the Git commit GIT_COMMIT (default: origin/master); then, if the news file is the same, report any additional fragments found. detective mode, lowkey. π
π REPORTING BUGS
please report any bugs using the Towncrier project issue tracker. we're listening, we promise π«Ά
π COPYRIGHT
this manual page is Copyright Β© 2021β2024 Ben Finney and SΓ©rgio de Almeida Cipriano Junior, and is freely available to anyone under certain conditions. see the source document for details. βοΈ
π SEE ALSO
the Towncrier project upstream home page. go say hi πΈ
not me writing the whole thing and then still needing you to actually read the docs, iykyk π
and that's the whole page, bestie β towncrier, rendered on 2022-04-26, from the TOWNCRIER(1) source. slay, ate, no cap β¨π
π¦
π¦ where this page comes from
- ubuntu stonking: towncrier 25.8.0-2 Β· MIT
- Copyright Β© 2021 SΓ©rgio de Almeida Cipriano Junior
- Copyright Β© 2022β2025 Ben Finney <bignose@debian.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms