Source: https://cli.nylas.com/docs/commands/slack-send

# nylas slack send

Send a message to a Slack channel.

Written by [Qasim Muhammad](https://cli.nylas.com/authors/qasim-muhammad) Staff SRE

Published February 13, 2026

Updated June 21, 2026

## What does nylas slack send do?

The nylas slack send command posts a message to any Slack channel your token has access to. Specify the channel with --channel and the message with --text. To reply in a thread, use the dedicated nylas slack reply command instead.

## Usage

```bash
nylas slack send --channel CHANNEL --text TEXT
```

## Flags

| Flag | Description |
| --- | --- |
| --json | Output as JSON |
| --no-color | Disable color output |
| --verbose(-v) | Enable verbose output |
| --config | Custom config file path |
| --help(-h) | Show help for the command |
| --limit | Limit results (most list commands) |
| --yes(-y) | Skip the send confirmation prompt |
| --channel | Channel ID or name |
| --text | Message text to send |
| --channel-id | Channel ID |

## Examples

The nylas slack send command posts a message to any Slack channel your token has access to.

### Send to a channel

```bash
nylas slack send --channel general --text "Deploy complete for v2.4.1"
```

### Skip the confirmation prompt in scripts

```bash
nylas slack send --channel deploys --text "Build #482 green" --yes
```

## Example output

```text
Send to #general as Alice Chen:
  "Hello team!"

✓ Message sent to #general
```

## Troubleshooting

### not_in_channel error

Invite the bot to the channel first with /invite @your-bot-name, or use a user token instead.

### Message sends but shows as bot instead of user

Bot tokens (xoxb-) always post as the bot. Use a user token (xoxp-) to post as yourself.

## Related commands

[nylas slack auth removeRemove stored Slack token](https://cli.nylas.com/docs/commands/slack-auth-remove)

[nylas slack auth setSet the Slack API token for workspace integration.](https://cli.nylas.com/docs/commands/slack-auth-set)

[nylas slack auth statusShow Slack auth status](https://cli.nylas.com/docs/commands/slack-auth-status)

[nylas slack channels infoShow channel details](https://cli.nylas.com/docs/commands/slack-channels-info)

[nylas slack channels listList channels.](https://cli.nylas.com/docs/commands/slack-channels-list)

[nylas slack messages listList recent messages in a Slack channel.](https://cli.nylas.com/docs/commands/slack-messages-list)

Run `nylas slack send --help` for full help output.
