@rakazo/cli 0.1.0 → 0.1.1
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 +43 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Rakazo CLI
|
|
2
|
+
|
|
3
|
+
Chat with your Rakazo bots and delegate tasks from a terminal or script.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
Requires Node.js 24 or later.
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install --global @rakazo/cli
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Connect to Rakazo
|
|
14
|
+
|
|
15
|
+
In Rakazo, open **Settings → API keys** and create a key. Run `rakazo login`
|
|
16
|
+
and enter your Rakazo server URL and API key when prompted.
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
rakazo login
|
|
20
|
+
rakazo bots
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Chat and delegate tasks
|
|
24
|
+
|
|
25
|
+
Use a bot's exact name or the ID shown by `rakazo bots`. The examples use a bot
|
|
26
|
+
named `Research`.
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
rakazo chat Research "Summarize this week's release notes"
|
|
30
|
+
rakazo task create Research "Compare these three vendors and report back"
|
|
31
|
+
rakazo task get TASK_ID
|
|
32
|
+
rakazo task wait TASK_ID
|
|
33
|
+
rakazo task send TASK_ID "Include pricing in the comparison"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Replace `TASK_ID` with the ID printed by `rakazo task create`. Add `--wait` to
|
|
37
|
+
`task create` or `task send` to wait in the same command. Add `--json` to bot,
|
|
38
|
+
chat, or task commands for machine-readable output. For scripts, set
|
|
39
|
+
`RAKAZO_URL` and `RAKAZO_API_KEY` to override the saved login.
|
|
40
|
+
|
|
41
|
+
Run `rakazo --help` for command options. See the
|
|
42
|
+
[Rakazo API documentation](https://github.com/elie222/rakazo/blob/main/docs/bot-api.md)
|
|
43
|
+
for more on authentication, tasks, and callbacks.
|