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
| Subcommand | Description |
|---|---|
| config | Manage CLI configuration |
| init | Initialize admin configuration |
| rack | Rack management operations |
admin config
Administrative configuration management commands. Requires ORK RPC key authentication for modifications.
Usage
cosmicac admin config <subcommand> [options]Subcommands
| Subcommand | Description |
|---|---|
| set | Set local configuration values (requires ORK key) |
| show | Display 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
| Option | Description |
|---|---|
--app-url | Set APP_NODE_URL |
--inference-url | Set INFERENCE_APP_NODE_URL |
--web-url | Set WEB_UI_URL |
--env | Set 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 showadmin 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 initadmin 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
| Subcommand | Description |
|---|---|
| forget | Remove racks from the network |
| list | List all racks |
| register | Register 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
| Argument | Required | Description |
|---|---|---|
ids... | No | Rack IDs to remove (space-separated, optional) |
Options
| Option | Description |
|---|---|
--all | Remove all racks |
admin rack list
List all registered racks in the CosmicAC network.
Usage
cosmicac admin rack listadmin 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
| Argument | Required | Description |
|---|---|---|
id | No | Unique identifier for the rack (optional, will prompt if not provided) |
type | No | Type of the rack (server, dataseeder) (optional) |
rpcPublicKey | No | RPC public key for the rack server (optional) |
Options
| Option | Description |
|---|---|
--location | Location (2-letter country code, required for server racks) |