COMPOSER-CLI(1)
π
COMPOSER-CLI β the completion page, bestie edition
okay so you opened the COMPOSER-CLI(1) manual and landed on the completion command and you're like "what is this" β don't worry, I got you. Sit down, grab a boba π§, we're doing this together.
β¨ NAME β¨
composer-cli-completion β it generates the autocompletion script for the shell you pick. that's it. that's the whole job. she's a one-trick pony and she's iconic for it π
πΈ SYNOPSIS πΈ
composer-cli completion [flags]
π¦ DESCRIPTION π¦
so basically: this command spits out an autocompletion script for composer-cli, tailored to whichever shell you asked for. the autocompletion script, for the specified shell β yes, the shell matters, it's not one-size-fits-all, she customises π
and listen β the deets on how to actually use the generated script? those live in each sub-command's help. so if you're sitting there like "ok but what do I do with this file π" β go read the sub-command's help. it's all in there. i'm not gonna spoil it.
π OPTIONS π
just the one, and honestly? she's low-key the most important one:
-h,--help[=false]β help forcompletion. that's it, that's the flag. when you're lost, hit her up π«Ά
π OPTIONS INHERITED FROM PARENT COMMANDS π
these aren't even completion's own flags β she inherited them from the parent command, like a family heirloom but make it CLI. all of them work here too:
-a,--api=1β which WELDR Server API Version to use. default is1. β¨--cloudsocket="/run/cloudapi/api.socket"β the path to the cloudapi server's socket file. yes, that exact path, character for character, don't freestyle it.-j,--json[=false]β output the raw JSON response instead of the normal output. for when you want the data au naturel π--log=""β path to an optional logfile. optional! so if you leave it empty, that's a whole mood and also the default.-s,--socket="/run/weldr/api.socket"β path to the WELDR API server's socket file. note it'sweldrnotcloudapiβ two different sockets, two different vibes, don't mix them up bestie π--test=0β pass test mode to compose. and the values are very specific so listen up:1= Mock compose with fail.2= Mock compose with finished.
default is 0, which is just... normal mode. no games.
--timeout=240β the timeout to use for server communication, in seconds. default240. set it to0for no timeout β zero means no timeout, not "instant", okay? don't get caught lacking.--weldr-only[=false]β only use the WELDR API; skip using the newer Cloud API. so if you're a WELDR purist, this one's for you. default isfalse, meaning by default she will reach for that newer Cloud API too.
π SEE ALSO π
go read your sisters, they know things:
composer-cli(1)composer-cli-completion-bash(1)composer-cli-completion-fish(1)composer-cli-completion-powershell(1)composer-cli-completion-zsh(1)
one per shell. pick your fighter π
π HISTORY π
28-Apr-2026β Auto generated byspf13/cobra. yeah, a robot wrote this. and she ate. no cap.
heads up bestie: this page is auto-generated, so if something looks weird, that's just cobra doing cobra things π
and that's the whole page!! you made it, i'm so proud π₯Ήβ¨
composer-cli Β· Apr 2026 Β· COMPOSER-CLI(1) β mwah, go autocomplete something gorgeous ππ¦
π¦ where this page comes from
- fedora 44: weldr-client 36.2-2.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms