brokkr-broker::cli
Rust
Structs
Section titled “Structs”struct Cli
Section titled “struct Cli”pub
Derives: Parser
Brokkr Broker CLI
This CLI provides commands to manage the Brokkr Broker, including serving the broker, creating agents and generators, and rotating keys.
Fields
Section titled “Fields”| Name | Type | Description |
|---|---|---|
command |
Commands |
struct CreateCommands
Section titled “struct CreateCommands”pub
Derives: Args
Fields
Section titled “Fields”| Name | Type | Description |
|---|---|---|
command |
CreateSubcommands |
struct RotateCommands
Section titled “struct RotateCommands”pub
Derives: Args
Fields
Section titled “Fields”| Name | Type | Description |
|---|---|---|
command |
RotateSubcommands |
enum Commands
Section titled “enum Commands”pub
Variants
Section titled “Variants”-
Serve- Start the Brokkr Broker server -
Create- Create new entities -
Rotate- Rotate keys -
GeneratePak- Mint a PAK + hash pair offline for day-zero admin bootstrapGenerates a key and its hash without contacting the database or writing a key file. Set the printed hash as
BROKKR__BROKER__PAK_HASHbefore the first startup and keep the printed PAK as the admin credential.
enum CreateSubcommands
Section titled “enum CreateSubcommands”pub
Variants
Section titled “Variants”-
Agent- Create a new agentThe agent is always registered with the system generator (fleet scope), matching
POST /api/v1/agents. Registration is the consent boundary: an agent only receives stacks from generators it is registered with. -
Generator- Create a new generator
enum RotateSubcommands
Section titled “enum RotateSubcommands”pub
Variants
Section titled “Variants”Agent- Rotate an agent keyGenerator- Rotate a generator keyAdmin- Rotate the admin key
Functions
Section titled “Functions”fn parse_cli
Section titled “fn parse_cli”pub
fn parse_cli() -> CliSource
pub fn parse_cli() -> Cli { Cli::parse()}