PHPackages                             oguzhantogay/jira-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. oguzhantogay/jira-cli

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

oguzhantogay/jira-cli
=====================

A PHP CLI tool to interact with Jira issues directly from the terminal.

v1.1.3(1y ago)310MITPHPPHP ^8.0

Since Nov 1Pushed 1y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (6)Versions (4)Used By (0)

Jira CLI Tool
=============

[](#jira-cli-tool)

[![Jira CLI](https://camo.githubusercontent.com/0e09bba2b50cc2eec1c044c2f87f3f7ac6b79cd100ffefa4eb2bc4cc184d0f04/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4a6972612d434c492d626c7565)](https://camo.githubusercontent.com/0e09bba2b50cc2eec1c044c2f87f3f7ac6b79cd100ffefa4eb2bc4cc184d0f04/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4a6972612d434c492d626c7565) [![Platform](https://camo.githubusercontent.com/ac8ef3b9ff88be7754497f3d72785371b885e46488cbc92820b987635dceaa1c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506c6174666f726d2d4d61632532302537432532304c696e757825323025374325323057696e646f77732d6c6967687467726579)](https://camo.githubusercontent.com/ac8ef3b9ff88be7754497f3d72785371b885e46488cbc92820b987635dceaa1c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506c6174666f726d2d4d61632532302537432532304c696e757825323025374325323057696e646f77732d6c6967687467726579)

A powerful, easy-to-use CLI tool for interacting with Jira, making it simple to manage issues, track worklogs, and automate common tasks right from your terminal. Perfect for developers and project managers who want to streamline their Jira workflows.

Features
--------

[](#features)

- View, create, edit, assign, and delete Jira issues
- Track daily, weekly or monthly worklogs with detailed or summarized views
- Retrieve user details and set environment configurations automatically

Supported Platforms
-------------------

[](#supported-platforms)

PlatformSupportedNotesmacOS✅Requires PHP installedLinux✅Requires PHP installedWindows✅Requires PHP installedInstallation
------------

[](#installation)

1. **Clone the repository**:

    ```
    git clone https://github.com/oguzhanT/jira-cli.git
    cd jira-cli
    ```
2. **Install dependencies**:

    ```
    composer install
    ```
3. **Configure your environment**:

    - Copy the `.env.example` file to `.env` and fill in your Jira details:

    ```
    JIRA_SERVER=https://your-jira-instance.atlassian.net
    JIRA_USERNAME=your-email@example.com
    JIRA_API_TOKEN=your-jira-api-token

    ```
4. **Set up account ID**:

    - Run the following command to automatically set your `JIRA_ACCOUNT_ID` in `.env`:

    ```
    php bin/jira-cli configure-account-id
    ```

Commands
--------

[](#commands)

### Issue Management

[](#issue-management)

#### View Issue Details

[](#view-issue-details)

Display details for a specific issue by key.

```
php bin/jira-cli show-issue --issueKey=ISSUE-123
```

#### Create a New Issue

[](#create-a-new-issue)

Interactively create a new issue in Jira.

```
php bin/jira-cli create-issue
```

You will be prompted for details such as project, summary, description, issue type, and priority.

#### Edit an Issue

[](#edit-an-issue)

Edit details of an existing issue.

```
php bin/jira-cli edit-issue --issueKey=ISSUE-123
```

Provides prompts for modifying fields like summary, description, assignee, issue type, and priority.

#### Assign an Issue

[](#assign-an-issue)

Assign an issue to a user by account ID.

```
php bin/jira-cli assign-issue --issueKey=ISSUE-123 --assignee=account_id
```

Alternatively, use `--projectKey` to choose from a list of assignable users.

#### Delete an Issue

[](#delete-an-issue)

Delete a specified issue.

```
php bin/jira-cli delete-issue --issueKey=ISSUE-123
```

### Worklog Tracking

[](#worklog-tracking)

#### Show Worklog Summary

[](#show-worklog-summary)

View the total time logged for a specified period (daily, weekly, biweekly, monthly).

```
php bin/jira-cli show-work-log --accountId=your_account_id --period=weekly
```

#### Show Detailed Worklog by Issue

[](#show-detailed-worklog-by-issue)

Get a breakdown of worklogs by issue for each day.

```
php bin/jira-cli show-work-log --accountId=your_account_id --period=monthly --detailed
```

### User Management

[](#user-management)

#### Configure Account ID

[](#configure-account-id)

Automatically fetch and set your Jira `accountId` in the `.env` file.

```
php bin/jira-cli configure-account-id
```

#### Show User Details

[](#show-user-details)

Retrieve details for the authenticated user.

```
php bin/jira-cli show-user-detail
```

### Example Workflows

[](#example-workflows)

1. **Set up and View Your User Details**:

    ```
    php bin/jira-cli configure-account-id
    php bin/jira-cli show-user-detail
    ```
2. **Log and Track Work**:

    ```
    php bin/jira-cli create-issue
    php bin/jira-cli assign-issue --issueKey=ISSUE-123 --assignee=account_id
    php bin/jira-cli show-work-log --accountId=your_account_id --period=daily --detailed
    ```

Contribution
------------

[](#contribution)

If you’d like to contribute to this project:

1. Fork the repository.
2. Create a feature branch (`git checkout -b feature-branch`).
3. Commit your changes (`git commit -m "Add a new feature"`).
4. Push to the branch (`git push origin feature-branch`).
5. Create a pull request.

License
-------

[](#license)

This project is licensed under the MIT License.

[![Sponsor on GitHub](https://camo.githubusercontent.com/494ef1ed83549710a90d6fb53780242a473ff5f43e61409e59115d2d65688c1f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53706f6e736f725f6f6e5f4769744875622d4646363942343f7374796c653d666f722d7468652d6261646765266c6f676f3d6769746875622d73706f6e736f7273266c6f676f436f6c6f723d7768697465)](https://github.com/sponsors/oguzhanT)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance50

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~79 days

Total

3

Last Release

395d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0121e5094695539205ee3f81b5ba7fa8bb6e66d9237d8bbc03329da311643a23?d=identicon)[oguzhanT](/maintainers/oguzhanT)

---

Top Contributors

[![oguzhanT](https://avatars.githubusercontent.com/u/6030989?v=4)](https://github.com/oguzhanT "oguzhanT (3 commits)")

---

Tags

phpclicommand-linejiraJIRA APIjira issues

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/oguzhantogay-jira-cli/health.svg)

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

###  Alternatives

[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k331.8M8.4k](/packages/nunomaduro-collision)[nunomaduro/laravel-console-menu

Laravel Console Menu is an output method for your Laravel/Laravel Zero commands.

815412.0k48](/packages/nunomaduro-laravel-console-menu)[nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

2582.1M11](/packages/nunomaduro-laravel-console-task)[nunomaduro/laravel-console-summary

A Beautiful Laravel Console Summary for your Laravel/Laravel Zero commands.

662.0M3](/packages/nunomaduro-laravel-console-summary)[nunomaduro/laravel-console-dusk

Laravel Console Dusk allows the usage of Laravel Dusk in Laravel/Laravel Zero artisan commands.

16255.4k7](/packages/nunomaduro-laravel-console-dusk)[rahul900day/laravel-console-spinner

Laravel Console Spinner is a spinner output for Laravel command line.

76125.4k1](/packages/rahul900day-laravel-console-spinner)

PHPackages © 2026

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