Netlify CLI link command
Link a local repo or project folder to an existing project on Netlify
Usage
netlify linkFlags
filter(string) - For monorepos, specify the name of the application to run the command ingit-remote-name(string) - Name of Git remote to use. e.g. “origin”git-remote-url(string) - URL of the repository (or Githubowner/repo) to link toid(string) - ID of project to link toname(string) - Name of project to link todebug(boolean) - Print debugging informationauth(string) - Netlify auth token - can be used to run this command without logging in
Examples
netlify linknetlify link --id 123-123-123-123netlify link --name my-project-namenetlify link --git-remote-url https://github.com/vibecoder/my-unicorn.git