PHPackages                             cleentfaar/slack-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. cleentfaar/slack-cli

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

cleentfaar/slack-cli
====================

Command-line application for interacting with the Slack API.

0.20.1(9y ago)27515[1 PRs](https://github.com/cleentfaar/slack-cli/pulls)MITPHPPHP &gt;=5.5

Since Dec 14Pushed 5y ago3 watchersCompare

[ Source](https://github.com/cleentfaar/slack-cli)[ Packagist](https://packagist.org/packages/cleentfaar/slack-cli)[ Docs](http://cleentfaar.github.io/slack-cli/)[ RSS](/packages/cleentfaar-slack-cli/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (5)Versions (15)Used By (0)

Slack CLI [![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/cleentfaar/slack-cli/blob/master/LICENSE.md)
=========================================================================================================================================================================================================================================================================================================================================================

[](#slack-cli-)

Command-line application for interacting with the [Slack API library](https://github.com/cleentfaar/slack). Provides CLI commands for all of the API methods currently available using a single `phar` executable.

[![Build Status](https://camo.githubusercontent.com/9b83ea9ff4a8a00271aecc046653c54bb6f0bbc4f8b62c19978e58153eb381d0/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636c65656e74666161722f736c61636b2d636c692f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/cleentfaar/slack-cli)[![Coverage Status](https://camo.githubusercontent.com/58cc03178869109b887fb45d69f99ea2af05a9623b47a13d5c3d1561df2ba80f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f636c65656e74666161722f736c61636b2d636c692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/cleentfaar/slack-cli/code-structure)[![Quality Score](https://camo.githubusercontent.com/c99398f2aa8e161e7beec7446b467cd7bc30fea8a02ca95d7abbceaa2ea783db/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f636c65656e74666161722f736c61636b2d636c692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/cleentfaar/slack-cli)[![Latest Version](https://camo.githubusercontent.com/5d913fe2da33ccd438d7c5e7ca239cb3ab0ed221c577dcded07207167d3033e4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f636c65656e74666161722f736c61636b2d636c692e7376673f7374796c653d666c61742d737175617265)](https://github.com/cleentfaar/slack-cli/releases)[![Total Downloads](https://camo.githubusercontent.com/a615c33a4ca6a69c66de3adcf634c75b19e691040e600dbd8ce4da14beb63748/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c65656e74666161722f736c61636b2d636c692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cleentfaar/slack-cli)

### Quick look

[](#quick-look)

Sending a message to a Slack channel (in this case '#general')

```
$ slack.phar chat:post-message general "Hello world!"
```

Update the application

```
slack.phar self:update
```

Check out the documentation below for more examples and instructions on how to install the `.phar` file.

### Installation / Usage

[](#installation--usage)

1. Download the [`slack.phar`](http://cleentfaar.github.io/slack-cli/downloads/slack-latest.phar) executable or use the installer.

    ```
    $ curl -sS http://cleentfaar.github.io/slack-cli/installer | php
    ```
2. Run Slack CLI: `php slack.phar`

#### Installation from Source

[](#installation-from-source)

To run tests, or develop Slack CLI itself, you must use the sources and not the phar file as described above. Before continuing, you should also install [Composer](https://getcomposer.org) either globally or in the cloned repository below.

1. Run `git clone https://github.com/cleentfaar/slack-cli.git`
2. Run Composer to get the dependencies: `cd slack-cli && composer install`

You can now run Slack CLI by executing the `./slack` script: `php ./slack`

#### Global installation (manual)

[](#global-installation-manual)

Follow instructions [in the documentation](https://github.com/cleentfaar/slack-cli/blob/master/src/CL/SlackCli/Resources/doc/installation.md)

### Documentation

[](#documentation)

- [Installation](https://github.com/cleentfaar/slack-cli/blob/master/src/CL/SlackCli/Resources/doc/installation.md) - Information on installing this package either globally or as a composer dependency.
- [Usage](https://github.com/cleentfaar/slack-cli/blob/master/src/CL/SlackCli/Resources/doc/usage.md) - A few simple examples on how to use some of the console commands provided by this package.

#### Detailed documentation

[](#detailed-documentation)

This package only provides a command-line interface to access the Slack API methods; if you want to get your hands dirty on how to use the payloads and responses in your own application, check out the library that this package implements: [Slack API library](https://github.com/cleentfaar/slack-cli).

### Contributing

[](#contributing)

Got a good idea for this project? Found a nasty bug that needs fixing? That's great! Before submitting your PR however, make sure it complies with the [contributing guide](https://github.com/cleentfaar/slack-cli/blob/master/src/CL/SlackCli/Resources/doc/contributing.md) to speed up the merging of your code.

### Related packages

[](#related-packages)

- [Slack](https://github.com/cleentfaar/slack) - Main library package consisting of the API client and model classes that adhere to the Slack API specs.
- [SlackBundle](https://github.com/cleentfaar/CLSlackBundle) - Symfony Bundle providing integration with the [Slack API library](https://github.com/cleentfaar/slack) above.

### Attributions

[](#attributions)

- The [Slack](https://slack.com/) staff, for making a great product and very clean API documentation.
- [MattKetmo](https://github.com/MattKetmo), for his [very useful article](http://moquet.net/blog/distributing-php-cli/)on distributing CLI applications and his `bump-version.sh` script.
- [Composer](https://github.com/composer/composer), for a shameless copy of their [installer script](https://getcomposer.org/installer)and relevant documentation.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

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 ~44 days

Recently: every ~95 days

Total

13

Last Release

3632d ago

PHP version history (2 changes)0.12.1PHP &gt;=5.4

0.18.3PHP &gt;=5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/14099cff9bb1840056d71facc7d248129646a0048ac348ba68648a1aa128f099?d=identicon)[cleentfaar](/maintainers/cleentfaar)

---

Top Contributors

[![cleentfaar](https://avatars.githubusercontent.com/u/795661?v=4)](https://github.com/cleentfaar "cleentfaar (16 commits)")

---

Tags

cliterminalslackcommand

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cleentfaar-slack-cli/health.svg)

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

###  Alternatives

[league/climate

PHP's best friend for the terminal. CLImate allows you to easily output colored text, special formats, and more.

1.9k14.0M272](/packages/league-climate)[helhum/typo3-console

A reliable and powerful command line interface for TYPO3 CMS

2939.0M192](/packages/helhum-typo3-console)[aplus/cli

Aplus Framework CLI Library

2301.7M6](/packages/aplus-cli)[laminas/laminas-cli

Command-line interface for Laminas projects

563.7M54](/packages/laminas-laminas-cli)[phalcon/cli-options-parser

Command line arguments/options parser.

181.0M7](/packages/phalcon-cli-options-parser)

PHPackages © 2026

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