Command reference

oko-cli slack post

Posts a message through Oko’s exact Slack webhook or bot credential.

Invocation

oko-cli slack post --channel C [--thread-ts TS] {--text TEXT | --text-file PATH}

Inputs and options

  • Required message via --text or --text-file.
  • --channel is required for bot-token delivery and may come from local config.
  • --thread-ts replies in a thread.

Output and state effect

  • Posts one Slack message through the configured webhook or bot token.

Refusals and safe exits

  • Refuses --webhook/--token arguments, missing message text, unreadable text files, missing exact credentials, missing bot channel, non-Slack HTTPS webhooks, and unsuccessful Slack responses.