@elizaos/cli 1.0.0-beta.76 → 1.0.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 +321 -58
- package/dist/assets/{index-BIHsjVvW.js → index-DLCBfFYd.js} +10219 -10388
- package/dist/assets/{index-BIHsjVvW.js.map → index-DLCBfFYd.js.map} +1 -1
- package/dist/assets/{index-BtftZiId.js → index-DNxLn4OZ.js} +3 -3
- package/dist/assets/{index-BtftZiId.js.map → index-DNxLn4OZ.js.map} +1 -1
- package/dist/assets/index-ljsW7JJO.css +1 -0
- package/dist/assets/index-ljsW7JJO.css.br +0 -0
- package/dist/assets/{vendor-BU4KHesT.js → vendor-CFQmvqmR.js} +16 -8
- package/dist/assets/vendor-CFQmvqmR.js.map +1 -0
- package/dist/{chunk-W4LNCUVN.js → chunk-5J7S2CSH.js} +21 -799
- package/dist/{chunk-5EU55Q35.js → chunk-5R4LDP3N.js} +37 -23
- package/dist/chunk-CTMXYF6P.js +70 -0
- package/dist/{chunk-QXVIZ77H.js → chunk-ENUVIKE2.js} +19 -89
- package/dist/chunk-F3WZNGHX.js +124 -0
- package/dist/{chunk-3QNEGOV7.js → chunk-MVWWKTRI.js} +66 -70
- package/dist/{chunk-WZ2HLKRP.js → chunk-PJJS5DFB.js} +13 -16
- package/dist/{chunk-HKPWAGXM.js → chunk-QC5MM66L.js} +69 -92
- package/dist/{chunk-Q7IRUYIE.js → chunk-QU55ROKN.js} +164 -100
- package/dist/{chunk-FJMBLQVG.js → chunk-SOL3WRAY.js} +3 -5
- package/dist/{chunk-IPMXNAUZ.js → chunk-UMDJUAZA.js} +27852 -11475
- package/dist/chunk-XF2FQZM2.js +7813 -0
- package/dist/{chunk-6FUKON44.js → chunk-XLCI6Y5F.js} +86 -62
- package/dist/{chunk-DL5KPHCD.js → chunk-YX7JHUJ5.js} +3 -5
- package/dist/commands/agent.js +2 -2
- package/dist/commands/create.js +4 -4
- package/dist/commands/dev.js +4 -3
- package/dist/commands/env.js +3 -3
- package/dist/commands/plugins.d.ts +1 -7
- package/dist/commands/plugins.js +6 -7
- package/dist/commands/publish.js +5 -4
- package/dist/commands/setup-monorepo.js +3 -3
- package/dist/commands/start.js +6 -6
- package/dist/commands/tee.js +2 -4
- package/dist/commands/test.js +7 -7
- package/dist/commands/update.js +4 -3
- package/dist/{eliza-B56L4TAD.js → eliza-J3ANDQXN.js} +1 -1
- package/dist/index.html +3 -3
- package/dist/index.js +27 -16
- package/dist/{registry-RCDD7ELI.js → registry-YU4WBPLU.js} +2 -2
- package/package.json +9 -4
- package/templates/plugin-starter/README.md +92 -11
- package/templates/plugin-starter/e2e/starter-plugin.test.ts +10 -16
- package/templates/plugin-starter/package.json +4 -5
- package/templates/plugin-starter/src/index.ts +1 -0
- package/templates/project-starter/.env.example +130 -24
- package/templates/project-starter/__tests__/config.test.ts +8 -7
- package/templates/project-starter/__tests__/plugin.test.ts +39 -36
- package/templates/project-starter/__tests__/provider.test.ts +33 -29
- package/templates/project-starter/__tests__/utils/core-test-utils.ts +24 -11
- package/templates/project-starter/e2e/starter-plugin.test.ts +1 -1
- package/templates/project-starter/package.json +7 -7
- package/templates/project-starter/tsup.config.ts +1 -1
- package/dist/assets/index-BtftZiId.js.br +0 -0
- package/dist/assets/index-CGLPeoBs.css +0 -1
- package/dist/assets/index-CGLPeoBs.css.br +0 -0
- package/dist/assets/vendor-BU4KHesT.js.br +0 -0
- package/dist/assets/vendor-BU4KHesT.js.map +0 -1
- package/dist/chunk-MMXVGVEC.js +0 -818
- package/dist/chunk-RZ4QEERU.js +0 -13807
- package/dist/chunk-Z23AQP3I.js +0 -20366
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ The ElizaOS CLI provides a comprehensive set of commands to manage your ElizaOS
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
bun install -g @elizaos/cli
|
|
8
|
+
bun install -g @elizaos/cli
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
### Alternative usage with npx
|
|
@@ -13,7 +13,7 @@ bun install -g @elizaos/cli@beta
|
|
|
13
13
|
You can also run the CLI directly without installation using npx:
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
npx @elizaos/cli
|
|
16
|
+
npx @elizaos/cli [command]
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
This is useful for trying out commands without installing the CLI globally.
|
|
@@ -22,9 +22,7 @@ This is useful for trying out commands without installing the CLI globally.
|
|
|
22
22
|
|
|
23
23
|
Below is a comprehensive reference for all ElizaOS CLI commands, including their options, arguments, and subcommands. For the most up-to-date usage, run `elizaos [command] --help`.
|
|
24
24
|
|
|
25
|
-
###
|
|
26
|
-
|
|
27
|
-
#### `elizaos create [name]`
|
|
25
|
+
### `elizaos create [name]`
|
|
28
26
|
|
|
29
27
|
Initialize a new project, plugin, or agent.
|
|
30
28
|
|
|
@@ -45,13 +43,13 @@ Initialize a new project, plugin, or agent.
|
|
|
45
43
|
|
|
46
44
|
#### `elizaos dev`
|
|
47
45
|
|
|
48
|
-
Start the project or plugin in development mode
|
|
46
|
+
Start the project or plugin in development mode with auto-rebuild, detailed logging, and file change detection.
|
|
49
47
|
|
|
50
48
|
- **Options:**
|
|
51
|
-
- `-c, --configure`: Reconfigure services and AI models
|
|
49
|
+
- `-c, --configure`: Reconfigure services and AI models (skips using saved configuration)
|
|
52
50
|
- `-char, --character [paths...]`: Character file(s) to use - accepts paths or URLs
|
|
53
51
|
- `-b, --build`: Build the project before starting
|
|
54
|
-
- `-p, --port <port>`: Port
|
|
52
|
+
- `-p, --port <port>`: Port to listen on
|
|
55
53
|
|
|
56
54
|
**Character Handling:**
|
|
57
55
|
|
|
@@ -94,10 +92,10 @@ Manage environment variables and secrets.
|
|
|
94
92
|
|
|
95
93
|
#### `elizaos setup-monorepo`
|
|
96
94
|
|
|
97
|
-
Clone ElizaOS monorepo from a specific branch (defaults to
|
|
95
|
+
Clone ElizaOS monorepo from a specific branch (defaults to main).
|
|
98
96
|
|
|
99
97
|
- **Options:**
|
|
100
|
-
- `-b, --branch <branch>`: Branch to install (default: `
|
|
98
|
+
- `-b, --branch <branch>`: Branch to install (default: `main`)
|
|
101
99
|
- `-d, --dir <directory>`: Destination directory (default: `./eliza`)
|
|
102
100
|
|
|
103
101
|
**Notes:**
|
|
@@ -112,12 +110,13 @@ Clone ElizaOS monorepo from a specific branch (defaults to v2-develop).
|
|
|
112
110
|
Manage an ElizaOS plugin.
|
|
113
111
|
|
|
114
112
|
- **Subcommands:**
|
|
115
|
-
- `list` (
|
|
113
|
+
- `list` (alias: `l`): List all available plugins
|
|
116
114
|
- `add <plugin>` (alias: `install`): Add a plugin to the project
|
|
117
115
|
- Arguments: `<plugin>` (plugin name)
|
|
118
|
-
- Options: `-n, --no-env-prompt`, `-b, --branch <branchName>`
|
|
116
|
+
- Options: `-n, --no-env-prompt`, `-b, --branch <branchName>`, `-T, --tag <tagname>`
|
|
117
|
+
- `update` (alias: `refresh`): Fetch the latest plugin registry and update local cache
|
|
119
118
|
- `installed-plugins`: List plugins found in the project dependencies
|
|
120
|
-
- `remove <plugin>` (
|
|
119
|
+
- `remove <plugin>` (alias: `delete`): Remove a plugin from the project
|
|
121
120
|
- Arguments: `<plugin>` (plugin name)
|
|
122
121
|
|
|
123
122
|
### Agent Management
|
|
@@ -128,29 +127,42 @@ Manage ElizaOS agents.
|
|
|
128
127
|
|
|
129
128
|
- **Subcommands:**
|
|
130
129
|
- `list` (alias: `ls`): List available agents
|
|
131
|
-
- Options:
|
|
130
|
+
- Options:
|
|
131
|
+
- `-j, --json`: Output as JSON
|
|
132
|
+
- `-r, --remote-url <url>`: URL of the remote agent runtime
|
|
133
|
+
- `-p, --port <port>`: Port to listen on
|
|
132
134
|
- `get` (alias: `g`): Get agent details
|
|
133
135
|
- Options:
|
|
134
|
-
- `-n, --name <
|
|
136
|
+
- `-n, --name <name>`: Agent id, name, or index number from list
|
|
135
137
|
- `-j, --json`: Display JSON output in terminal
|
|
136
138
|
- `-o, --output <file>`: Save agent data to file
|
|
139
|
+
- `-r, --remote-url <url>`: URL of the remote agent runtime
|
|
140
|
+
- `-p, --port <port>`: Port to listen on
|
|
137
141
|
- `start` (alias: `s`): Start an agent
|
|
138
142
|
- Options:
|
|
139
|
-
- `-n, --name <
|
|
143
|
+
- `-n, --name <name>`: Name of an existing agent to start
|
|
140
144
|
- `-j, --json <json>`: Character JSON configuration string
|
|
141
145
|
- `--path <path>`: Local path to character JSON file
|
|
142
146
|
- `--remote-character <url>`: URL to remote character JSON file
|
|
147
|
+
- `-r, --remote-url <url>`: URL of the remote agent runtime
|
|
148
|
+
- `-p, --port <port>`: Port to listen on
|
|
143
149
|
- `stop` (alias: `st`): Stop an agent
|
|
144
150
|
- Options:
|
|
145
|
-
- `-n, --name <
|
|
151
|
+
- `-n, --name <name>`: Agent id, name, or index number from list
|
|
152
|
+
- `-r, --remote-url <url>`: URL of the remote agent runtime
|
|
153
|
+
- `-p, --port <port>`: Port to listen on
|
|
146
154
|
- `remove` (alias: `rm`): Remove an agent
|
|
147
155
|
- Options:
|
|
148
|
-
- `-n, --name <
|
|
156
|
+
- `-n, --name <name>`: Agent id, name, or index number from list
|
|
157
|
+
- `-r, --remote-url <url>`: URL of the remote agent runtime
|
|
158
|
+
- `-p, --port <port>`: Port to listen on
|
|
149
159
|
- `set`: Update agent configuration
|
|
150
160
|
- Options:
|
|
151
|
-
- `-n, --name <
|
|
161
|
+
- `-n, --name <name>`: Agent id, name, or index number from list
|
|
152
162
|
- `-c, --config <json>`: Agent configuration as JSON string
|
|
153
163
|
- `-f, --file <path>`: Path to agent configuration JSON file
|
|
164
|
+
- `-r, --remote-url <url>`: URL of the remote agent runtime
|
|
165
|
+
- `-p, --port <port>`: Port to listen on
|
|
154
166
|
|
|
155
167
|
**Note:** All agent commands support interactive mode when run without key parameters.
|
|
156
168
|
|
|
@@ -158,12 +170,34 @@ Manage ElizaOS agents.
|
|
|
158
170
|
|
|
159
171
|
#### `elizaos publish`
|
|
160
172
|
|
|
161
|
-
Publish a plugin
|
|
173
|
+
Publish a plugin to the registry.
|
|
162
174
|
|
|
163
175
|
- **Options:**
|
|
164
|
-
- `-t, --test`:
|
|
165
|
-
- `-n, --npm`: Publish to npm
|
|
166
|
-
- `-
|
|
176
|
+
- `-t, --test`: Test publish process without making changes
|
|
177
|
+
- `-n, --npm`: Publish to npm instead of GitHub
|
|
178
|
+
- `-sr, --skip-registry`: Skip publishing to the registry
|
|
179
|
+
- `-d, --dry-run`: Generate registry files locally without publishing
|
|
180
|
+
|
|
181
|
+
**Default behavior:**
|
|
182
|
+
|
|
183
|
+
- Publishes to npm
|
|
184
|
+
- Creates/updates GitHub repository
|
|
185
|
+
- Submits to ElizaOS registry
|
|
186
|
+
|
|
187
|
+
**npm-only mode:**
|
|
188
|
+
|
|
189
|
+
- Use `--npm` flag to publish only to npm
|
|
190
|
+
- Skips GitHub repository creation and registry submission
|
|
191
|
+
|
|
192
|
+
**Important for continuous development:**
|
|
193
|
+
|
|
194
|
+
The `elizaos publish` command is designed for **initial plugin publishing only**. After initial publishing, use standard npm and git workflows for updates:
|
|
195
|
+
|
|
196
|
+
- `npm version patch|minor|major` to update version
|
|
197
|
+
- `npm publish` to publish to npm
|
|
198
|
+
- `git push origin main && git push --tags` to update GitHub
|
|
199
|
+
|
|
200
|
+
The ElizaOS registry automatically syncs with npm updates.
|
|
167
201
|
|
|
168
202
|
### Agent/Server Management
|
|
169
203
|
|
|
@@ -172,7 +206,7 @@ Publish a plugin or project to the registry, GitHub, or npm.
|
|
|
172
206
|
Start the Eliza agent with configurable plugins and services.
|
|
173
207
|
|
|
174
208
|
- **Options:**
|
|
175
|
-
- `-c, --configure`: Force reconfiguration of services and AI models
|
|
209
|
+
- `-c, --configure`: Force reconfiguration of services and AI models (bypasses saved configuration)
|
|
176
210
|
- `-char, --character [paths...]`: Character file(s) to use - accepts paths or URLs
|
|
177
211
|
- `-b, --build`: Build the project before starting
|
|
178
212
|
- `-p, --port <port>`: Port to listen on (default: 3000)
|
|
@@ -223,20 +257,209 @@ Run tests for Eliza agent plugins and projects.
|
|
|
223
257
|
|
|
224
258
|
#### `elizaos tee phala <subcommand>`
|
|
225
259
|
|
|
226
|
-
Manage TEE deployments
|
|
260
|
+
Manage TEE deployments using the official [Phala Cloud CLI](https://docs.phala.network/phala-cloud/references/tee-cloud-cli). This integration provides seamless access to Phala's decentralized TEE cloud infrastructure directly through the ElizaOS CLI.
|
|
227
261
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
262
|
+
All Phala Cloud CLI commands are passed through transparently, allowing you to use the full functionality of Phala's TEE platform.
|
|
263
|
+
|
|
264
|
+
```bash
|
|
265
|
+
elizaos tee phala <command> [options]
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
##### Main Commands
|
|
269
|
+
|
|
270
|
+
- **`elizaos tee phala help`** - Display help for all commands
|
|
271
|
+
- **`elizaos tee phala join` (alias: `free`)** - Join Phala Cloud! Get an account and deploy a CVM for FREE
|
|
272
|
+
- **`elizaos tee phala demo`** - Launch demo applications on Phala Cloud (Jupyter Notebook, HTTPBin)
|
|
273
|
+
|
|
274
|
+
##### Authentication Commands (`elizaos tee phala auth`)
|
|
275
|
+
|
|
276
|
+
- **`elizaos tee phala auth login [api-key]`** - Set the API key for authentication
|
|
277
|
+
|
|
278
|
+
- Store your Phala Cloud API key securely for subsequent operations
|
|
279
|
+
- Get your API key from [Phala Cloud Dashboard](https://cloud.phala.network)
|
|
280
|
+
|
|
281
|
+
- **`elizaos tee phala auth logout`** - Remove the stored API key
|
|
282
|
+
|
|
283
|
+
- **`elizaos tee phala auth status`** - Check authentication status
|
|
284
|
+
- Displays whether you're logged in and which account is active
|
|
285
|
+
|
|
286
|
+
##### Cloud Virtual Machine Management (`elizaos tee phala cvms`)
|
|
287
|
+
|
|
288
|
+
- **`elizaos tee phala cvms list` (alias: `ls`)** - List all CVMs
|
|
289
|
+
|
|
290
|
+
- Options:
|
|
291
|
+
- `-j, --json` - Output in JSON format
|
|
292
|
+
|
|
293
|
+
- **`elizaos tee phala cvms create`** - Create a new CVM
|
|
294
|
+
|
|
295
|
+
- Options:
|
|
296
|
+
- `-n, --name <name>` - Name of the CVM
|
|
297
|
+
- `-c, --compose <compose>` - Path to Docker Compose file
|
|
298
|
+
- `--vcpu <vcpu>` - Number of vCPUs (default: 2)
|
|
299
|
+
- `--memory <memory>` - Memory in MB (default: 4096)
|
|
300
|
+
- `--disk-size <diskSize>` - Disk size in GB (default: 40)
|
|
301
|
+
- `--teepod-id <teepodId>` - TEEPod ID to use (will prompt if not provided)
|
|
302
|
+
- `--image <image>` - Version of dstack image to use (will prompt if not provided)
|
|
303
|
+
- `-e, --env-file <envFile>` - Path to environment file
|
|
304
|
+
- `--skip-env` - Skip environment variable prompt (default: false)
|
|
305
|
+
- `--debug` - Enable debug mode (default: false)
|
|
306
|
+
|
|
307
|
+
- **`elizaos tee phala cvms get [app-id]`** - Get details of a CVM
|
|
308
|
+
|
|
309
|
+
- Options:
|
|
310
|
+
- `-j, --json` - Output in JSON format
|
|
311
|
+
|
|
312
|
+
- **`elizaos tee phala cvms start [app-id]`** - Start a stopped CVM
|
|
313
|
+
|
|
314
|
+
- Interactive selection if app-id not provided
|
|
315
|
+
|
|
316
|
+
- **`elizaos tee phala cvms stop [app-id]`** - Stop a running CVM
|
|
317
|
+
|
|
318
|
+
- Interactive selection if app-id not provided
|
|
319
|
+
|
|
320
|
+
- **`elizaos tee phala cvms restart [app-id]`** - Restart a CVM
|
|
321
|
+
|
|
322
|
+
- Interactive selection if app-id not provided
|
|
323
|
+
|
|
324
|
+
- **`elizaos tee phala cvms delete [app-id]`** - Delete a CVM
|
|
325
|
+
|
|
326
|
+
- Options:
|
|
327
|
+
- `-f, --force` - Skip confirmation prompt
|
|
328
|
+
|
|
329
|
+
- **`elizaos tee phala cvms upgrade [app-id]`** - Upgrade a CVM to a new version
|
|
330
|
+
|
|
331
|
+
- Options:
|
|
332
|
+
- `-c, --compose <compose>` - Path to new Docker Compose file
|
|
333
|
+
- `--env-file <envFile>` - Path to environment file
|
|
334
|
+
- `--debug` - Enable debug mode
|
|
335
|
+
|
|
336
|
+
- **`elizaos tee phala cvms resize [app-id]`** - Resize resources for a CVM
|
|
337
|
+
|
|
338
|
+
- Options:
|
|
339
|
+
- `-v, --vcpu <vcpu>` - Number of virtual CPUs
|
|
340
|
+
- `-m, --memory <memory>` - Memory size in MB
|
|
341
|
+
- `-d, --disk-size <diskSize>` - Disk size in GB
|
|
342
|
+
- `-r, --allow-restart <allowRestart>` - Allow restart of the CVM if needed
|
|
343
|
+
- `-y, --yes` - Automatically confirm the resize operation
|
|
344
|
+
|
|
345
|
+
- **`elizaos tee phala cvms attestation [app-id]`** - Get attestation information for a CVM
|
|
346
|
+
- Provides cryptographic proof that your application is running in a secure TEE
|
|
347
|
+
- Interactive selection if app-id not provided
|
|
348
|
+
|
|
349
|
+
##### Docker Management (`elizaos tee phala docker`)
|
|
350
|
+
|
|
351
|
+
- **`elizaos tee phala docker login`** - Login to Docker Hub
|
|
352
|
+
|
|
353
|
+
- Configure Docker Hub credentials for pushing images
|
|
354
|
+
|
|
355
|
+
- **`elizaos tee phala docker build`** - Build a Docker image
|
|
356
|
+
|
|
357
|
+
- Options:
|
|
358
|
+
- `--image <image>` - Docker image name
|
|
359
|
+
- `--tag <tag>` - Tag for the Docker image
|
|
360
|
+
|
|
361
|
+
- **`elizaos tee phala docker push`** - Push a Docker image to Docker Hub
|
|
362
|
+
|
|
363
|
+
- Options:
|
|
364
|
+
- `--image <image>` - Docker image name
|
|
365
|
+
- `--tag <tag>` - Tag to push
|
|
366
|
+
|
|
367
|
+
- **`elizaos tee phala docker generate`** - Generate a Docker Compose file
|
|
368
|
+
- Options:
|
|
369
|
+
- `-i, --image <imageName>` - Docker image name to use in the compose file
|
|
370
|
+
- `-e, --env-file <envFile>` - Path to environment variables file
|
|
371
|
+
- `-o, --output <output>` - Output path for generated docker-compose.yml
|
|
372
|
+
- `--template <template>` - Template to use for the generated docker-compose.yml
|
|
373
|
+
|
|
374
|
+
##### TEE Simulator (`elizaos tee phala simulator`)
|
|
375
|
+
|
|
376
|
+
- **`elizaos tee phala simulator start`** - Start the TEE simulator
|
|
377
|
+
|
|
378
|
+
- Options:
|
|
379
|
+
- `-i, --image <image>` - Simulator image to use
|
|
380
|
+
- `-p, --port <port>` - Simulator port (default: 8090) (default: "8090")
|
|
381
|
+
- `-t, --type <type>` - Simulator type (docker, native) (default: "docker")
|
|
382
|
+
|
|
383
|
+
- **`elizaos tee phala simulator stop`** - Stop the TEE simulator
|
|
384
|
+
- Stops the running TEE simulator container
|
|
385
|
+
|
|
386
|
+
##### Getting Started
|
|
387
|
+
|
|
388
|
+
1. **Sign up for Phala Cloud**:
|
|
389
|
+
|
|
390
|
+
```bash
|
|
391
|
+
elizaos tee phala free
|
|
392
|
+
# Or visit https://cloud.phala.network to create an account
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
2. **Authenticate**:
|
|
396
|
+
|
|
397
|
+
```bash
|
|
398
|
+
elizaos tee phala auth login <your-api-key>
|
|
399
|
+
elizaos tee phala auth status
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
3. **Deploy your first Eliza Agent**:
|
|
403
|
+
|
|
404
|
+
```bash
|
|
405
|
+
# Create a TEE project starter template
|
|
406
|
+
elizaos create tee-agent --tee
|
|
407
|
+
|
|
408
|
+
# cd into directory and authenticate your Phala Cloud API Key
|
|
409
|
+
cd tee-agent
|
|
410
|
+
elizaos tee phala auth login
|
|
411
|
+
|
|
412
|
+
# Log into Docker and ensure docker is running
|
|
413
|
+
elizaos tee phala docker build
|
|
414
|
+
|
|
415
|
+
# Publish the Docker image you built
|
|
416
|
+
elizaos tee phala docker push
|
|
417
|
+
|
|
418
|
+
# Generate a Docker Compose file or update the image in the existing docker compose file
|
|
419
|
+
elizaos tee phala docker generate --template eliza
|
|
420
|
+
|
|
421
|
+
# Create and deploy a CVM
|
|
422
|
+
elizaos tee phala cvms create --name elizaos -c <docker-compose file> -e <path to .env>
|
|
423
|
+
|
|
424
|
+
# Check deployment status
|
|
425
|
+
elizaos tee phala cvms list
|
|
426
|
+
|
|
427
|
+
# Upgrade existing deployment
|
|
428
|
+
elizaos tee phala cvms upgrade -c <docker-compose file> -e <path to .env (optional)>
|
|
429
|
+
```
|
|
430
|
+
|
|
431
|
+
4. **Verify TEE attestation**:
|
|
432
|
+
|
|
433
|
+
```bash
|
|
434
|
+
elizaos tee phala cvms attestation <app-id>
|
|
435
|
+
```
|
|
436
|
+
|
|
437
|
+
##### Private Registry Support
|
|
438
|
+
|
|
439
|
+
For private Docker images, set these environment variables before deployment and add them to your docker-compose file:
|
|
440
|
+
|
|
441
|
+
**DockerHub**:
|
|
442
|
+
|
|
443
|
+
- `DSTACK_DOCKER_USERNAME` - Your DockerHub username
|
|
444
|
+
- `DSTACK_DOCKER_PASSWORD` - Your DockerHub password or access token
|
|
445
|
+
- `DSTACK_DOCKER_REGISTRY` - Registry URL (optional, defaults to DockerHub)
|
|
446
|
+
|
|
447
|
+
**AWS ECR**:
|
|
448
|
+
|
|
449
|
+
- `DSTACK_AWS_ACCESS_KEY_ID` - AWS access key
|
|
450
|
+
- `DSTACK_AWS_SECRET_ACCESS_KEY` - AWS secret key
|
|
451
|
+
- `DSTACK_AWS_REGION` - AWS region
|
|
452
|
+
- `DSTACK_AWS_ECR_REGISTRY` - Full ECR registry URL
|
|
453
|
+
|
|
454
|
+
##### Additional Resources
|
|
455
|
+
|
|
456
|
+
- **Command Help**: `elizaos tee phala help` or `elizaos tee phala <command> --help`
|
|
457
|
+
- **Official Documentation**: [Phala Cloud Docs](https://docs.phala.network/phala-cloud)
|
|
458
|
+
- **Dashboard**: [Phala Cloud Dashboard](https://cloud.phala.network)
|
|
459
|
+
- **NPM Package**: [phala on npm](https://www.npmjs.com/package/phala)
|
|
460
|
+
- **Support**: [Phala Network Discord](https://discord.gg/phala-network)
|
|
461
|
+
|
|
462
|
+
All commands support the full range of options available in the official Phala CLI. For the most current command reference, run `npx phala help`.
|
|
240
463
|
|
|
241
464
|
### Updates
|
|
242
465
|
|
|
@@ -266,15 +489,13 @@ Manage environment variables and secrets.
|
|
|
266
489
|
- `interactive`: Start interactive environment variable manager
|
|
267
490
|
- Options: `-y, --yes`
|
|
268
491
|
|
|
269
|
-
###
|
|
492
|
+
### Process Management
|
|
270
493
|
|
|
271
|
-
#### `elizaos
|
|
494
|
+
#### `elizaos stop`
|
|
272
495
|
|
|
273
|
-
|
|
496
|
+
Stop all running ElizaOS agents running locally.
|
|
274
497
|
|
|
275
|
-
|
|
276
|
-
- `--dry-run`: Test run without publishing
|
|
277
|
-
- `--registry <repo>`: Specify target registry (default: 'elizaOS/registry')
|
|
498
|
+
This command uses `pkill` to terminate all ElizaOS processes and does not accept any options.
|
|
278
499
|
|
|
279
500
|
## Development Guide
|
|
280
501
|
|
|
@@ -380,22 +601,47 @@ Plugins extend the functionality of ElizaOS agents by providing additional capab
|
|
|
380
601
|
5. **Test your plugin**:
|
|
381
602
|
|
|
382
603
|
```bash
|
|
383
|
-
|
|
604
|
+
# Run tests during development
|
|
605
|
+
elizaos test
|
|
384
606
|
# Or with the CLI directly:
|
|
385
|
-
elizaos test
|
|
607
|
+
elizaos test
|
|
608
|
+
|
|
609
|
+
# Test specific components
|
|
610
|
+
elizaos test component
|
|
611
|
+
|
|
612
|
+
# Test end-to-end functionality
|
|
613
|
+
elizaos test e2e
|
|
386
614
|
```
|
|
387
615
|
|
|
388
616
|
6. **Publish your plugin**:
|
|
389
617
|
|
|
390
618
|
```bash
|
|
619
|
+
# Login to npm first
|
|
620
|
+
npm login
|
|
621
|
+
|
|
622
|
+
# Test your plugin thoroughly
|
|
623
|
+
elizaos test
|
|
624
|
+
|
|
391
625
|
# Test publishing process
|
|
392
|
-
elizaos
|
|
626
|
+
elizaos publish --test
|
|
393
627
|
|
|
394
|
-
# Publish to registry
|
|
395
|
-
elizaos
|
|
628
|
+
# Publish to npm + GitHub + registry (recommended)
|
|
629
|
+
elizaos publish
|
|
630
|
+
```
|
|
631
|
+
|
|
632
|
+
7. **Continuous development workflow**:
|
|
633
|
+
|
|
634
|
+
```bash
|
|
635
|
+
# Make changes to your plugin
|
|
636
|
+
elizaos dev # Test locally
|
|
396
637
|
|
|
397
|
-
#
|
|
398
|
-
elizaos
|
|
638
|
+
# Test your changes
|
|
639
|
+
elizaos test
|
|
640
|
+
|
|
641
|
+
# Update version and publish updates
|
|
642
|
+
npm version patch # or minor/major
|
|
643
|
+
npm publish
|
|
644
|
+
git push origin main && git push --tags
|
|
399
645
|
```
|
|
400
646
|
|
|
401
647
|
### Developing Projects (Agents)
|
|
@@ -451,31 +697,48 @@ Projects contain agent configurations and code for building agent-based applicat
|
|
|
451
697
|
4. **Add plugins to your project**:
|
|
452
698
|
|
|
453
699
|
```bash
|
|
454
|
-
elizaos
|
|
700
|
+
elizaos plugins add @elizaos/plugin-openai
|
|
455
701
|
```
|
|
456
702
|
|
|
457
703
|
5. **Run your project in development mode**:
|
|
458
704
|
|
|
459
705
|
```bash
|
|
460
|
-
bun run dev
|
|
461
|
-
# Or with the CLI directly:
|
|
462
706
|
elizaos dev
|
|
463
707
|
```
|
|
464
708
|
|
|
465
709
|
6. **Build and start your project**:
|
|
466
710
|
|
|
467
711
|
```bash
|
|
468
|
-
bun run build
|
|
469
|
-
bun run start
|
|
470
|
-
# Or with the CLI directly:
|
|
471
712
|
elizaos start
|
|
472
713
|
```
|
|
473
714
|
|
|
474
715
|
7. **Test your project**:
|
|
716
|
+
|
|
475
717
|
```bash
|
|
476
|
-
|
|
477
|
-
|
|
718
|
+
# Run all tests
|
|
719
|
+
elizaos test
|
|
720
|
+
|
|
721
|
+
# Run component tests only
|
|
722
|
+
elizaos test component
|
|
723
|
+
|
|
724
|
+
# Run e2e tests only
|
|
725
|
+
elizaos test e2e
|
|
726
|
+
|
|
727
|
+
# Test with specific options
|
|
728
|
+
elizaos test --port 4000 --name specific-test
|
|
729
|
+
```
|
|
730
|
+
|
|
731
|
+
8. **Development workflow**:
|
|
732
|
+
|
|
733
|
+
```bash
|
|
734
|
+
# Make changes to your project
|
|
735
|
+
elizaos dev # Development mode with hot-reload
|
|
736
|
+
|
|
737
|
+
# Test your changes
|
|
478
738
|
elizaos test
|
|
739
|
+
|
|
740
|
+
# Build and start in production mode
|
|
741
|
+
elizaos start
|
|
479
742
|
```
|
|
480
743
|
|
|
481
744
|
## Contributing
|