Skip to main content

Manage Phabricator tasks from the comfort of your terminal

Project description

phable

Manage Phabricator tasks from the comfort of your terminal.

phable is a CLI allowing you to manage your Phorge/Phabricator tasks.

It tries to be very simple and not go overboard with features. You can:

  • create a new task
  • display a task details
  • move a task to a column on its current board
  • assign a task to a user
  • add a comment to a task

Installation

$ pip install phable-cli

Usage

$ phable --help
Usage: phable [OPTIONS] COMMAND [ARGS]...

  Manage Phabricator tasks from the comfort of your terminal

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  assign     Assign one or multiple task ids to a username
  comment    Add a comment to a task
  create     Create a new task
  move       Move one or several task on their current project board
  show       Show task details
  subscribe  Subscribe to one or multiple task ids

Setup

For phable to work, you need to define the following environment variables:

  • PHABRICATOR_URL: URL to your phabricator instance. Ex: PHABRICATOR_URL=https://phabricator.wikimedia.org
  • PHABRICATOR_TOKEN: Generate a token from ${PHABRICATOR_URL}/settings/user/${YOUR_USERNAME}/page/apitokens/
  • PHABRICATOR_DEFAULT_PROJECT_PHID: id for the Phabricator project to be used by default when creating tasks.

Note: to get PHABRICATOR_DEFAULT_PROJECT_PHID, define the first 2 environment variables, and run the following command, where T123456 is a task id belonging to your project.

$ phable show T123456 --format=json | jq -r '.attachments.projects.projectPHIDs[]'

Tips and tricks

If you're using iTerm2, you can turn the task IDs into clickable links, by going to iTerm2 > Settings > Profiles > Advanced > Smart Selection > Edit > [+]:

Then click on the new rule Notes field, and set it to Phabricator, and set the Regular expression field to T\d{6} (adjust the number of digits to what a task ID looks like in your instance. The latest created task has ID 385678 right now, so \d{6} gives us some leeway).

One that is done, holding Command when hovering on a task ID should turn it into a link.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

phable_cli-0.1.6.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

phable_cli-0.1.6-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file phable_cli-0.1.6.tar.gz.

File metadata

  • Download URL: phable_cli-0.1.6.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.13.2 Darwin/24.3.0

File hashes

Hashes for phable_cli-0.1.6.tar.gz
Algorithm Hash digest
SHA256 fe871ca1e5241f28d2b4c9ce85ed034c20346d96f77ac342865331993e8b73b0
MD5 6d521061b7e710492d5e6b65af7f7f15
BLAKE2b-256 ccaf625952cad5f417fd29ff45d6530bd2a7e7636de8b9e248f764c3ea279096

See more details on using hashes here.

File details

Details for the file phable_cli-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: phable_cli-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.13.2 Darwin/24.3.0

File hashes

Hashes for phable_cli-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e1e16e58d7f2c778d99e9ef6dce62c58b562d96f8f30881ff9715ccd3b30f4aa
MD5 d8575fa43e2c12ca9366681cf66215c1
BLAKE2b-256 1aee847a12fafa90afb8560774363b726e1eff4a8ca731791f8cd6456dac5668

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page