--- name: slot-deploy description: Create, update, and manage Slot deployments for Katana and Torii services. --- # Slot Deploy Manage the lifecycle of Slot deployments — Katana (execution layer) and Torii (indexer). ## Prerequisites Install the Slot CLI: ```sh curl -L https://slot.cartridge.sh | bash ``` Authenticate: ```sh slot auth login ``` For CI/scripts, generate a token and set the `SLOT_AUTH` env var: ```sh slot auth token ``` ## Creating Deployments ### Katana ```sh slot deployments create katana ``` ### Torii Torii requires a TOML configuration file: ```sh slot deployments create torii --config ``` Minimal `torii.toml`: ```toml rpc = "https://api.cartridge.gg/x/starknet/mainnet" world_address = "0x3fa481f41522b90b3684ecfab7650c259a76387fab9c380b7a959e3d4ac69f" ``` Extended config options: ```toml [indexing] allowed_origins = ["*"] index_pending = true index_transactions = false polling_interval = 1000 contracts = [ "erc20:", "erc721:" ] [events] raw = true historical = ["namespace-EventName"] ``` When you create a service with a new project name, a team is automatically created. ## Updating Deployments ```sh slot deployments update torii --version v1.0.0 slot deployments update torii --config slot deployments update torii --replicas 3 ``` ## Deleting Deployments ```sh slot deployments delete ``` ## Inspecting Deployments ```sh # List all deployments slot deployments list # View configuration slot deployments describe # Read logs slot deployments logs # View predeployed Katana accounts slot deployments accounts katana ``` ## Transferring Services Transfer a service to another team: ```sh slot d transfer ``` ## Observability Enable Prometheus and Grafana monitoring ($10/month per deployment). ### On creation ```sh slot deployments create --observability katana slot deployments create --observability torii --config ``` ### On existing deployment ```sh slot deployments update --observability katana slot deployments update --observability torii ``` ### Accessing dashboards - Prometheus: `https:///prometheus` - Grafana: `https:///grafana` Both are protected by username/password credentials provided when observability is enabled.