| Crates.io | theater-cli |
| lib.rs | theater-cli |
| version | 0.2.1 |
| created_at | 2025-06-23 16:44:43.126298+00 |
| updated_at | 2025-06-24 15:32:10.516105+00 |
| description | Command-line interface for Theater actor system |
| homepage | https://colinrozzi.github.io/theater |
| repository | https://github.com/colinrozzi/theater |
| max_upload_size | |
| id | 1723176 |
| size | 469,848 |
[!NOTE] This documentation is incomplete, please reach out to me at colinrozzi@gmail.com. I very much appreciate your interest and would love to hear from you!
Command-line interface for the Theater WebAssembly actor system.
cargo install theater-cli
For now, we have to use cargo component manually
cargo component new my-agent --lib
Navigate to the agent directory
cd my-agent
edit wit/world.wit to include theater runtime interfaces: theater-simple a minimal world is:
package component:my-agent;
world default {
import theater:simple/runtime;
export theater:simple/actor;
}
Create a manifest.toml file in the agent directory with the following content:
name = "my-agent"
version = "0.1.0"
component = "will be replaced by theater build"
[[handlers]]
type = "runtime"
[handlers.config]
theater build
OR
cargo component build --target wasm32-unknown-unknown
theater build will automatically update the component path in manifest.toml to point to the built component, but it does hide some information that is nice to see.
theater start manifest.toml
Ensure the Theater server is running before starting agents, check out theater-server-cli for information on starting the server. The server manages the lifecycle of agents and provides a UI for monitoring.
theater list
theater events <agent-id>
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.