Installing Composer Dependencies

Nitro’s composer command lets you to run any composer command without having Composer installed on your host machine.

$ cd ~/dev/my-craft-project
$ nitro composer install
  … checking /Users/oli/dev/my-craft-project/composer.json ✓
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Generating optimized autoload files
79 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
composer install completed 🤘

# Specifying a Composer Version

The composer command allows to to specify any version of composer based on the Docker Image tags. To use a different version of composer, run the following:

$ nitro composer --composer-version=1 install