TravisCarden / ddev-drupal-xb-dev

A DDEV add-on for Drupal Experience Builder module development and evaluation
https://www.drupal.org/project/experience_builder
8 stars 5 forks source link

Add `xb-core-set-version` command for switching between Drupal core versions #21

Closed TravisCarden closed 2 weeks ago

TravisCarden commented 2 weeks ago

Add a command to update the version of Drupal core installed via Composer so you can easily switch between supported versions, e.g., 10 and 11, for testing

$ ddev help xb-core-set-version
Change the version of Drupal core. (shell web container command)

Usage:
  ddev xb-core-set-version <core-version> [flags]

Aliases:
  xb-core-set-version, core

Examples:
  ddev core ^11           # Use the latest 11.x.
  ddev core 11.0.7        # Use a specific version.
  ddev core "^10 || ^11"  # Use the latest 10.x or 11.x.

Flags:
  -h, --help   help for xb-core-set-version

Global Flags:
  -j, --json-output   If true, user-oriented output will be in JSON format.
      --skip-hooks    If true, any hook normally run by the command will be skipped.