Download the PHP package backdrop/drush without Composer

On this page you can find all versions of the php package backdrop/drush. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package drush

Drush Integration for Backdrop CMS

This project allows you to use Drush 8 with Backdrop CMS. Drush is a command-line tool for manipulating content management systems.

This project is deprecated. The bee project is the best way to interact with Backdrop via the CLI. If you use the backdrop-drush extension on your Backdrop projects, PHP 7.4 is recommended, as drush 8 has some issues with PHP 8+. Drush 8 is also scheduled to become unsupported when Drupal 7 reaches end-of-life on January 15, 2025.

This integration is currently capable of executing the following commands:

To see a full list of available drush commands (not all of which will necessarily work with Backdrop CMS):

To get additional information about a specific command

There are many more commands that Drush may execute, but they need to be updated for use with Backdrop. Although some commands may have worked through Backdrop's compatibility layer, for now any untested (and possibly dangerous) commands are not allowed to be run within a Backdrop installation.

As an alternative to Drush, you may like to consider using Backdrop Console, which has been built from the ground-up specifically for Backdrop.

Installation

This project requires that you use the "8.x" branch of drush (https://github.com/drush-ops/drush/tree/8.x). Neither older versions of drush nor the new 9.x or master branches will work with this extension.

There are a number of ways to install the Backdrop drush extension. All of them require the drush 8.x upstream. The main two ways are to install globally or site local installs.

The main advantage to the global install is you install the Backdrop Drush Extension once it operates on all your Backdrop sites. The disadvantage is that it can effect how drush operates on Drupal sites (sometimes breaking some commands). We try our best to prevent that, but it has been known to happen.

The main advantage to site local installs is that you will not break your Drupal sites or other Backdrop sites. The main disadvantage is you need to install drush proper and backdrop drush once per site.

Install with Lando

I primarily use Lando to do my development and Lando comes with the Backdrop Drush Extension installed 'out of the box'. I recommend Lando to do local development in general and as a great way to isolate dev dependencies and tooling for Backdrop site development.

By default Lando will install the latest stable release of the Backdrop Drush extension, but you can point it at any git tag or commit hash. If you wish to live on the bleeding edge and run the Backdrop Drush extension from source you can use this example .lando.yml file.

Install as Site Local

Download drush proper to your BACKDROP_ROOT (the place where your Backdrop code exists. The directory structure should loook something like this:

Then add the Backdrop Drush Extension to the BACKDROP_ROOT/drush/commands directory. Should look something like this:

Install Globally

If you are using composer to install drush, you can run the following command to require the 8.x version:

To install the Backdrop integration for Drush, clone or download this project into any location that supports Drush commands. The most common location for custom Drush commands such as this is in your user's home directory.

Now switch to a Backdrop site's directory and try a command! drush cron works well.

Usage

Use Drush as you would normally with a Drupal website.

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.

Maintainers

Credits

Thanks to all the Drush maintainers for their project, in particular:

for their help in making Drush for Backdrop possible.

Releasing Versions

We are using release-it to manage releases. When you are ready for a release:


All versions of drush with dependencies

PHP Build Version
Package Version
Requires composer/installers Version ^1.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package backdrop/drush contains the following files

Loading the files please wait ....