Skip to main content
Home
Drupal life hacks

Main navigation

  • Drupal
  • React
  • WP
  • Contact
  • About
User account menu
  • Log in

Breadcrumb

  1. Home

Understanding "composer update --dry-run" Command

By admin, 3 April, 2024

The command `composer update --dry-run` is used to perform the process of updating dependencies in a project, but without actually changing any files or installing updates. The `--dry-run` option (or `-n`) instructs Composer to simulate the update, showing which packages will be updated without making actual changes to the `composer.json` files or installing updates.

This is a useful feature for previewing what changes will occur in your project when updating dependencies. By running `composer update --dry-run`, you can see which versions of packages will be installed or updated and make decisions about changes to make in `composer.json` before actually updating dependencies.

Tags

  • Composer
  • #Drupal Planet

Comments

About text formats

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
Powered by Drupal