diff --git a/cli/src/command/deployments/update.rs b/cli/src/command/deployments/update.rs index cbf2235..fe20685 100644 --- a/cli/src/command/deployments/update.rs +++ b/cli/src/command/deployments/update.rs @@ -20,10 +20,11 @@ use torii_cli::args::ToriiArgsConfig; pub struct UpdateArgs { #[arg(help = "The name of the project.")] pub project: String, + #[arg(short, long, default_value = "basic")] #[arg(value_name = "tier")] #[arg(help = "Deployment tier.")] - pub tier: Tier, + pub tier: Option, #[command(subcommand)] update_commands: UpdateServiceCommands, @@ -79,10 +80,11 @@ impl UpdateArgs { }; let tier = match &self.tier { - Tier::Basic => DeploymentTier::basic, - Tier::Common => DeploymentTier::common, - Tier::Rare => DeploymentTier::rare, - Tier::Epic => DeploymentTier::epic, + None => None, + Some(Tier::Basic) => Some(DeploymentTier::basic), + Some(Tier::Common) => Some(DeploymentTier::common), + Some(Tier::Rare) => Some(DeploymentTier::rare), + Some(Tier::Epic) => Some(DeploymentTier::epic), }; let request_body = UpdateDeployment::build_query(Variables { diff --git a/slot/src/graphql/deployments/update.graphql b/slot/src/graphql/deployments/update.graphql index 69e7df7..4f2ed89 100644 --- a/slot/src/graphql/deployments/update.graphql +++ b/slot/src/graphql/deployments/update.graphql @@ -1,7 +1,7 @@ mutation UpdateDeployment( $project: String! $service: UpdateServiceInput! - $tier: DeploymentTier! + $tier: DeploymentTier $wait: Boolean ) { updateDeployment(