CLI for Google Chat API interaction
sdkck plugins install @hesed/gchat$ 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
...gchat gchat config add-token SPACEID TOKENgchat gchat config set-key KEYgchat gchat create-message SPACEID MESSAGEgchat gchat reply-message THREADNAME MESSAGE
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
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
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
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