@open-wa/cli 5.1.0 → 5.3.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.
- package/README.md +11 -11
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
# @open-wa/cli
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
|
|
10
|
+
npm install --global @open-wa/cli@5.1.0
|
|
17
11
|
```
|
|
18
12
|
|
|
19
|
-
##
|
|
13
|
+
## Start the API server
|
|
20
14
|
|
|
21
15
|
```bash
|
|
22
|
-
wa-
|
|
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/
|
|
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.
|
|
3
|
+
"version": "5.3.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.
|
|
22
|
-
"@open-wa/hyperemitter": "5.
|
|
23
|
-
"@open-wa/wa-automate": "5.
|
|
21
|
+
"@open-wa/core": "5.3.0",
|
|
22
|
+
"@open-wa/hyperemitter": "5.3.0",
|
|
23
|
+
"@open-wa/wa-automate": "5.3.0",
|
|
24
24
|
"ink": "^7.1.1",
|
|
25
25
|
"qrcode": "^1.5.4",
|
|
26
26
|
"react": "^19.3.0",
|