Netlify CLI


sites

Handle various site operations The sites command will help you manage all your sites

Usage

netlify sites

Flags

  • debug (boolean) - Print debugging information
  • httpProxy (string) - Proxy server address to route requests through.
  • httpProxyCertificateFilename (string) - Certificate file to use when connecting using a proxy server
Subcommanddescription
sites:createCreate an empty site (advanced)
sites:create-template(Beta) Create a site from a starter template
sites:deleteDelete a site
sites:listList all sites you have access to

Examples

netlify sites:create --name my-new-site
netlify sites:list

sites:create

Create an empty site (advanced) Create a blank site that isn't associated with any git remote. Will link the site to the current working directory.

Usage

netlify sites:create

Flags

  • account-slug (string) - account slug to create the site under
  • disable-linking (boolean) - create the site without linking it to current directory
  • manual (boolean) - force manual CI setup. Used --with-ci flag
  • name (string) - name of site
  • with-ci (boolean) - initialize CI hooks during site creation
  • debug (boolean) - Print debugging information
  • httpProxy (string) - Proxy server address to route requests through.
  • httpProxyCertificateFilename (string) - Certificate file to use when connecting using a proxy server

sites:create-template

(Beta) Create a site from a starter template Create a site from a starter template.

Usage

netlify sites:create-template

Flags

  • account-slug (string) - account slug to create the site under
  • name (string) - name of site
  • url (string) - template url
  • with-ci (boolean) - initialize CI hooks during site creation
  • debug (boolean) - Print debugging information
  • httpProxy (string) - Proxy server address to route requests through.
  • httpProxyCertificateFilename (string) - Certificate file to use when connecting using a proxy server

sites:delete

Delete a site This command will permanently delete the site on Netlify. Use with caution.

Usage

netlify sites:delete

Arguments

  • siteId - Site ID to delete.

Flags

  • force (boolean) - delete without prompting (useful for CI)
  • debug (boolean) - Print debugging information
  • httpProxy (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-1211

sites:list

List all sites you have access to

Usage

netlify sites:list

Flags

  • json (boolean) - Output site data as JSON
  • debug (boolean) - Print debugging information
  • httpProxy (string) - Proxy server address to route requests through.
  • httpProxyCertificateFilename (string) - Certificate file to use when connecting using a proxy server