docs/commands/clone.md
cloneClone a repository and link it to a Netlify project
You can clone from:
When cloning a Netlify site that has a connected repository, the repository will be cloned from the connected source (GitHub, GitLab, etc.).
If you specify a target directory, the repo will be cloned into that directory. By default, a directory will be created with the name of the repo or site.
Usage
netlify clone
Arguments
Flags
filter (string) - For monorepos, specify the name of the application to run the command inid (string) - ID of existing Netlify project to link to (only for GitHub/GitLab repos)name (string) - Name of existing Netlify project to link to (only for GitHub/GitLab repos)debug (boolean) - Print debugging informationauth (string) - Netlify auth token - can be used to run this command without logging inExamples
netlify clone my-site-name
netlify clone https://my-site.netlify.app
netlify clone https://app.netlify.com/sites/my-site
netlify clone vibecoder/next-unicorn
netlify clone https://github.com/vibecoder/next-unicorn.git
netlify clone [email protected]:vibecoder/next-unicorn.git
netlify clone vibecoder/next-unicorn ./next-unicorn-shh-secret
netlify clone --id 123-123-123-123 vibecoder/next-unicorn
netlify clone --name my-project-name vibecoder/next-unicorn
netlify clone my-site-name ./local-folder