PHPackages                             naoi/drupalorg-cli - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. naoi/drupalorg-cli

ActiveLibrary[CLI &amp; Console](/categories/cli)

naoi/drupalorg-cli
==================

Command line interface for interacting with Drupal.org

031PHP

Since Apr 18Pushed 3y agoCompare

[ Source](https://github.com/naoi/drupalorg-cli)[ Packagist](https://packagist.org/packages/naoi/drupalorg-cli)[ RSS](/packages/naoi-drupalorg-cli/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Drupal.org CLI
--------------

[](#drupalorg-cli)

[![Latest Stable Version](https://camo.githubusercontent.com/e26351aed561e1a53361987cff0ea25f0d063d5c0177a9775d3787403b0e0f5c/68747470733a2f2f706f7365722e707567782e6f72672f6d676c616d616e2f64727570616c6f72672d636c692f762f737461626c65)](https://packagist.org/packages/mglaman/drupalorg-cli) [![Total Downloads](https://camo.githubusercontent.com/6ccd0c6839be0d1f38b8eab346b62d72fd933e9155ad70300b1758ba75d09512/68747470733a2f2f706f7365722e707567782e6f72672f6d676c616d616e2f64727570616c6f72672d636c692f646f776e6c6f616473)](https://packagist.org/packages/mglaman/drupalorg-cli) [![Latest Unstable Version](https://camo.githubusercontent.com/1729664d4a1a480990e8a16d901144e76a1911811704bfd39abce9f249648c9a/68747470733a2f2f706f7365722e707567782e6f72672f6d676c616d616e2f64727570616c6f72672d636c692f762f756e737461626c65)](https://packagist.org/packages/mglaman/drupalorg-cli) [![License](https://camo.githubusercontent.com/7ac9bdaed1f4a361cbdb544cd6f277adf6d50a29243bead9122141ce5ee012da/68747470733a2f2f706f7365722e707567782e6f72672f6d676c616d616e2f64727570616c6f72672d636c692f6c6963656e7365)](https://packagist.org/packages/mglaman/drupalorg-cli)

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

Requirements
------------

[](#requirements)

- PHP 7.4 or higher, with cURL support
- [Git](https://git-scm.com/) - Currently required to apply and create patches. Very useful for contributing patches back to an issue.

Installation
------------

[](#installation)

### Installing manually

[](#installing-manually)

1. Download the `drupalorg.phar` file from the [latest release](https://github.com/mglaman/drupalorg-cli/releases/latest).
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)

[](#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

[](#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
--------

[](#updating)

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

Usage
-----

[](#usage)

Use the 'list' command to see available commands.

```
drupalorg list

```

Commands
--------

[](#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
---------------

[](#getting-started)

### Working with project issues

[](#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
------------

[](#contributing)

### Installing and running from source

[](#installing-and-running-from-source)

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

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 68.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e496e9ed762c4bebb0365cfda11982bb3ab5cbc5f8b42d2b64ccb5541cf7b30e?d=identicon)[naoi](/maintainers/naoi)

---

Top Contributors

[![mglaman](https://avatars.githubusercontent.com/u/3698644?v=4)](https://github.com/mglaman "mglaman (186 commits)")[![violinist-bot](https://avatars.githubusercontent.com/u/27495990?v=4)](https://github.com/violinist-bot "violinist-bot (39 commits)")[![hansfn](https://avatars.githubusercontent.com/u/92755?v=4)](https://github.com/hansfn "hansfn (17 commits)")[![truls1502](https://avatars.githubusercontent.com/u/913581?v=4)](https://github.com/truls1502 "truls1502 (6 commits)")[![damienmckenna](https://avatars.githubusercontent.com/u/429?v=4)](https://github.com/damienmckenna "damienmckenna (5 commits)")[![daggerhart](https://avatars.githubusercontent.com/u/1205329?v=4)](https://github.com/daggerhart "daggerhart (3 commits)")[![jhedstrom](https://avatars.githubusercontent.com/u/76833?v=4)](https://github.com/jhedstrom "jhedstrom (3 commits)")[![malcomio](https://avatars.githubusercontent.com/u/428782?v=4)](https://github.com/malcomio "malcomio (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![smmccabe](https://avatars.githubusercontent.com/u/4956338?v=4)](https://github.com/smmccabe "smmccabe (2 commits)")[![naoi](https://avatars.githubusercontent.com/u/755689?v=4)](https://github.com/naoi "naoi (1 commits)")[![webflo](https://avatars.githubusercontent.com/u/123946?v=4)](https://github.com/webflo "webflo (1 commits)")[![jameswilson](https://avatars.githubusercontent.com/u/243532?v=4)](https://github.com/jameswilson "jameswilson (1 commits)")[![dpi](https://avatars.githubusercontent.com/u/21850?v=4)](https://github.com/dpi "dpi (1 commits)")[![manuee](https://avatars.githubusercontent.com/u/105582?v=4)](https://github.com/manuee "manuee (1 commits)")

### Embed Badge

![Health badge](/badges/naoi-drupalorg-cli/health.svg)

```
[![Health](https://phpackages.com/badges/naoi-drupalorg-cli/health.svg)](https://phpackages.com/packages/naoi-drupalorg-cli)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
