Netlify CLI sites command
sites
Handle various project operations The sites command will help you manage all your projects
Usage
netlify sites
Flags
filter
(string) - For monorepos, specify the name of the application to run the command indebug
(boolean) - Print debugging informationauth
(string) - Netlify auth token - can be used to run this command without logging in
Subcommand | description |
---|---|
sites:create | Create an empty project (advanced) |
sites:create-template | (Beta) Create a project from a starter template |
sites:delete | Delete a project |
sites:list | List all projects you have access to |
Examples
netlify sites:create --name my-new-projectnetlify sites:list
sites:create
Create an empty project (advanced) Create a blank project that isn’t associated with any git remote. Will link the project to the current working directory.
Usage
netlify sites:create
Flags
account-slug
(string) - account slug to create the project underdisable-linking
(boolean) - create the project 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 projectdebug
(boolean) - Print debugging informationauth
(string) - Netlify auth token - can be used to run this command without logging inwith-ci
(boolean) - initialize CI hooks during project creation
sites:create-template
(Beta) Create a project from a starter template Create a project 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 project underfilter
(string) - For monorepos, specify the name of the application to run the command inname
(string) - name of projecturl
(string) - template urldebug
(boolean) - Print debugging informationauth
(string) - Netlify auth token - can be used to run this command without logging inwith-ci
(boolean) - initialize CI hooks during project creation
Examples
netlify sites:create-templatenetlify sites:create-template nextjs-blog-themenetlify sites:create-template my-github-profile/my-template
sites:delete
Delete a project This command will permanently delete the project on Netlify. Use with caution.
Usage
netlify sites:delete
Arguments
- id - Project 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 informationauth
(string) - Netlify auth token - can be used to run this command without logging in
Examples
netlify sites:delete 1234-3262-1211
sites:list
List all projects 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 project data as JSONdebug
(boolean) - Print debugging informationauth
(string) - Netlify auth token - can be used to run this command without logging in