CosmicAC Logo

Admin

Administrative commands for managing CosmicAC infrastructure. Requires ORK RPC key authentication. Used by operators to manage racks, deployment, and system configuration.

Command

cosmicac admin <subcommand> [options]

Subcommands

SubcommandDescription
configManage CLI configuration
initInitialize admin configuration
rackRack management operations

admin config

Administrative configuration management commands. Requires ORK RPC key authentication for modifications.

Usage

cosmicac admin config <subcommand> [options]

Subcommands

SubcommandDescription
setSet local configuration values (requires ORK key)
showDisplay current configuration

admin config set

Updates the local CLI configuration. Changes take effect on the next CLI invocation. Requires ORK RPC key authentication. Use this to configure URLs for self-hosted deployments.

Usage

cosmicac admin config set [options]

Options

OptionDescription
--app-urlSet APP_NODE_URL
--inference-urlSet INFERENCE_APP_NODE_URL
--web-urlSet WEB_UI_URL
--envSet all URLs from a predefined environment (production, staging, local)

admin config show

Shows the active CLI configuration including resolved URLs and their source.

Usage

cosmicac admin config show

admin init

Set up admin credentials for managing the CosmicAC infrastructure. Stores the ORK RPC key securely for use in all admin operations.

Usage

cosmicac admin init

admin rack

Commands for managing racks in the CosmicAC infrastructure. Register new racks, list existing racks, and remove racks from the network.

Usage

cosmicac admin rack <subcommand> [options]

Subcommands

SubcommandDescription
forgetRemove racks from the network
listList all racks
registerRegister a new rack

admin rack forget

Remove specific racks by ID or remove all racks from the CosmicAC network.

Interactive mode: Run without arguments for guided prompts. Direct mode: Provide arguments for immediate execution.

Usage

cosmicac admin rack forget [ids...] [options]

Arguments

ArgumentRequiredDescription
ids...NoRack IDs to remove (space-separated, optional)

Options

OptionDescription
--allRemove all racks

admin rack list

List all registered racks in the CosmicAC network.

Usage

cosmicac admin rack list

admin rack register

Register a new rack in the CosmicAC network.

Interactive mode: Run without arguments for guided prompts. Direct mode: Provide all arguments for immediate execution.

Usage

cosmicac admin rack register [id] [type] [rpcPublicKey] [options]

Arguments

ArgumentRequiredDescription
idNoUnique identifier for the rack (optional, will prompt if not provided)
typeNoType of the rack (server, dataseeder) (optional)
rpcPublicKeyNoRPC public key for the rack server (optional)

Options

OptionDescription
--locationLocation (2-letter country code, required for server racks)

On this page