LogoLogo
9.0.x
9.0.x
  • Overview
    • About Varbase
    • Roadmap
    • Release Cycle and Supported Versions
    • How to Get Support
  • Developers
    • Getting Started
    • Installing Varbase
      • Requirements
      • Installing Varbase with DDEV
      • Installing Varbase with Lando
    • Understanding Varbase
      • Basic Concepts
      • Core Components
        • Varbase Core
          • Varbase Admin
          • Varbase Page
          • Varbase Security
          • Varbase Webform
          • Varbase Default Content
          • Varbase Tour
        • Varbase Media
        • Varbase Editor
        • Varbase Email
        • Varbase SEO
        • Varbase Workflow
        • Varbase Layout Builder
          • Varbase Landing page (Layout Builder)
          • Varbase Heading Block
          • Varbase Rich Text Block
          • Varbase HTML Code Block
          • Varbase Media (Image/Video) Block
          • Varbase Gallery Block
        • Varbase Total Control Dashboard
        • Vartheme Claro
        • Vartheme BS4
      • Optional Components
        • Varbase API
        • Varbase Internationalization
        • Varbase Media Hero Slider
        • Varbase Carousels
        • Varbase Blog
        • Varbase Search
        • Varbase Social Single Sign-On
        • Varbase Media Twitter
        • Varbase Media Instagram
        • Varbase Content Planner
        • Varbase Bootstrap Paragraphs
          • Varbase Bootstrap Paragraphs Text and Image
        • Varbase Landing Page (Paragraphs)
      • Additional Components
        • Varbase Media Header
        • Varbase FAQs
        • Varbase Reports
        • Varbase Commerce
        • Varbase YouTube Import
      • Development Components
        • Varbase Development
        • Varbase Style Guide
        • Reroute Email
        • Varbase Updates Helper
    • Configuring a Varbase Site
      • Navigation
        • Defining Active Menu Trail Using Menu Position
      • Using View Modes Inventory
      • Content Moderation and Workflows
      • URL Aliases in Varbase/Drupal
        • Configuring URL Aliases
        • Managing URL Aliases
      • Managing URL Patterns for Multilingual Websites
      • Managing Date and Time Formats to Display Across the Site
      • Using Varbase Layout Builder
        • Creating a Landing Page With Varbase Layout Builder
        • Activating Varbase Layout Builder for Content Types
      • Configuring Pathologic When Going Live
      • Configuring SEO Features
        • Disallow Oembed Media Links
      • Configuring Security Features
        • Spam Protection
        • Password Policies
        • Other Security Kits
        • Flood Contorl
        • Enable HTTP Password Authentication
      • Configuring JSON:API Features
      • Configure Varbase Media Hero Slider
      • Configuring Varbase Media Header
      • Configuring Varbase Mailer Settings
        • Configure Symfony Mailer
        • Configure Swift Mailer
        • Switch From Swift Mailer to Symfony Mailer
      • Entity Definition Update Manager Class
      • Module Installer Factory Class
    • Theme Development with Varbase
      • Understanding The Vartheme Base Theme
      • Creating Your Own Theme
      • Local Tasks and Moderation Sidebar
      • Add Preloaded Fonts in Vartheme
      • Switch From Node SASS to Dart SASS for Old Sub-Themes
    • Launching a Varbase Site to Production
    • Updating a Varbase Site
      • Understanding Varbase Updater Package
      • Handling Patches When Updating
      • Handling Configuration Updates
      • Updating Varbase to work with Composer 2.0
      • Updating Drush to the Latest Stable Version
      • Version Update Guides
        • Updating Varbase ~9.0 to Drupal 10
        • Switch from CKEditor 4 to CKEditor 5 in Varbase ~9.1.0
        • Updating from Varbase 8.x to 9.x
    • Varbase Patches
    • Frequently Asked Questions (FAQs)
    • Extending Varbase
      • Overriding Varbase
      • Creating Your Own Feature
      • Creating A Sub Profile From Varbase
        • Varbase Sub Profile Generator
        • Varbase Sub Profile Basic Template
        • Varbase Sub Profile Basic Project Template
      • Install Needed YARN and Gulp Tools
      • Compiling Provided Component Styles
      • Check Standards/Practice Coding And Linting
  • Content Designers
    • Terminology
    • Accessing the Administration Area
      • Website Environments
    • User Management
      • Allow Email/Username Login & Registration
      • Default Roles and Site Personas
        • Edit Roles' Permissions
        • Managing Roles
      • Add User
      • Edit User
      • Masquerading as another user
    • Dashboard
      • Reports
    • Content Structure
      • EntityQueues
      • Menu Management
        • Add Menu Items
        • Update Menu Items
        • Adding a Page to the Menu
      • Taxonomies
        • Manage Vocabulary
        • Edit Vocabulary
        • List Terms
        • Add Terms
        • Reorder and Edit Terms
      • Webforms
        • Setting up Emails Handler Conditions
        • Setting up Confirmations Message Settings Types
    • Content Management
      • Create Content
        • Add a Basic page
        • Add a Landing page
        • Add Blog
        • Add Media
          • Image
          • Remote video
          • Video
      • Modify Content
      • Delete Content
      • Preview Content
      • Bulk Edit Content
      • Content Moderation
      • Publish Content
      • URL Alias
    • About Layout Builder
      • Section
      • Custom Blocks
        • Heading Block
        • Basic Block
        • Media Block(Image/Video)
        • Rich-Text Editor “WYSIWYG”
      • Managing Blocks
    • Search Engine Optimization
      • XML Sitemap
      • Meta Tags in Varbase
      • URL Redirects
      • Domain Redirects
      • Prevent a Single Content From Being Indexed
    • Site Configuration
      • System
        • Clearing Varbase Cache
        • Google analytics
        • Mail templates
      • User interface
      • Development
      • Varbase settings
      • Web services
    • Common Error Handling Tips
  • Contributing
    • Contributing to Documentation
Powered by GitBook
On this page
  • Latest Drush Version Default in Use
  • Basic Ways to Update Drush
  • 1. Edit the composer.json file
  • 2. Run a Composer Command
  • Varbase Versions and Drush Versions
  • Drush and the Update Helper
  • Drush Use in Varbase
  • Use the Direct Drush from Vendor
  • Use the Aliased Drush Command From the Bin folder
  1. Developers
  2. Updating a Varbase Site

Updating Drush to the Latest Stable Version

PreviousUpdating Varbase to work with Composer 2.0NextVersion Update Guides

Last updated 8 months ago

Latest Drush Version Default in Use

Drush 13.0.0 was released on Aug 2

  • Better Terminal interface

  • Able to run recipes using drush

Many options to change to

  1. "drush/drush": "~13.0",

  2. "drush/drush": "~12 || ~13.0",

  3. "drush/drush": "~12",

  4. "drush/drush": "@stable",

Basic Ways to Update Drush

Updating drush in the root composer.json file for a project.

1. Edit the composer.json file

Use any text editor and change to "drush/drush" to the following

    "drush/drush": "~13",

2. Run a Composer Command

composer require "drush/drush:~13" --dev

Varbase Versions and Drush Versions

Drush and the Update Helper

In require of the module

This module has the Drush command. In order to execute it properly, you have to use Drush installed with your project. In the case of composer build, it's: [project directory]/vendor/bin/drush

They started to ask developers to use the drush command. not the one in the global, the one in the vendor.

Drush Use in Varbase

Not recommended to use the local global drush or the server global drush

Use the Direct Drush from Vendor

Change the directory in the terminal to the project directory.

cd [project directory]

Run the following command for example:

./vendor/drush/drush/drush cr

Then command will use the local drush command directly from vender in case the following composer config was not in the root composer.json file for the project

    "bin-dir": "bin/",

Use the Aliased Drush Command From the Bin folder

If the current working directory was the docroot folder in the opened terminal

cd [project directory]/docroot

Run the following command for example:

../bin/drush cr

More followed after that date.

The root composer.json file for the default template was changed "drush/drush": "~13", for easier support, update, and upgrade processes in development and production servers. In Varbase 9.0.16 release drush was changed to ~12.0.

and older works only with Drush ~10.0

and newer works only with Drush ~11.0

, Varbase 10.0.0-rc1 and newer works only with Drush ~12.0

and older works only with Drush ~12 || ~13

and newer works only with Drush ~13

and older works only with Drush ~12 || ~13

and older works only with Drush ~12 || ~13

and newer works only with Drush ~13

The ~4.0 is using "drush/drush": "~12.0" and the package is using "chi-teck/drupal-code-generator": "^3.0"

Issue : Updated the Update Helper module from 3.0.4 to 3.0.4 || 4.0.0 to support Drush ~12.0 and kept needed patches

Issue : Updated Checklist API module from 2.1.1 to ~2.1.0 and removed committed patches

The default template has the "bin-dir": "bin/",composer config in the root composer.json file.

Drush releases
Drush 11 support is end of life in November 2023
Varbase Project
Varbase 9.0.4
Varbase 9.0.5
Varbase 9.0.16
Varbase 9.1.5
Varbase 9.1.6
Varbase 10.0.0
Varbase 10.0.1
Varbase 10.0.2
Update Helper
Drupal Core Generator
#3393654
#3393644
Varbase Project
Release 13.0.0 · drush-ops/drushGitHub
composer.json · 4.0.x · project / update_helper · GitLabGitLab
Update Helper composer.json file has "drush/drush": "~12.0"
Logo
Logo