error('This command may only run in development mode.'); return self::FAILURE; } $server = SeedDevelopmentQemuServer::run($this->argument('profile'), ! $this->option('keep-others'), (bool) $this->option('as-localhost'), $this->option('ip') ?: null, (int) $this->option('port')); $this->info("Seeded {$server->name} at {$server->ip}."); if ($this->option('as-localhost')) { try { StartDevelopmentInstanceDatabase::run($server); $this->info('Started the coolify-db container for instance backups.'); } catch (Throwable $e) { $this->warn("Could not start the coolify-db container for instance backups: {$e->getMessage()}"); } } if ($this->option('gpu')) { $this->info('Installing the NVIDIA driver and container toolkit. This can take some minutes.'); InstallDevelopmentGpuDriver::run($server); $this->info('The GPU is ready.'); } return self::SUCCESS; } }