CMDLINER-INSTALL(1)
π cmdliner-install(1) β like, the whole manual, bestie
okay so this is a page from the Cmdliner Manual (yes, the CMDLINER-INSTALL(1) one, you found it, congrats π). Sit down, grab a strawberry drink π, and let's get you acquainted with the little installer that handles all the support files for your cmdliner tools. It's giving "glorified copy-paste" but honestly? Iconic. π
β¨ NAME β¨
cmdliner-install β install support files for cmdliner tools π«Ά
πΈ SYNOPSIS πΈ
cmdliner install COMMAND β¦
that's it. that's the whole vibe. cmdliner install and then a COMMAND and then whatever that command wants. periodt. π
π¦ DESCRIPTION π¦
so the cmdliner install subcommands are the ones that actually install the cmdliner support files. that's their whole job, no cap. π
want the tea on any of them? the library documentation has you covered β or honestly just poke a subcommand with --help and it'll spill everything. iykyk. π₯
π COMMANDS π
generic-completion [--dry-run] [--shell=SHELL] [--update-opam-install=PKG.install] [OPTION]β¦ SHAREDIRβ installs the generic completion scripts. the ones that aren't tied to one specific tool, bestie. β¨tool-completion [OPTION]β¦ TOOLNAMEβ¦ SHAREDIRβ installs completion scripts for the tools you name. pluralTOOLNAMEβ¦, so yes, you can absolutely bring your whole friend group. π«Άtool-manpages [--dry-run] [--update-opam-install=PKG.install] [OPTION]β¦ TOOLEXEC[:NAME]β¦ MANDIRβ installs manpages for your tools and their subcommands. note theTOOLEXEC[:NAME]situation there β you can slap a:NAMEon it, iykyk. πtool-support [OPTION]β¦ TOOLEXEC[:NAME]β¦ PREFIXβ the two-for-one special: installs both the tool completion and the manpages in one go. main character energy fr fr. π
π COMMON OPTIONS π
--help[=FMT](default=auto) β shows this very help, in the formatFMT. andFMThas got to be one ofauto,pager,grofforplain, no exceptions. when it'sauto, you getpagerorplainwhenever theTERMenv var isdumbor straight-up undefined. (yes,TERM=dumbis real and it's kind of a mood tbh π)--versionβ shows version info. that's it. that's the whole thing. β
π EXIT STATUS π
cmdliner install dips out with:
0β on success. slay. πΈ123β on indiscriminate errors, the ones reported on standard error. not me getting a 123 π124β on command line parsing errors. you typed something weird, bestie. π125β on unexpected internal errors. aka bugs. yeah. those. π
π§ SEE ALSO π§
cmdliner(1)β go read the main one, it's literally right there π
and that's the whole page!! π happy installing, bestie β go forth and make those completion scripts and manpages gorgeous. π¦
with love from Cmdliner v2.1.1 π (that's the version, mwah, bye!! πβ¨)
π¦ where this page comes from
- arch rolling: ocaml-cmdliner 2.1.1-1 Β· ISC
- nixos 26.05: cmdliner 2.1.1
- nixpkgs unstable: cmdliner 2.1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms