@elizaos/cli 1.0.0-beta.51 → 1.0.0-beta.53
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 +125 -43
- package/dist/assets/index-2Kbna80c.js +7501 -0
- package/dist/assets/index-2Kbna80c.js.br +0 -0
- package/dist/assets/index-2Kbna80c.js.map +1 -0
- package/dist/assets/index-D-_Bn7hb.js +140868 -0
- package/dist/assets/index-D-_Bn7hb.js.map +1 -0
- package/dist/assets/index-D7yixpTW.css +1 -0
- package/dist/assets/index-D7yixpTW.css.br +0 -0
- package/dist/assets/vendor-DaQtate6.js +3318 -0
- package/dist/assets/vendor-DaQtate6.js.br +0 -0
- package/dist/assets/vendor-DaQtate6.js.map +1 -0
- package/dist/{chunk-G72RDFAX.js → chunk-7PL4PYLO.js} +3 -5
- package/dist/chunk-DEPCHBQW.js +374 -0
- package/dist/{chunk-UESABMEG.js → chunk-ERK6VXJW.js} +232 -236
- package/dist/{chunk-CQV7L2GR.js → chunk-HLZ5IENK.js} +43 -28
- package/dist/{chunk-EXDEG4DE.js → chunk-JDGKH55Y.js} +87 -92
- package/dist/{chunk-GO32HPNU.js → chunk-LE4FHDSO.js} +15 -25
- package/dist/{chunk-2TOL3HJZ.js → chunk-NXCNTKQC.js} +4 -6
- package/dist/{chunk-KNPMZXPU.js → chunk-P2T7CVJS.js} +50 -39
- package/dist/{chunk-WPKIVAXG.js → chunk-RJJTIDD2.js} +14 -18
- package/dist/{chunk-H3ZKW6Q3.js → chunk-SHPZMT5X.js} +97 -4
- package/dist/{chunk-BBS57BV5.js → chunk-SVTNOUN7.js} +7409 -4855
- package/dist/chunk-W4LNCUVN.js +3549 -0
- package/dist/{chunk-ER4WYVPZ.js → chunk-XPARH4Z6.js} +5445 -1395
- package/dist/chunk-YXNSLRWC.js +6416 -0
- package/dist/commands/agent.js +3 -5
- package/dist/commands/create.d.ts +2 -2
- package/dist/commands/create.js +5 -7
- package/dist/commands/dev.js +4 -6
- package/dist/commands/env.d.ts +2 -2
- package/dist/commands/env.js +4 -6
- package/dist/commands/plugins.js +4 -6
- package/dist/commands/publish.js +5 -7
- package/dist/commands/setup-monorepo.js +4 -6
- package/dist/commands/start.d.ts +1 -2
- package/dist/commands/start.js +9 -14
- package/dist/commands/tee.js +3 -3
- package/dist/commands/test.js +8 -11
- package/dist/commands/update.d.ts +6 -2
- package/dist/commands/update.js +6 -8
- package/dist/{eliza-4JKN4CMJ.js → eliza-F32HYVGC.js} +1 -1
- package/dist/index.html +3 -2
- package/dist/index.js +21 -27
- package/dist/{registry-LGF3YSOM.js → registry-FEME5DPV.js} +3 -5
- package/package.json +12 -7
- package/templates/project-starter/package.json +3 -3
- package/templates/project-starter/src/index.ts +52 -190
- package/templates/project-starter/tsconfig.json +2 -2
- package/dist/assets/index-DvGU9vjd.js +0 -81858
- package/dist/assets/index-DvGU9vjd.js.map +0 -1
- package/dist/assets/index-GIb0aIQh.js +0 -4245
- package/dist/assets/index-GIb0aIQh.js.br +0 -0
- package/dist/assets/index-GIb0aIQh.js.map +0 -1
- package/dist/assets/index-r3V056Ne.css +0 -1
- package/dist/assets/index-r3V056Ne.css.br +0 -0
- package/dist/chunk-HRNFSMKW.js +0 -718
- package/dist/chunk-IMNULBEQ.js +0 -6448
- package/dist/chunk-LMPPG6SC.js +0 -78105
- package/dist/chunk-RZMUGEUO.js +0 -2054
- package/dist/chunk-VMUYWE7S.js +0 -268
- package/dist/chunk-VN7BGJ3T.js +0 -113
- package/dist/chunk-YF6F67B3.js +0 -96
- package/dist/commands/update-cli.d.ts +0 -10
- package/dist/commands/update-cli.js +0 -19
- package/dist/esm-CDFO4YCA.js +0 -1707
- package/dist/execa-XT6K7JNJ.js +0 -21
- package/dist/pino-pretty-UQPCTWL5.js +0 -2550
package/README.md
CHANGED
|
@@ -26,14 +26,20 @@ Below is a comprehensive reference for all ElizaOS CLI commands, including their
|
|
|
26
26
|
|
|
27
27
|
#### `elizaos create [name]`
|
|
28
28
|
|
|
29
|
-
Initialize a new project or
|
|
29
|
+
Initialize a new project, plugin, or agent.
|
|
30
30
|
|
|
31
31
|
- **Arguments:**
|
|
32
|
-
- `[name]`: Name for the project or
|
|
32
|
+
- `[name]`: Name for the project, plugin, or agent (optional)
|
|
33
33
|
- **Options:**
|
|
34
34
|
- `-d, --dir <dir>`: Installation directory (default: `.`)
|
|
35
|
-
- `-y, --yes`: Skip confirmation (default: `false`)
|
|
36
|
-
- `-t, --type <type>`: Type
|
|
35
|
+
- `-y, --yes`: Skip confirmation and use defaults (default: `false`)
|
|
36
|
+
- `-t, --type <type>`: Type to create: 'project', 'plugin', or 'agent' (default: 'project')
|
|
37
|
+
|
|
38
|
+
**Important notes:**
|
|
39
|
+
|
|
40
|
+
- Projects include a knowledge directory and a prompt for database selection (pglite or postgres)
|
|
41
|
+
- Plugins are automatically prefixed with "plugin-" if the prefix is missing
|
|
42
|
+
- Agents are created as JSON character definition files in the current directory
|
|
37
43
|
|
|
38
44
|
### Development
|
|
39
45
|
|
|
@@ -43,8 +49,30 @@ Start the project or plugin in development mode and rebuild on file changes.
|
|
|
43
49
|
|
|
44
50
|
- **Options:**
|
|
45
51
|
- `-c, --configure`: Reconfigure services and AI models
|
|
46
|
-
- `-char, --character
|
|
52
|
+
- `-char, --character [paths...]`: Character file(s) to use - accepts paths or URLs
|
|
47
53
|
- `-b, --build`: Build the project before starting
|
|
54
|
+
- `-p, --port <port>`: Port number to run the server on
|
|
55
|
+
|
|
56
|
+
**Character Handling:**
|
|
57
|
+
|
|
58
|
+
The `dev` command supports flexible character specification:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
# Space-separated paths
|
|
62
|
+
elizaos dev --character file1.json file2.json
|
|
63
|
+
|
|
64
|
+
# Comma-separated paths
|
|
65
|
+
elizaos dev --character "file1.json,file2.json"
|
|
66
|
+
|
|
67
|
+
# Mixed formats with optional quotes
|
|
68
|
+
elizaos dev --character "'file1.json'" "file2.json"
|
|
69
|
+
|
|
70
|
+
# With or without .json extension
|
|
71
|
+
elizaos dev --character assistant # .json extension added automatically
|
|
72
|
+
|
|
73
|
+
# URLs are also supported
|
|
74
|
+
elizaos dev --character https://example.com/characters/assistant.json
|
|
75
|
+
```
|
|
48
76
|
|
|
49
77
|
### Environment Management
|
|
50
78
|
|
|
@@ -54,15 +82,11 @@ Manage environment variables and secrets.
|
|
|
54
82
|
|
|
55
83
|
- **Subcommands:**
|
|
56
84
|
- `list`: List all environment variables
|
|
57
|
-
- Options: `--
|
|
58
|
-
- `edit-global`: Edit global environment variables
|
|
59
|
-
- Options: `-y, --yes`
|
|
85
|
+
- Options: `--local`
|
|
60
86
|
- `edit-local`: Edit local environment variables
|
|
61
87
|
- Options: `-y, --yes`
|
|
62
88
|
- `reset`: Reset all environment variables
|
|
63
89
|
- Options: `-y, --yes`
|
|
64
|
-
- `set-path <path>`: Set a custom path for the global environment file
|
|
65
|
-
- Options: `-y, --yes`
|
|
66
90
|
- `interactive`: Interactive environment variable management
|
|
67
91
|
- Options: `-y, --yes`
|
|
68
92
|
|
|
@@ -76,9 +100,14 @@ Clone ElizaOS monorepo from a specific branch (defaults to v2-develop).
|
|
|
76
100
|
- `-b, --branch <branch>`: Branch to install (default: `v2-develop`)
|
|
77
101
|
- `-d, --dir <directory>`: Destination directory (default: `./eliza`)
|
|
78
102
|
|
|
103
|
+
**Notes:**
|
|
104
|
+
|
|
105
|
+
- The destination directory must be empty or non-existent
|
|
106
|
+
- After cloning, follow the displayed instructions to install dependencies and build the project
|
|
107
|
+
|
|
79
108
|
### Plugin Management
|
|
80
109
|
|
|
81
|
-
#### `elizaos
|
|
110
|
+
#### `elizaos plugins <subcommand>`
|
|
82
111
|
|
|
83
112
|
Manage an ElizaOS plugin.
|
|
84
113
|
|
|
@@ -102,27 +131,29 @@ Manage ElizaOS agents.
|
|
|
102
131
|
- Options: `-j, --json` (output as JSON)
|
|
103
132
|
- `get` (alias: `g`): Get agent details
|
|
104
133
|
- Options:
|
|
105
|
-
- `-n, --name <
|
|
106
|
-
- `-j, --json`:
|
|
107
|
-
- `-o, --output <file>`:
|
|
134
|
+
- `-n, --name <n>`: Agent id, name, or index number from list
|
|
135
|
+
- `-j, --json`: Display JSON output in terminal
|
|
136
|
+
- `-o, --output <file>`: Save agent data to file
|
|
108
137
|
- `start` (alias: `s`): Start an agent
|
|
109
138
|
- Options:
|
|
110
|
-
- `-n, --name <n>`:
|
|
111
|
-
- `-j, --json <json>`: Character JSON string
|
|
139
|
+
- `-n, --name <n>`: Name of an existing agent to start
|
|
140
|
+
- `-j, --json <json>`: Character JSON configuration string
|
|
112
141
|
- `--path <path>`: Local path to character JSON file
|
|
113
|
-
- `--remote-character <url>`:
|
|
142
|
+
- `--remote-character <url>`: URL to remote character JSON file
|
|
114
143
|
- `stop` (alias: `st`): Stop an agent
|
|
115
144
|
- Options:
|
|
116
|
-
- `-n, --name <
|
|
145
|
+
- `-n, --name <n>`: Agent id, name, or index number from list
|
|
117
146
|
- `remove` (alias: `rm`): Remove an agent
|
|
118
147
|
- Options:
|
|
119
|
-
- `-n, --name <
|
|
148
|
+
- `-n, --name <n>`: Agent id, name, or index number from list
|
|
120
149
|
- `set`: Update agent configuration
|
|
121
150
|
- Options:
|
|
122
|
-
- `-n, --name <
|
|
151
|
+
- `-n, --name <n>`: Agent id, name, or index number from list
|
|
123
152
|
- `-c, --config <json>`: Agent configuration as JSON string
|
|
124
153
|
- `-f, --file <path>`: Path to agent configuration JSON file
|
|
125
154
|
|
|
155
|
+
**Note:** All agent commands support interactive mode when run without key parameters.
|
|
156
|
+
|
|
126
157
|
### Publishing
|
|
127
158
|
|
|
128
159
|
#### `elizaos publish`
|
|
@@ -141,10 +172,37 @@ Publish a plugin or project to the registry, GitHub, or npm.
|
|
|
141
172
|
Start the Eliza agent with configurable plugins and services.
|
|
142
173
|
|
|
143
174
|
- **Options:**
|
|
144
|
-
- `-c, --configure`:
|
|
145
|
-
- `-char, --character
|
|
175
|
+
- `-c, --configure`: Force reconfiguration of services and AI models
|
|
176
|
+
- `-char, --character [paths...]`: Character file(s) to use - accepts paths or URLs
|
|
146
177
|
- `-b, --build`: Build the project before starting
|
|
147
|
-
- `-
|
|
178
|
+
- `-p, --port <port>`: Port to listen on (default: 3000)
|
|
179
|
+
|
|
180
|
+
**Character Handling:**
|
|
181
|
+
|
|
182
|
+
The `start` command accepts characters in various formats:
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
# Multiple character files (space-separated)
|
|
186
|
+
elizaos start --character file1.json file2.json
|
|
187
|
+
|
|
188
|
+
# Comma-separated format
|
|
189
|
+
elizaos start --character "file1.json,file2.json"
|
|
190
|
+
|
|
191
|
+
# With or without quotes
|
|
192
|
+
elizaos start --character "'file1.json'" "file2.json"
|
|
193
|
+
|
|
194
|
+
# Extension-optional (.json added automatically if missing)
|
|
195
|
+
elizaos start --character character1
|
|
196
|
+
|
|
197
|
+
# URLs are supported
|
|
198
|
+
elizaos start --character https://example.com/characters/assistant.json
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
If any character files fail to load, ElizaOS will:
|
|
202
|
+
|
|
203
|
+
- Log errors for the failed characters
|
|
204
|
+
- Continue starting with any successfully loaded characters
|
|
205
|
+
- Fall back to the default Eliza character if no characters loaded successfully
|
|
148
206
|
|
|
149
207
|
### Testing
|
|
150
208
|
|
|
@@ -154,7 +212,7 @@ Run tests for Eliza agent plugins.
|
|
|
154
212
|
|
|
155
213
|
- **Options:**
|
|
156
214
|
- `-p, --port <port>`: Port to listen on
|
|
157
|
-
- `-pl, --plugin <
|
|
215
|
+
- `-pl, --plugin <n>`: Name of plugin to test
|
|
158
216
|
- `-sp, --skip-plugins`: Skip plugin tests
|
|
159
217
|
- `-spt, --skip-project-tests`: Skip project tests
|
|
160
218
|
- `-sb, --skip-build`: Skip building before running tests
|
|
@@ -167,38 +225,44 @@ Manage TEE deployments with Phala vendor.
|
|
|
167
225
|
|
|
168
226
|
- **Subcommands:**
|
|
169
227
|
- `deploy`: Deploy to TEE cloud
|
|
170
|
-
- Options: `-t, --type <type>`, `-m, --mode <mode>`, `-n, --name <
|
|
228
|
+
- Options: `-t, --type <type>`, `-m, --mode <mode>`, `-n, --name <n>`, `-c, --compose <compose>`, `-e, --env <env...>`, `--env-file <envFile>`, `--debug`
|
|
171
229
|
- `teepods`: Query the teepods
|
|
172
230
|
- `images`: Query the images
|
|
173
231
|
- Options: `--teepod-id <teepodId>`
|
|
174
232
|
- `upgrade`: Upgrade the TEE CLI
|
|
175
233
|
- Options: `-m, --mode <mode>`, `--app-id <appId>`, `-e, --env <env...>`, `--env-file <envFile>`, `-c, --compose <compose>`
|
|
176
234
|
- `build-compose`: Build a docker-compose file for Eliza Agent
|
|
177
|
-
- Options: `-i, --image <
|
|
235
|
+
- Options: `-i, --image <n>`, `-u, --username <n>`, `-t, --tag <tag>`, `-c, --character <path>`, `-e, --env-file <path>`, `-v, --version <version>`
|
|
178
236
|
- `publish`: Publish Docker image to Docker Hub
|
|
179
|
-
- Options: `-i, --image <
|
|
237
|
+
- Options: `-i, --image <n>`, `-u, --username <n>`, `-t, --tag <tag>`
|
|
180
238
|
|
|
181
239
|
### Updates
|
|
182
240
|
|
|
183
241
|
#### `elizaos update`
|
|
184
242
|
|
|
185
|
-
Update ElizaOS
|
|
243
|
+
Update ElizaOS CLI and project dependencies to the latest versions.
|
|
186
244
|
|
|
187
245
|
- **Options:**
|
|
188
|
-
- `-c, --check`: Check for available updates without applying them
|
|
246
|
+
- `-c, --check`: Check for available updates without applying them - shows what packages would be updated
|
|
189
247
|
- `-sb, --skip-build`: Skip building after updating
|
|
248
|
+
- `--cli`: Update only the global CLI installation (without updating packages)
|
|
249
|
+
- `--packages`: Update only packages (without updating the CLI)
|
|
250
|
+
|
|
251
|
+
### Environment Configuration
|
|
252
|
+
|
|
253
|
+
#### `elizaos env`
|
|
190
254
|
|
|
191
|
-
|
|
255
|
+
Manage environment variables and secrets.
|
|
192
256
|
|
|
193
|
-
-
|
|
194
|
-
-
|
|
195
|
-
-
|
|
196
|
-
-
|
|
197
|
-
-
|
|
198
|
-
-
|
|
199
|
-
-
|
|
200
|
-
-
|
|
201
|
-
-
|
|
257
|
+
- **Subcommands:**
|
|
258
|
+
- `list`: List all environment variables
|
|
259
|
+
- Options: `--system`, `--local`
|
|
260
|
+
- `edit-local`: Edit local environment variables
|
|
261
|
+
- Options: `-y, --yes`
|
|
262
|
+
- `reset`: Reset environment variables and clean up database/cache files
|
|
263
|
+
- Options: `-y, --yes`
|
|
264
|
+
- `interactive`: Start interactive environment variable manager
|
|
265
|
+
- Options: `-y, --yes`
|
|
202
266
|
|
|
203
267
|
### Publishing
|
|
204
268
|
|
|
@@ -212,6 +276,24 @@ Publishes the current project or plugin.
|
|
|
212
276
|
|
|
213
277
|
## Development Guide
|
|
214
278
|
|
|
279
|
+
### Developing Agents
|
|
280
|
+
|
|
281
|
+
Agents are character definitions for ElizaOS bots.
|
|
282
|
+
|
|
283
|
+
1. **Create a new agent character**:
|
|
284
|
+
|
|
285
|
+
```bash
|
|
286
|
+
elizaos create my-assistant --type agent
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
This creates a JSON file (my-assistant.json) with the character definition.
|
|
290
|
+
|
|
291
|
+
2. **Start an agent with the character**:
|
|
292
|
+
|
|
293
|
+
```bash
|
|
294
|
+
elizaos agent start --path my-assistant.json
|
|
295
|
+
```
|
|
296
|
+
|
|
215
297
|
### Developing Plugins
|
|
216
298
|
|
|
217
299
|
Plugins extend the functionality of ElizaOS agents by providing additional capabilities or integrations.
|
|
@@ -220,7 +302,7 @@ Plugins extend the functionality of ElizaOS agents by providing additional capab
|
|
|
220
302
|
|
|
221
303
|
```bash
|
|
222
304
|
elizaos create my-plugin --type plugin
|
|
223
|
-
cd plugin-my-plugin
|
|
305
|
+
cd plugin-my-plugin # Note: CLI automatically adds plugin- prefix if not present
|
|
224
306
|
```
|
|
225
307
|
|
|
226
308
|
2. **Structure of a plugin**:
|
|
@@ -305,13 +387,13 @@ Plugins extend the functionality of ElizaOS agents by providing additional capab
|
|
|
305
387
|
|
|
306
388
|
```bash
|
|
307
389
|
# Test publishing process
|
|
308
|
-
elizaos
|
|
390
|
+
elizaos plugins publish --test
|
|
309
391
|
|
|
310
392
|
# Publish to registry
|
|
311
|
-
elizaos
|
|
393
|
+
elizaos plugins publish
|
|
312
394
|
|
|
313
395
|
# Or publish to npm
|
|
314
|
-
elizaos
|
|
396
|
+
elizaos plugins publish --npm
|
|
315
397
|
```
|
|
316
398
|
|
|
317
399
|
### Developing Projects (Agents)
|