components->ask('Enter the server ID'); $server = Server::find($serverId); if (!$server) { $this->components->error('Server not found'); return; } $serviceType = $this->components->choice('select the service you want to install', [ 'postgres-17' ]); $serviceName = $this->components->ask('Enter the service name'); list ($type, $version) = explode('-', $serviceType); $service = app(CreateService::class)->execute( server: $server, name: $serviceName, category: ServiceCategory::DATABASE, type: ServiceType::tryFrom($type), version: $version, ); $this->components->info('Service created successfully'); dump($service); } }