jordanbrauer / slack-cli
Requires
- php: >=7.0
- guzzlehttp/guzzle: ^6.3
- monolog/monolog: ^1.23
- symfony/config: ^3.3
- symfony/console: ^3.3
- symfony/dependency-injection: ^3.3
- symfony/dotenv: ^3.3
- symfony/filesystem: ^3.3
- symfony/finder: ^3.3
- symfony/property-access: ^3.3
- symfony/serializer: ^3.3
- vlucas/phpdotenv: ^2.4
Requires (Dev)
- phpunit/phpunit: ^6.2
This package is auto-updated.
Last update: 2024-11-16 13:10:57 UTC
README
System Requirements
- PHP >= 7.0
- Composer
Setup
Installation
If you meet the system requirements for Slack CLI, copy and paste the following installation script into your terminal from the directory you wish to install Slack CLI in.
# Slack CLI installation script git clone https://github.com/jordanbrauer/slack-cli.git \ && cd slack-cli \ && composer install --optimize-autoloader \ && bin/slack --version;
Configuration
Make a copy of the .env.sample
file and name it .env
. Fill out the environment variables that you need.
Note: The only required environment variable is SLACK_API_TOKEN
.
SLACK_API_TOKEN="xoxp-YOUR-SUPER-SECRET-SLACK-API-TOKEN" SLACK_CLIENT_ID="" SLACK_SECRET="" SLACK_VERIFICATION_TOKEN=""
Basic Usage
Once you've installed and configured slack-cli correctly, you can execute bin/slack list
for a complete list of commands, each with their own descriptions, help blocks, and breakdown of arguments and options.
Get all commands for Slack CLI
$ bin/slack list
Testing
Running the following command from the project root will run the programs unit test suite,
$ composer test