title | description |
---|---|
Netlify CLI sites command |
Manage Netlify sites via the command line |
Handle various site operations The sites command will help you manage all your sites
Usage
netlify sites
Flags
filter
(string) - For monorepos, specify the name of the application to run the command indebug
(boolean) - Print debugging information
Subcommand | description |
---|---|
sites:create |
Create an empty site (advanced) |
sites:create-template |
(Beta) Create a site from a starter template |
sites:delete |
Delete a site |
sites:list |
List all sites you have access to |
Examples
netlify sites:create --name my-new-site
netlify sites:list
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 underdisable-linking
(boolean) - create the site without linking it to current directoryfilter
(string) - For monorepos, specify the name of the application to run the command inmanual
(boolean) - force manual CI setup. Used --with-ci flagname
(string) - name of sitewith-ci
(boolean) - initialize CI hooks during site creationdebug
(boolean) - Print debugging information
(Beta) Create a site from a starter template Create a site from a starter template.
Usage
netlify sites:create-template
Arguments
- repository - repository to use as starter template
Flags
account-slug
(string) - account slug to create the site underfilter
(string) - For monorepos, specify the name of the application to run the command inname
(string) - name of siteurl
(string) - template urlwith-ci
(boolean) - initialize CI hooks during site creationdebug
(boolean) - Print debugging information
Examples
netlify sites:create-template
netlify sites:create-template nextjs-blog-theme
netlify sites:create-template my-github-profile/my-template
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
filter
(string) - For monorepos, specify the name of the application to run the command inforce
(boolean) - delete without prompting (useful for CI)debug
(boolean) - Print debugging information
Examples
netlify sites:delete 1234-3262-1211
List all sites you have access to
Usage
netlify sites:list
Flags
filter
(string) - For monorepos, specify the name of the application to run the command injson
(boolean) - Output site data as JSONdebug
(boolean) - Print debugging information