• Stars
    star
    119
  • Rank 296,815 (Top 6 %)
  • Language
    PHP
  • Created over 8 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A command line tool for interfacing with Drupal.org

Drupal.org CLI

Latest Stable Version Total Downloads Latest Unstable Version License

A command line tool for interfacing with Drupal.org. Uses the Drupal.org REST API.

Requirements

  • PHP 8.1 or higher, with cURL support
  • Git - Currently required to apply and create patches. Very useful for contributing patches back to an issue.

Installation

Installing manually

  1. Download the drupalorg.phar file from the latest release.

  2. Rename the file to drupalorg, ensure it is executable, and move it into a directory in your PATH (use echo $PATH to see your options).

  3. Run drupalorg and verify you can see the list of available commands.

Installing via Composer (deprecated)

Use the following command to install the command line tool via Composer:

composer global require mglaman/drupalorg-cli

Installing (Bash) completion

drupalorg comes with completion support for all commands, excluding options.

To activate it, either source the completion file or add it to the system-wide completion directory, normally /etc/bash_completion.d/.

In your .bashrc (or .profile) add

source [...]/vendor/mglaman/drupalorg-cli/drupalorg-cli-completion.sh

Updating

Automatic updating is not yet supported. You will need to manually download new releases.

Usage

Use the 'list' command to see available commands.

drupalorg list

Commands

Available commands:
  help                                 Displays help for a command
  list                                 Lists commands
 cache
  cache:clear (cc)                     Clears caches
 ci
 drupalci
  drupalci:list (ci:l)                 Lists test results for an issue
  drupalci:watch (ci:w)                Watches a Drupal CI job
 issue
  issue:apply                          Applies the latest patch from an issue.
  issue:branch                         Creates a branch for the issue.
  issue:interdiff                      Generate an interdiff for the issue from local changes.
  issue:link                           Opens an issue
  issue:patch                          Generate a patch for the issue from committed local changes.
 maintainer
  maintainer:issues (mi)               Lists issues for a user, based on maintainer.
  maintainer:release-notes (rn, mrn)   Generate release notes.
 project
  project:issues (pi)                  Lists issues for a project.
  project:kanban                       Opens project kanban
  project:link                         Opens project page
  project:release-notes (prn)          View release notes for a release
  project:releases                     Lists available releases
 tci
 travisci
  travisci:list (tci:l)                Lists Travis Ci builds for a Drupal project
  travisci:watch (tci:w)               Watches a Travis CI job

Getting Started

Working with project issues

If you want to use this to generate patches that you can contribute back to a Drupal project, it's best to work within a cloned repo of that project. To get instructions for cloning a project's repo, visit the "Version Control" tab on the project page.

From within the directory of the project we're working on:

  • drupalorg issue:apply [issue number] - Create a new branch for the given issue, apply the latest patch on the issue to the new branch, then commit the changes locally.
  • drupalorg issue:patch [issue number] - Create a new patch for the given issue from the changes committed locally.

Contributing

Installing and running from source

  1. Clone the repository
  2. In the drupalorg-cli directory, run composer install
  3. Run the script with ./drupalorg

More Repositories

1

drupal-check

Check Drupal code for deprecations and discover bugs via static analysis
PHP
331
star
2

phpstan-drupal

Extension for PHPStan to allow analysis of Drupal code.
PHP
166
star
3

conductor

A Composer user interface built using Electron.
JavaScript
145
star
4

contribkanban.com

ContribKanban.com - turning Drupal.org issue queues into kanban boards to better Drupalkind
PHP
59
star
5

commerce_examples

Examples module for Drupal Commerce 2.x
PHP
54
star
6

platform-docker

Local development tool for PHP platforms using Docker Compose
PHP
47
star
7

composer-drupal-lenient

Allows installing Drupal extensions event if not compatible with installed drupal/core package
PHP
40
star
8

drupal-typed-data-by-example

Drupal's Typed Data API by example
PHP
34
star
9

intellij-drupal-run-tests

Provides a run configuration that executes Drupal's test runner (for Simpletest, Unit, Kernel, Functional, FunctionalJavascript.)
Java
24
star
10

commerce-project-template

[EXPERIMENT] a Drupal Commerce 2 project template, with Behat + PHPUnit.
PHP
14
star
11

drupal-mrn

PHP
13
star
12

gatsbyjs_commerce_demo

Demo GatsbyJS setup to build an online store via Drupal Commerce and JSON API.
JavaScript
13
star
13

commerce_cart_api

Original sandbox WIP for the module now on Drupal.org. Do not fork. Patches accepted on Drupal.org
JavaScript
10
star
14

drupalorg-issue-tracker

Chrome application to provide a simple method for keeping track of Drupal.org project issues. ARCHIVED, Chrome apps dead.
JavaScript
9
star
15

drupal-test-helpers

Helpers for writing better Kernel and Unit tests for Drupal
PHP
7
star
16

whiskeydex

PHP
7
star
17

drupal-deprecation-testing

Runs Drupal against PHPStan with deprecation rules
PHP
7
star
18

commerce-migrate-environment

Docker environment for working on Commerce Migrate 2.x
TSQL
7
star
19

pest-plugin-drupal

A plugin for using Pest to test your Drupal code
PHP
7
star
20

drupal-commerce-behat

Integration with Behat Drupal Extension for Drupal Commerce contexts
PHP
7
star
21

commerce_demo_decoupled

Now officially a Centarro demo https://github.com/centarro/create-react-app-example
JavaScript
6
star
22

drupal-change-record-triage

Used to triage Drupal change records to ensure phpstan-drupal, drupal-rector, and upgrade_status have appropriate issues.
PHP
6
star
23

roosky

A wildly different approach to building an application with Drupal
PHP
5
star
24

fb_feed

Drupal module which creates a block to display responsive Facebook Like Box
PHP
5
star
25

phpstan-junit

ErrorFormatter for PHPStan to output errors in JUnit format
PHP
4
star
26

commerce_api

Sandbox for full HTTP API support using JSON:API and JSONRPC
PHP
4
star
27

commerce_marketplace

WIP Sandbox to show how to turn Commerce 2.x into a marketplace.
PHP
4
star
28

docker-helper

Helper class for interacting with Docker, Docker Compose, and Docker Machine.
PHP
4
star
29

drupal-puphpet

(Deprecated for https://github.com/mglaman/drupal-contrib-vm). A vagrant development environment for Drupal contrib developers, built using PuPHPet
Ruby
4
star
30

ansible-role-wp-cli

Ansible Role: WP CLI
3
star
31

docker-php-bcmath

Docker images for PHP with bcmath
3
star
32

ansible-role-atom

Support for Atom editor and Atom Package Manager via Ansible.
3
star
33

drupal-static-autoloader

A package to support static autoloading of Drupal core and extension code
PHP
3
star
34

drupal-cicd-rsync-example

PHP
3
star
35

responsive_panels_layouts

A work in progress of responsive layouts for Panels in Drupal, built utilizing Sass.
CSS
3
star
36

jsonapi_resources

Sandbox for creating a module that allows defining Drupal JSON:API resources via plugins.
PHP
3
star
37

commerce_avatax

D8 Sandport of https://www.drupal.org/project/commerce_avatax
PHP
2
star
38

drupal-finalifier

FOR THE FINALIFIERING OF DRUPAL
PHP
2
star
39

drupal-commerce-nightwatch

Experiment using JSDrupal's Nightwatch branch.
PHP
2
star
40

docker-drupal-simpletest

Images for running Simpletest in a container
Shell
2
star
41

phpstan-civicrm

Supports static analysis of CiviCRM with PHPStan
PHP
2
star
42

drupal-object-storage

Provides support for using object storage in Drupal
PHP
2
star
43

drupal-memory-kernel

Provides a DrupalKernel that uses an in-memory SQLite database
PHP
2
star
44

commerce_cart_cookies

Sample repo for blog post on service swapping in Drupal 8
PHP
2
star
45

phpci-drush

Drush plugin for PHPCI
PHP
2
star
46

commerce_cart_flyout

[WIP] Fancy cart stuff
JavaScript
2
star
47

officernd

SDK for working with the Office R&D API http://developer.officernd.com
PHP
1
star
48

php-git-server

PHP based Git server
PHP
1
star
49

drupalbook.com

JavaScript
1
star
50

drupal-aws-sandbox

AWS AppRunner, S3, Aurora Serverless, etc
PHP
1
star
51

drupal-contrib-vm

Vagrant provisioned by Ansible for Drupal contributed development
Shell
1
star
52

commerce_message

D8 port sandbox
PHP
1
star
53

gohugo_drupal

Experiment using Drupal to generate contents for the Hugo SSG
PHP
1
star
54

drupalorg

Java helpers for integrating with the Drupal.org REST API.
Java
1
star
55

platformsh-vagrant

Vagrant with Ansible for Platform.sh projects (opinionated towards Drupal.)
PHP
1
star
56

deconstructing-drupal-commerce

Deconstructing Drupal Commerce presentation slides, built with Reveal.js
CSS
1
star
57

phpstan-drupal-deprecations

Repo to streamline configuring Drupal deprecation testing
1
star
58

commerce_order_ui_improved

Implements an improved Commerce Order entity display
PHP
1
star
59

pokeapi-middleware

PHP
1
star
60

commerce_entity_plus

Enhancements to Drupal Commerce entities by providing structured entity classes.
PHP
1
star
61

ng-github

AngularJS+Github API
JavaScript
1
star
62

commerce_checkout_api

Exploring a checkout API for Drupal Commerce
PHP
1
star
63

toolstack-helper

Helps identify what kind of project is in a folder (Drupal, WordPress, Symfony, etc.)
PHP
1
star
64

physical

Personal fork of Physical Fields module to get it ready for Drupal 8.0.x
PHP
1
star
65

units

A PHP 5.4+ measurement unit library.
PHP
1
star
66

aegir-dev

Vagrant+Puppet = Aegir3 Contributor Environment.
Ruby
1
star
67

flagship

A parent theme framework to extend site building in WordPress, inspired by Omega Theme & Drupal.
PHP
1
star
68

drupalcamp-base

Composer based build for a drupalcamp site, powered by D8+Commerce+Panels
PHP
1
star
69

commerce-multistore-example

A sample Drupal Commerce 2.0 setup with DrupalVM. Demonstrates multistore and multilingual. Along with Amazon Pay
1
star
70

getting-cozy-with-drupal-commerce

Getting Cozy with Drupal Commerce - a developer's book on the Drupal Commerce system
1
star
71

wasm-drupal

Drupal in WASM
Dockerfile
1
star
72

commerce-deprecation-testing

Runs Drupal Commerce against PHPStan with deprecation rules
PHP
1
star