2017 © Pedro Peláez
 

library drupalorg-cli

Command line interface for interacting with Drupal.org

image

mglaman/drupalorg-cli

Command line interface for interacting with Drupal.org

  • Tuesday, May 15, 2018
  • by mglaman
  • Repository
  • 1 Watchers
  • 32 Stars
  • 39 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 8 Open issues
  • 13 Versions
  • 26 % Grown

The README.md

Drupal.org CLI

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

A command line tool for interfacing with Drupal.org. Uses the Drupal.org REST API., (*2)

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., (*3)

  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)., (*4)

  3. Run drupalorg and verify you can see the list of available commands., (*5)

Installing via Composer (deprecated)

Use the following command to install the command line tool via Composer:, (*6)

composer global require mglaman/drupalorg-cli, (*7)

Installing (Bash) completion

drupalorg comes with completion support for all commands, excluding options., (*8)

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

In your .bashrc (or .profile) add, (*10)

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

Updating

Automatic updating is not yet supported. You will need to manually download new releases., (*11)

Usage

Use the 'list' command to see available commands., (*12)

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., (*13)

From within the directory of the project we're working on:, (*14)

  • 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

The Versions

15/05 2018

dev-master

9999999-dev

Command line interface for interacting with Drupal.org

  Sources   Download

GPL-2.0 GPL-2.0-or-later

The Requires

 

by Matt Glaman

04/05 2018

dev-mrn-change-records

dev-mrn-change-records

Command line interface for interacting with Drupal.org

  Sources   Download

GPL-2.0-or-later

The Requires

 

by Matt Glaman

02/05 2018

v0.0.9

0.0.9.0

Command line interface for interacting with Drupal.org

  Sources   Download

GPL-2.0-or-later

The Requires

 

by Matt Glaman

16/03 2018

v0.0.8

0.0.8.0

Command line interface for interacting with Drupal.org

  Sources   Download

GPL-2.0-or-later

The Requires

 

by Matt Glaman

16/03 2018

v0.0.7

0.0.7.0

Command line interface for interacting with Drupal.org

  Sources   Download

GPL-2.0-or-later

The Requires

 

by Matt Glaman

16/03 2018

dev-phar

dev-phar

Command line interface for interacting with Drupal.org

  Sources   Download

GPL-2.0-or-later

The Requires

 

by Matt Glaman

16/03 2018

dev-travis

dev-travis

Command line interface for interacting with Drupal.org

  Sources   Download

GPL-2.0-or-later

The Requires

 

by Matt Glaman

11/03 2018

v0.0.6

0.0.6.0

Command line interface for interacting with Drupal.org

  Sources   Download

GPL-2.0-or-later

The Requires

 

by Matt Glaman

10/03 2018

v0.0.5

0.0.5.0

Command line interface for interacting with Drupal.org

  Sources   Download

GPL-2.0-or-later

The Requires

 

by Matt Glaman

30/03 2016

v0.0.4

0.0.4.0

Command line interface for interacting with Drupal.org

  Sources   Download

GPL-2.0

The Requires

 

by Matt Glaman

16/02 2016

v0.0.3

0.0.3.0

Command line interface for interacting with Drupal.org

  Sources   Download

GPL-2.0

The Requires

 

by Matt Glaman

14/02 2016

v0.0.2

0.0.2.0

Command line interface for interacting with Drupal.org

  Sources   Download

GPL-2.0

The Requires

 

by Matt Glaman

13/02 2016

v0.0.1

0.0.1.0

Command line interface for interacting with Drupal.org

  Sources   Download

GPL-2.0

The Requires

 

by Matt Glaman