Skip to content

hesedcasa/gchat

Repository files navigation

gchat

CLI for Google Chat API interaction

Version Downloads/week

Install

sdkck plugins install @hesed/gchat

Usage

$ npm install -g @hesed/gchat
$ gchat COMMAND
running command...
$ gchat (--version)
@hesed/gchat/0.2.2 linux-x64 node-v20.20.0
$ gchat --help [COMMAND]
USAGE
  $ gchat COMMAND
...

Commands

gchat gchat config add-token SPACEID TOKEN

Add or update an API token for a Google Chat space

USAGE
  $ gchat gchat config add-token SPACEID TOKEN

ARGUMENTS
  SPACEID  Google Chat space ID
  TOKEN    API token for this space

DESCRIPTION
  Add or update an API token for a Google Chat space

EXAMPLES
  $ gchat gchat config add-token AAQAKA6hsFw your-space-token

See code: src/commands/gchat/config/add-token.ts

gchat gchat config set-key KEY

Set the Google Chat API key in the config file

USAGE
  $ gchat gchat config set-key KEY

ARGUMENTS
  KEY  Google Chat API key

DESCRIPTION
  Set the Google Chat API key in the config file

EXAMPLES
  $ gchat gchat config set-key your-api-key

See code: src/commands/gchat/config/set-key.ts

gchat gchat create-message SPACEID MESSAGE

Send a message to a Google Chat space

USAGE
  $ gchat gchat create-message SPACEID MESSAGE [-f] [--toon]

ARGUMENTS
  SPACEID  Google Chat space ID
  MESSAGE  Message text to send

FLAGS
  -f, --formatted  Enable formatted text (bold, italic, links)
      --toon       Format output as toon

DESCRIPTION
  Send a message to a Google Chat space

EXAMPLES
  $ gchat gchat create-message AAQAKA6hsFw "Hello team"

  $ gchat gchat create-message AAQAKA6hsFw "*Bold message*" --formatted

  $ gchat gchat create-message AAQAKA6hsFw "<https://example.com|Click here>" -f

See code: src/commands/gchat/create-message.ts

gchat gchat reply-message THREADNAME MESSAGE

Reply to a message thread in Google Chat

USAGE
  $ gchat gchat reply-message THREADNAME MESSAGE [-f] [--toon]

ARGUMENTS
  THREADNAME  Thread name (e.g. spaces/SPACE_ID/threads/THREAD_ID)
  MESSAGE     Message text to send

FLAGS
  -f, --formatted  Enable formatted text (bold, italic, links)
      --toon       Format output as toon

DESCRIPTION
  Reply to a message thread in Google Chat

EXAMPLES
  $ gchat gchat reply-message spaces/AAQAKA6hsFw/threads/D1NI3W2B6vA "Reply here"

  $ gchat gchat reply-message spaces/AAQAKA6hsFw/threads/D1NI3W2B6vA "*Bold reply*" --formatted

See code: src/commands/gchat/reply-message.ts

About

CLI for Google Chat API interaction

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors