Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mehdibo/SlackBatch

Send batch invites from the CLI.
https://github.com/mehdibo/SlackBatch

Last synced: 2 months ago
JSON representation

Send batch invites from the CLI.

Awesome Lists containing this project

README

        

# SlackBatch
Send Slack workspace invites to multiple e-mails from the CLI.

# Usage

```sh
$>./slackbatch.php -h
USAGE:
slackbatch.php

Send batch Slack invitations using the Slack API.

OPTIONS:
--f Source options: file

--fail-abort If an invite fails abort sending.

--token Slack legacy auth token.

-h, --help Display this help screen and exit immeadiately.

--no-colors Do not use any colors in output. Useful when piping output to other tools or files.

--loglevel Minimum level of messages to display. Default is info. Valid levels are: debug, info, notice, success,
warning, error, critical, alert, emergency.

ARGUMENTS:
E-mails source.
```

You need a legacy token, you can get one [from here](https://api.slack.com/custom-integrations/legacy-tokens).

Currently SlackBatch only handles files, so you need to pass a file containing new line separated e-mails.

## Example:
```sh
$> ./slackbatch.php --f file --token "MY_LEGACY_TOKEN" emails.txt
✓ Invite sent to: [email protected]
✓ Invite sent to: [email protected]
✓ Invite sent to: [email protected]
✓ Invite sent to: [email protected]
✓ Invite sent to: [email protected]
✓ Invite sent to: [email protected]
```