CosmicAC Logo

How to manage racks in your CosmicAC network

Register, list, and remove racks in your CosmicAC network with the CLI.

Register, list, and remove racks in your CosmicAC network.

Prerequisites

You need the following before you start.

  • The CosmicAC CLI installed and configured. See Install the CLI.
  • Admin access set up with your ORK RPC key. Run cosmicac admin init and enter the key when prompted.

Register a rack

Run the command without arguments for guided prompts.

cosmicac admin rack register

To register directly, pass the rack ID, type, and RPC public key. Set --location to a two-letter country code for server racks.

cosmicac admin rack register <id> <type> <rpcPublicKey> --location <CC>

The type is server or dataseeder. For example, register a server rack and a data seeder.

cosmicac admin rack register rack-us-01 server abc123...def --location US
cosmicac admin rack register seeder-01 dataseeder fedcba...987

The CLI prints Successfully registered rack: <id>. Confirm the rack appears in cosmicac admin rack list.

List racks

List every registered rack in the network.

cosmicac admin rack list

Remove a rack

Remove one or more racks by ID.

cosmicac admin rack forget <id> [<id>...]

Run the command without arguments to select a rack interactively, or pass --all to remove every rack.

The CLI prints Successfully removed rack(s): <id>.

Next steps

On this page