# redmine-cli

> A NodeJS Redmine client.

Latest version **0.8.1** (published 2015-06-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install redmine-cli
pnpm add redmine-cli
yarn add redmine-cli
bun add redmine-cli
```

Provides the command `redmine`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.8.1 |
| Published | 2015-06-08 |
| First published | 2015-04-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 (+3 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 20 |
| Author | André Diermann |
| Maintainers | a11n |
| Keywords | Redmine, CLI, REST |

## Links

- npm: https://www.npmjs.com/package/redmine-cli
- Repository: https://github.com/a11n/RedmineCLI
- Issues: https://github.com/a11n/RedmineCLI/issues
- npm.io page: https://npm.io/package/redmine-cli

## Dependencies (8)

- [open](https://npm.io/package/open.md) 0.0.5
- [swig](https://npm.io/package/swig.md) ^1.4.2
- [nconf](https://npm.io/package/nconf.md) ^0.7.1
- [colors](https://npm.io/package/colors.md) ^1.0.3
- [moment](https://npm.io/package/moment.md) ^2.9.0
- [cli-table](https://npm.io/package/cli-table.md) ^0.3.1
- [commander](https://npm.io/package/commander.md) ^2.7.1
- [sync-request](https://npm.io/package/sync-request.md) ^2.0.1

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.8.1 (latest) — 2015-06-08
- 0.8.0 — 2015-05-12
- 0.7.0 — 2015-04-16
- 0.6.0 — 2015-04-08
- 0.5.0 — 2015-04-06
- 0.4.0 — 2015-04-06
- 0.1.0 — 2015-04-06

## README

# RedmineCLI [![Build Status](https://travis-ci.org/a11n/RedmineCLI.svg)](https://travis-ci.org/a11n/RedmineCLI) [![Coverage Status](https://coveralls.io/repos/a11n/RedmineCLI/badge.svg)](https://coveralls.io/r/a11n/RedmineCLI) [![npm version](http://img.shields.io/npm/v/redmine-cli.svg?style=flat)](https://www.npmjs.com/package/redmine-cli) [![npm license](https://img.shields.io/npm/l/redmine-cli.svg)](https://www.npmjs.com/package/redmine-cli)
A NodeJS, stateful, console-based Redmine client.

## Installation & Setup
```shell
npm install -g redmine-cli
```
Connect to your Redmine instance.
```shell
>redmine connect http://your.server/redmine yourApiKey
```
**Note:** Unless you don't want to switch to another Redmine instance you only need to call this once.

You are all set, have fun :)

## Usage
Display available commands and options.
```shell
>redmine --help
Usage: redmine [options] [command]

Commands:
connect <url> <apiKey>                        Connect to server using API key for authentication.
projects                                      Display projects.
project <identifier>                          Display project details.
update-project [options] <identifier>         Update the specified project.
create-project [options] <name> <identifier>  Create a new project.
issues [options]                              Display issues.
issue [options] <id>                          Display issue details.
update-issue [options] <id>                   Update the specified issue.
create-issue [options] <project> <subject>    Create a new issue.
statuses                                      Display available issue statuses.
trackers                                      Display available trackers.
priorities                                    Display available priorities.
users                                         Display users (requires admin priviliges).
user <id>                                     Display user details (requires admin priviliges).
open <id>                                     Open issue in default browser.


Options:
  -h, --help     output usage information
  -V, --version  output the version number
```

Or display the options of a certain command.
```shell
>redmine issues --help
  Usage: issues [options]

  Display issues.

  Options:
    -h, --help                 output usage information
    -p, --project <project>    Only display issues for the specified project.
    -P, --priority <priority>  Only display issues with specified priority.
    -a, --assignee <assignee>  Only display issues for the specified assignee.
    -s, --status <status>      Only display issues with the specified status.
    -t, --tracker <tracker>    Only display issues for the specified tracker.
    -m, --me                   Only display issues assigned to me.
    -o, --open                 Only display open issues.
    -c, --closed               Only display closed issues.
```

## Example
Display all issues assigned to you with status `New`.
```shell
>redmine issues --me --status=New
ID  TRACKER  STATUS  PRIORITY  ASSIGNEE        SUBJECT
#2  Bug      New     High      Admin Istrator  This is a bug.
#1  Feature  New     Urgent    Admin Istrator  This is a feature.
```

Display a certain issue with history.
```shell
>redmine issue 2 --history
BUG #2
This is a feature.
Added by Admin Istrator a month ago. Updated a day ago.

STATUS  PRIORITY  ASSIGNEE
New     Normal    Admin Istrator

DESCRIPTION
This is a feature description.
HISTORY
 * Updated by Admin Istrator 21 days ago.
   Status changed from 'In Progress' to 'New'.
 * Updated by Admin Istrator 21 days ago.
   Tracker changed from 'Feature' to 'Bug'.
 * Updated by Admin Istrator 21 days ago.
   Assignee changed from 'nobody' to 'John Doe'.
 * Updated by Admin Istrator 14 days ago.
   Assignee changed from 'John Doe' to 'Admin Istrator'.
 * Updated by Admin Istrator a day ago.
   Priority changed from 'High' to 'Normal'.
```
**Note:** In order to resolve some properties within the history, displaying an issue with history may take a few moments longer. If you are not interested in the history just skip the according option.

## Remark
It's still under ~~active~~ development!

## Changelog
### v0.8.0
* New features
 * Update projects
 * Create projects
* Improvements
 * Extended issue details

### v0.7.0
* New features
  * Update Issues
  * Create Issues
  * Display user details
* Improved stability
  * 100% test coverage

### v0.6.0
* Several improvements
  * Memberlist in project details is now grouped by role
  * Removed table borders to be able to display more actual data on screen
  * Added bold formatting for section headers
  * Connect command is now validating provided `url`and `apiKey`
  * Enhanced some templates to either hide sections when no data is set or to display 'XX not set' message
* New features
  * Filters for issue list do now accept human readable names instead of internal ids
  * Issue details may now also be displayed with issue history
  * Added new 'users' command to display list of users
* Fixes
  * Fixed text of some error messages

---
_Source: https://npm.io/package/redmine-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
