wtsc-client
v1.0.1
Published
Native CLI client for WhatsApp Gateway with the `wtsc` command.
Readme
wtsc-client
CLI package for the WhatsApp Gateway client.
Install
npm install -g wtsc-clientConfigure
Resolve the gateway URL in this order:
--base-url <url>WHATSAPP_GATEWAY_BASE_URL- config file
Config file path:
%APPDATA%/wtsc/config.json$XDG_CONFIG_HOME/wtsc/config.json~/.config/wtsc/config.json
Persist a base URL:
wtsc config --base-url http://localhost:3000Inspect the current config:
wtsc configIf no source provides a base URL, the CLI exits with an error.
Usage
wtsc help
wtsc send --to [email protected] --text "Hello"
wtsc list --chat-id [email protected] --limit 10
wtsc next --chat-id [email protected] --after-id ABGGFlA5FpafAgo6EhQPublish From This Repository
npm run build
npm run pack:client
npm run publish:clientThe packaged CLI is built from client/src into client/dist.
For GitHub Actions publishing, configure npm Trusted Publishing for the workflow file publish-client.yml. The CI publish flow does not use an NPM_TOKEN.
