# slack-ci-cli

> CLI tool for sending success and failure CI notifications to slack. Name and shame! :P

Latest version **1.0.3** (published 2016-11-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install slack-ci-cli
pnpm add slack-ci-cli
yarn add slack-ci-cli
bun add slack-ci-cli
```

Provides the commands `slacksuccess`, `slacklintfail`, `slacktestfail`, `slackbuildfail`, `slackdeployfail`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2016-11-05 |
| First published | 2016-11-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dolan Miu |
| Maintainers | dolanmiu |
| Keywords | slack, incoming, webhook, continuous, integration, bitbucket, notify |

## Links

- npm: https://www.npmjs.com/package/slack-ci-cli
- Repository: https://github.com/dolanmiu/slack-ci-cli
- Homepage: https://github.com/dolanmiu/slack-ci-cli#readme
- Issues: https://github.com/dolanmiu/slack-ci-cli/issues
- npm.io page: https://npm.io/package/slack-ci-cli

## Dependencies (3)

- [shelljs](https://npm.io/package/shelljs.md) ^0.7.5
- [slack-webhook](https://npm.io/package/slack-webhook.md) ^1.0.0
- [command-line-args](https://npm.io/package/command-line-args.md) ^3.0.1

## Recent versions

- 1.0.3 (latest) — 2016-11-05
- 1.0.2 — 2016-11-04
- 1.0.1 — 2016-11-04
- 1.0.0 — 2016-11-04

## README

Slack Continuous Integration CLI
=================
> This tool is intended to be used in conjunction with a CI system. 

> When a build is successful, or a failure, simply call the CLI command in your `package.json` or in the command line to push descriptive build notifications to slack!

> No need for complex configuration, fuss with cURL or silly shell scripts.

# Usage
1. Get `incoming-webhook` set up on Slack.
2. Install this plugin with `npm install slack-ci-cli`. You can also install this globally if you wish to use it within a Bitbucket Pipelines or Jenkins build script. It will still work.

You can use this in `package.json` `scripts` or run straight from a command line tool such as `bash`

```shell
slacksuccess --url=[YOUR_SLACK_URL_HERE]
```

```shell
slackbuildfail --url=[YOUR_SLACK_URL_HERE]
```

```shell
slacktestfail --url=[YOUR_SLACK_URL_HERE]
```

```shell
slackdeployfail --url=[YOUR_SLACK_URL_HERE]
```

```shell
slacklintfail --url=[YOUR_SLACK_URL_HERE]
```

You can add the optional `--humour` flag or `-h` to add a bit of flavour to your build messages :)

# Examples
It's generally good to store the Slack URL in a configuration variable if possible.
```shell
slacksuccess --url=$SLACK_URL
```

```shell
slacklintfail --url=$SLACK_URL --humour
```

```shell
slackbuildfail --url=$SLACK_URL -h
```

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