All apps/Netlify CLI

Netlify CLI

netlify

Interact with Netlify from the comfort of your CLI.

Runs as netlify, ntl|macOS, Linux, Windows|cli.netlify.com

Command form

ai-draft · 3 tasks · 18 fields

Global options only; use the Deploy and Dev subcommands.

Opens the form; the finished command lands at your prompt, unrun
otty gui netlify

netlify deploy

Deploy site

Create a deploy from a folder. Auth tokens and proxy settings are left out.

Deploy siteExample values, fixed in this page — nothing here reaches a terminal
Basic
Folder to deploy
directory
Deploy message
string
Run build first
--build
Advanced
Deploy alias
string
TasksEach one presets the form for one job
Draft deploy
dirmessagebuildalias
Production deploy
dirmessagebuild
ParametersOnly these flags are editable in the form
Folder to deploy
path
--dir-d
Functions folder
path
--functions-f
Deploy message
string
--message-m
Deploy to production
boolean
--prod-p
Run build first
boolean
--build
Site ID
string
--site-s
Deploy alias
string
--alias
Open site after deploy
boolean
--open-o
JSON output
boolean
--json
Production if unlocked
boolean
--prodIfUnlocked

netlify dev

Local dev server

Run the local dev server.

Local dev serverExample values, fixed in this page — nothing here reaches a terminal
Basic
Command to run
string
Port
integer
Advanced
Framework
string
TasksEach one presets the form for one job
Start dev server
portcommandframework
ParametersOnly these flags are editable in the form
Command to run
string
--command-c
Port
integer
--port-p
Target app port
integer
--targetPort
Static files dir
path
--dir-d
Functions folder
path
--functions-f
Public live session
boolean
--live-l
Offline
boolean
--offline-o
Framework
string
--framework
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed netlify against its version. A form that does not match your version is not offered.