man(1)
π NAME π
Code::Blocks β the open-source, cross-platform IDE, bestie. It's giving legendary. It's giving free. β¨
πΈ SYNOPSIS πΈ
codeblocks [-h] [-ns] [-d] [--prefix <str>] [-p <str>] [--profile <str>]
[--rebuild] [--build] [--target <str>] [--no-batch-window-close]
[--batch-build-notify] [filename(s)...]
β¨ DESCRIPTION β¨
okay so codeblocks launches the Code::Blocks IDE π
that's it, that's the whole vibe. All the command-line arguments you can throw at it are listed down below, one by one, no skips, no cuts. π
π¦ OPTIONS π¦
-h,--helpβ shows you the full list of command-line arguments it accepts. your lil cheat sheet fr fr π-nsβ no splash screen on startup, periodt. (you can also just fully disable the splash screen in the program's environment options if that's more your thing π)-dβ turns on the debugging log. detective mode activated π--prefixβ tell Code::Blocks an alternate path so it can find its shared files. it's like giving it directions πΊοΈ-p,--profileβ pick which profile to use. and if you set the profile toask, Code::Blocks will pop up a list of all the known profiles so you can choose from them π--rebuildβ starts a batch rebuild job (that's "clean" and "build", both of them, the whole thing) on the filenames you passed as arguments. those filenames can be projects or workspaces, either is fine π--buildβ starts a batch build job (so like, no "clean" this time) on the filenames you passed as arguments. again, projects or workspaces, your call π--targetβ name a single build target to build in that batch build (or rebuild) job. just one, bestie π―--no-batch-window-closeβ normally when the batch job ends, the log window closes too π this option keeps it open until you manually close it yourself. you're in control π--batch-build-notifyβ pings you with a message when the batch job finishes. it's like a lil "we're done!!" text π£
π EXAMPLES π
Batch build myproject.cpp, only the "Debug" target, and keep the batch job window open when it's finished:
codeblocks --build --target="Debug" --no-batch-window-close myproject.cbp
Batch rebuild everything in myproject.cbp:
codeblocks --rebuild myproject.cbp
π AUTHOR π
Yiannis "mandrav" Mandravellos (mandrav@codeblocks.org) β the icon who made this happen π«Ά
π HISTORY π
2006 β initial version. the origin story, no cap β
and that's the whole page bestie!! version 1.0, dated 10 July 2006, straight from the Code::Blocks IDE man page π now go build something iconic β¨ππ¦
π¦ where this page comes from
- alpine 3.24: codeblocks-doc 25.03-r0 Β· GPL-3.0-or-later
- arch rolling: codeblocks 25.03-3 Β· GPL-3.0-or-later
- debian bookworm: codeblocks-common 20.03+svn13046-0.1 Β· GPL-3.0-or-later
- debian trixie: codeblocks-common 25.03+dfsg-2 Β· GPL-3.0-or-later
- epel 10: codeblocks 25.03-1.el10_1 Β· GPL-3.0-or-later
- fedora 43: codeblocks 25.03-2.fc43 Β· GPL-3.0-or-later
- fedora 44: codeblocks 25.03-5.fc44 Β· GPL-3.0-or-later
- fedora 44: codeblocks 25.03-7.fc44 Β· GPL-3.0-or-later
- nixos 26.05: codeblocks 25.03
- nixos 26.05: codeblocks-full 25.03
- nixpkgs unstable: codeblocks 25.03
- nixpkgs unstable: codeblocks-full 25.03
- ubuntu jammy: codeblocks-common 20.03-3.1 Β· GPL-3.0-or-later
- ubuntu noble: codeblocks-common 20.03+svn13046-0.3build2 Β· GPL-3.0-or-later
- ubuntu questing: codeblocks-common 25.03+dfsg-2
- ubuntu resolute: codeblocks-common 25.03+dfsg-2.1 Β· GPL-3.0-or-later
- ubuntu stonking: codeblocks-common 25.03+dfsg-3 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms