| title | Netlify CLI sites command |
|---|---|
| description | Manage Netlify sites via the command line |
Handle various site operations The sites command will help you manage all your sites
Usage
netlify sites| Subcommand | description |
|---|---|
sites:create |
Create an empty site (advanced) |
sites:delete |
Delete a site |
sites:list |
List all sites you have access to |
Examples
netlify sites:create --name my-new-site
netlify sites:listCreate an empty site (advanced)
Create a blank site that isn't associated with any git remote. Does not link to the current working directory.
Usage
netlify sites:createFlags
name(string) - name of siteaccount-slug(string) - account slug to create the site underwith-ci(boolean) - initialize CI hooks during site creationmanual(boolean) - Force manual CI setup. Used --with-ci flagdebug(boolean) - Print debugging informationhttpProxy(string) - Proxy server address to route requests through.httpProxyCertificateFilename(string) - Certificate file to use when connecting using a proxy server
Delete a site
This command will permanently delete the site on Netlify. Use with caution.
Usage
netlify sites:deleteArguments
- siteId - Site ID to delete.
Flags
force(boolean) - delete without prompting (useful for CI)debug(boolean) - Print debugging informationhttpProxy(string) - Proxy server address to route requests through.httpProxyCertificateFilename(string) - Certificate file to use when connecting using a proxy server
Examples
netlify sites:delete 1234-3262-1211List all sites you have access to
Usage
netlify sites:listFlags
json(boolean) - Output site data as JSONdebug(boolean) - Print debugging informationhttpProxy(string) - Proxy server address to route requests through.httpProxyCertificateFilename(string) - Certificate file to use when connecting using a proxy server