docs/commands/sites.md
sitesHandle 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:delete | Delete a project |
sites:list | List all projects you have access to |
sites:search | Search for projects by name |
Examples
netlify sites:create --name my-new-project
netlify sites:list
sites:createCreate 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 injson (boolean) - Output project data as JSONmanual (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 inprompt (string) - description of the site to create (delegates to netlify create)with-ci (boolean) - initialize CI hooks during project creationsites:deleteDelete a project This command will permanently delete the project on Netlify. Use with caution.
Usage
netlify sites:delete
Arguments
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 inExamples
netlify sites:delete 1234-3262-1211
sites:listList 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 insites:searchSearch for projects by name
Usage
netlify sites:search
Arguments
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 inExamples
netlify sites:search my-project
netlify sites:search "partial name" --json