

The deploy key does not require write access.Ĭopy the key printed in the command line, then add it to your Git provider. Netlify uses a deploy or access key to fetch your repository using ssh for building and deploying. You’ll need to manually add the key and webhook URL to your Git provider. The Netlify CLI will prompt you to set your deploy settings and then provide you with a deploy/access key and a webhook URL. Save the token as a NETLIFY_AUTH_TOKEN environment variable in your terminal settings or in the UI of a Continuous Integration (CI) tool. Once you navigate from the page, the token cannot be seen again. Under Personal access tokens, select New access token.Ĭopy the generated token to your clipboard. You can generate an access token manually in your Netlify user settings for Personal access tokens.

You can find the Netlify CLI global configuration file, config.json, under your user in these OS-specific locations: The Netlify CLI uses the token in this file automatically for all future commands.

Once authorized, Netlify CLI stores your access token in a config.json global configuration file. This will open a browser window, asking you to log in with Netlify and grant access to Netlify CLI.
