Vai al contenuto

Vercel CLI Comandi

Traduzione: Copia tutti i comandi Traduzione: Generare PDF < > Comandi e flussi di lavoro completi Vercel CLI per la distribuzione e lo sviluppo senza server. ## Installazione e configurazione |Command|Description| |---------|-------------| |`npm install -g vercel`|Install Vercel CLI globally| |`yarn global add vercel`|Install with Yarn| |`vercel login`|Login to Vercel account| |`vercel logout`|Logout from Vercel| |`vercel whoami`|Show current user| |`vercel --version`|Show CLI version| |`vercel --help`|Show help information| ## Gestione dei progetti |Command|Description| |---------|-------------| |`vercel`|Deploy current directory| |`vercel --prod`|Deploy to production| |`vercel --prebuilt`|Deploy prebuilt static files| |`vercel init`|Initialize new project| |`vercel link`|Link local directory to Vercel project| |`vercel unlink`|Unlink project| |`vercel ls`|List all deployments| |`vercel rm `|Remove deployment| ## Comandi di distribuzione |Command|Description| |---------|-------------| |`vercel deploy`|Deploy project| |`vercel --name `|Deploy with custom name| |`vercel --target production`|Deploy to production| |`vercel --target preview`|Deploy to preview| |`vercel --build-env KEY=value`|Set build environment variable| |`vercel --env KEY=value`|Set runtime environment variable| |`vercel --regions `|Deploy to specific regions| |`vercel --force`|Force new deployment| ## Variabili dell'ambiente |Command|Description| |---------|-------------| |`vercel env ls`|List environment variables| |`vercel env add `|Add environment variable| |`vercel env rm `|Remove environment variable| |`vercel env pull`|Download environment variables| |`vercel env pull .env.local`|Pull to specific file| ## Gestione del dominio |Command|Description| |---------|-------------| |`vercel domains ls`|List all domains| |`vercel domains add `|Add custom domain| |`vercel domains rm `|Remove domain| |`vercel domains inspect `|Inspect domain configuration| |`vercel alias `|Set domain alias| |`vercel alias rm `|Remove alias| ## Configurazione del progetto |Command|Description| |---------|-------------| |`vercel projects ls`|List all projects| |`vercel projects add `|Create new project| |`vercel projects rm `|Remove project| |`vercel switch `|Switch to project| |`vercel inspect `|Inspect deployment details| ## Log e monitoraggio |Command|Description| |---------|-------------| |`vercel logs `|View deployment logs| |`vercel logs --follow`|Follow logs in real-time| |`vercel logs --since 1h`|Show logs from last hour| |`vercel logs --until 2h`|Show logs until 2 hours ago| |`vercel logs --output raw`|Show raw log output| ## Gestione dei segreti |Command|Description| |---------|-------------| |`vercel secrets ls`|List all secrets| |`vercel secrets add `|Add secret| |`vercel secrets rm `|Remove secret| |`vercel secrets rename `|Rename secret| ## Team e organizzazioni |Command|Description| |---------|-------------| |`vercel teams ls`|List teams| |`vercel teams switch `|Switch to team| |`vercel teams add `|Invite team member| |`vercel teams rm `|Remove team member| ## Server di sviluppo |Command|Description| |---------|-------------| |`vercel dev`|Start local development server| |`vercel dev --listen 3000`|Start on specific port| |`vercel dev --debug`|Start with debug mode| |`vercel dev --confirm`|Skip confirmation prompts| ## Gestione DNS |Command|Description| |---------|-------------| |`vercel dns ls `|List DNS records| |`vercel dns add `|Add DNS record| |`vercel dns rm `|Remove DNS record| |`vercel dns import `|Import DNS records| ## Certificati |Command|Description| |---------|-------------| |`vercel certs ls`|List SSL certificates| |`vercel certs add `|Add SSL certificate| |`vercel certs rm `|Remove certificate| |`vercel certs issue `|Issue new certificate| ## Costruire la configurazione |Command|Description| |---------|-------------| |`vercel build`|Build project locally| |`vercel --build-env NODE_ENV=production`|Set build environment| |`vercel --no-build`|Skip build process| |`vercel --debug`|Enable debug output| ## Integrazione Git |Command|Description| |---------|-------------| |`vercel git connect`|Connect Git repository| |`vercel git disconnect`|Disconnect Git repository| |`vercel git ls`|List connected repositories| ## Funzioni e percorsi API |Command|Description| |---------|-------------| |`vercel functions ls`|List serverless functions| |`vercel functions inspect `|Inspect function details| |`vercel functions logs `|View function logs| ## Aliasi di distribuzione |Command|Description| |---------|-------------| |`vercel alias ls`|List all aliases| |`vercel alias set `|Set deployment alias| |`vercel alias rm `|Remove alias| ## Impostazioni del progetto |Command|Description| |---------|-------------| |`vercel --scope `|Run command in team scope| |`vercel --token `|Use specific auth token| |`vercel --global-config `|Use custom config path| |`vercel --local-config `|Use local config file| ## Distribuzione avanzata |Command|Description| |---------|-------------| |`vercel --archive=tgz`|Create deployment archive| |`vercel --public`|Make deployment public| |`vercel --regions all`|Deploy to all regions| |`vercel --regions sfo1,iad1`|Deploy to specific regions| ## Risoluzione dei problemi |Command|Description| |---------|-------------| |`vercel --debug`|Enable debug mode| |`vercel --verbose`|Enable verbose output| |`vercel doctor`|Run diagnostic checks| |`vercel status`|Check Vercel service status| ## File di configurazione |File|Description| |---------|-------------| |`vercel.json`|Project configuration| |`.vercelignore`|Files to ignore during deployment| |`.env.local`|Local environment variables| |`.env.production`|Production environment variables| ## Comandi di integrazione |Command|Description| |---------|-------------| |`vercel integrations ls`|List integrations| |`vercel integrations add `|Add integration| |`vercel integrations rm `|Remove integration| ## Ottimizzazione delle prestazioni |Command|Description| |---------|-------------| |`vercel --prod --regions sfo1`|Deploy to single region| |`vercel --build-env NEXT_TELEMETRY_DISABLED=1`|Disable telemetry| |`vercel --no-clipboard`|Disable clipboard copy|