@open-wa/cli 5.1.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +11 -11
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -1,30 +1,30 @@
1
1
  # @open-wa/cli
2
2
 
3
- > Command line tool for the Open-WA WhatsApp automation stack.
3
+ `@open-wa/cli` provides the `wa` command for starting and managing an Open-WA session and API server. The CLI delegates session startup to `@open-wa/wa-automate`.
4
4
 
5
5
  Part of the [@open-wa v5 monorepo](https://github.com/open-wa/wa-automate-nodejs).
6
6
 
7
- ## Features
8
-
9
- - **Easy API mode**: Start a WhatsApp server with a single command.
10
- - **Session Auth**: Interactive QR code scanning in the terminal.
11
- - **Diagnostics**: Built-in tools for testing connections and drivers.
12
-
13
7
  ## Install
14
8
 
15
9
  ```bash
16
- pnpm add -g @open-wa/cli
10
+ npm install --global @open-wa/cli@5.1.0
17
11
  ```
18
12
 
19
- ## Usage
13
+ ## Start the API server
20
14
 
21
15
  ```bash
22
- wa-automate --help
16
+ wa --session-id main --host 127.0.0.1 --port 8080
23
17
  ```
24
18
 
19
+ Scan the QR code shown in the terminal to sign in. The server listens on `127.0.0.1:8080`; use `wa --help` to see the available options. Add an API key with `--api-key` when clients need authentication, and keep the server on loopback or a private network unless you have configured an appropriate access boundary.
20
+
21
+ ## Remote clients
22
+
23
+ Use [`@open-wa/socket-client`](https://openwa.dev/docs/client-and-integrations/socket-client) to send commands to this server and receive runtime events.
24
+
25
25
  ## Documentation
26
26
 
27
- See the [CLI reference](https://openwa.dev/reference/cli) on our docs site.
27
+ See the [CLI reference](https://openwa.dev/docs/guides/configuration-and-cli).
28
28
 
29
29
  ## License
30
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/cli",
3
- "version": "5.1.0",
3
+ "version": "5.2.0",
4
4
  "description": "CLI for @open-wa WhatsApp automation - Easy API mode",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.cjs",
@@ -18,9 +18,9 @@
18
18
  }
19
19
  },
20
20
  "dependencies": {
21
- "@open-wa/core": "5.1.0",
22
- "@open-wa/hyperemitter": "5.1.0",
23
- "@open-wa/wa-automate": "5.1.0",
21
+ "@open-wa/core": "5.2.0",
22
+ "@open-wa/hyperemitter": "5.2.0",
23
+ "@open-wa/wa-automate": "5.2.0",
24
24
  "ink": "^7.1.1",
25
25
  "qrcode": "^1.5.4",
26
26
  "react": "^19.3.0",