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 the list command 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 your composer.json file. 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: 1 for normal output, 2 for more verbose output, and 3 for 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 your composer.json requirements 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 basic composer.json file in current directory. from nothing, a file. 🌱
  • install [i] β€” installs the project dependencies from the composer.lock file if present, or falls back on the composer.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 the require or require-dev. goodbye bestie 😭
  • repository [repo] β€” manages repositories. multiple sources, one queen.
  • require [r] β€” adds required packages to your composer.json and installs them. the classic move, fr fr.
  • run-script [run] β€” runs the scripts defined in composer.json. press play. ▢️
  • search β€” searches for packages. treasure hunt through the ecosystem. πŸ”Ž
  • self-update [selfupdate] β€” updates composer.phar to 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 to composer.json, and updates the composer.lock file. glow-up szn. πŸ”₯
  • validate β€” validates a composer.json and composer.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