COMPOSER(1)
π COMPOSER(1) π
okay bestie, sit down, hydrate, because we're talking about composer β the Composer command line interface, and honestly? she's iconic. this is your user-commands manual, the one you type man composer for, and i'm gonna walk you through every single flag like we're ranking them in a group chat. no cap, nothing gets skipped. π
β¨ SYNOPSIS β¨
composer command [options] [arguments]
that's it. that's the whole shape of her. a command, some options, some arguments. main character energy fr fr. π
πΈ OPTIONS πΈ
these are the global besties β they work on basically everything, so learn them once and you're slaying forever.
-h,--helpβ shows you the help for whatever command you asked about. and if you didn't give a command at all? she'll show you the help for thelistcommand instead. so helpful, so thoughtful, we love her. π«Ά--silentβ literally says nothing. zero messages. not one peep. the strong silent type.-q,--quietβ only errors get through. everything else? suppressed. so it's giving "tell me if it's broken, otherwise don't speak to me." π-V,--versionβ tells you this application's version. boom, info delivered.--ansi|--no-ansiβ force ANSI output, or disable it with--no-ansi. color all the way up or color all the way off, no in-between. π-n,--no-interactionβ do NOT ask any interactive questions. she's on autopilot and she does not want your opinion.--profileβ shows you timing and memory usage info. the little stats girlie. π--no-pluginsβ whether to disable plugins. (yes that's the actual wording, it's a vibe.)--no-scriptsβ skips running ALL the scripts defined in yourcomposer.jsonfile. all of them. every last one.-d,--working-dir=WORKING-DIRβ if you specify this, she uses the given directory as the working directory. aka "do it over there instead of here." π--no-cacheβ prevent use of the cache. fresh eyes, no memories, clean slate. β¨-v|vv|vvv,--verboseβ turn the volume UP on messages:1for normal output,2for more verbose output, and3for debug. yes you literally stack the v's. it's a whole ladder. π₯
π Available commands: π
okay this is the main event, the runway, the moment. here's every command with every alias, exactly as she comes:
aboutβ shows a short information about Composer. cute lil intro card.archiveβ creates an archive of this composer package. zip zip hooray. πauditβ checks for security vulnerability advisories for installed packages. protective queen behavior, we stan. π‘οΈbrowse[home] β opens the package's repository URL, or its homepage, in your browser. one click and you're there. πbumpβ increases the lower limit of yourcomposer.jsonrequirements to the currently installed versions. glow-up for your constraints.check-platform-reqsβ check that platform requirements are satisfied. are we compatible? let's find out.clear-cache[clearcache|cc] β clears composer's internal package cache. memory wipe, but make it fashion. π§Ήcompletionβ dump the shell completion script. tab-tab-tab your way to greatness.configβ sets config options. fiddling with the settings, as one does.create-projectβ creates new project from a package into given directory. brand new baby project, born today. πΌdepends[why] β shows which packages cause the given package to be installed. the "who brought you here" investigation. πdiagnoseβ diagnoses the system to identify common errors. doctor's appointment for your setup.dump-autoload[dumpautoload] β dumps the autoloader. sounds violent, is actually routine.execβ executes a vendored binary/script. run that thing you installed.fundβ discover how to help fund the maintenance of your dependencies. be a patron, support the devs, they're doing this for free babes. πglobalβ allows running commands in the global composer dir ($COMPOSER_HOME). home away from home.helpβ display help for a command. when in doubt, ask for help. always valid.initβ creates a basiccomposer.jsonfile in current directory. from nothing, a file. π±install[i] β installs the project dependencies from thecomposer.lockfile if present, or falls back on thecomposer.json. the everyday workhorse.licensesβ shows information about licenses of dependencies. legal girlie check-in. πlistβ list commands. the whole menu, right there.outdatedβ shows a list of installed packages that have updates available, including their latest version. "girl you're behind" energy, but politely. πpolicyβ manages custom dependency policies and their sources. rules, but yours.prohibits[why-not] β shows which packages prevent the given package from being installed. the blocker exposΓ©. π«reinstallβ uninstalls and reinstalls the given package names. out with the old, in with the same old but fresh.remove[rm|uninstall] β removes a package from therequireorrequire-dev. goodbye bestie πrepository[repo] β manages repositories. multiple sources, one queen.require[r] β adds required packages to yourcomposer.jsonand installs them. the classic move, fr fr.run-script[run] β runs the scripts defined incomposer.json. press play. βΆοΈsearchβ searches for packages. treasure hunt through the ecosystem. πself-update[selfupdate] β updatescomposer.pharto the latest version. she updates HERSELF. iconique. πshow[info] β shows information about packages. the gossip corner, but accurate.statusβ shows a list of locally modified packages. who's been touched?? πsuggestsβ shows package suggestions. "you might also like..." energy.update[u|upgrade] β updates your dependencies to the latest version according tocomposer.json, and updates thecomposer.lockfile. glow-up szn. π₯validateβ validates acomposer.jsonandcomposer.lock. checks both files, stamps the approval. β
π heads up bestie: this page listed exactly these global options and exactly these commands β no more, no less. so don't come at me about something that isn't here, because it genuinely isn't here.
and that's the whole page, start to finish, every flag and every command accounted for. certified slay. β¨ππΈ
this was composer 2.10.2, from July 2026 β that's the version and the date, and yes i said it out loud like a queen signing off. bye babes, go install something. π π¦
π¦ where this page comes from
- ubuntu stonking: composer 2.10.2-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms