N
Netlify CLI
Details
- Command
-
netlify - Docs
- https://docs.netlify.com/api-and-cli-guides/cli-guides/get-started-with-cli/
Authentication
Netlify CLI authorized access token bearer discovered
$ netlify login Acquired by the CLI — running netlify login opens the auth flow and stores the credential.
env NETLIFY_AUTH_TOKEN In Netlify, open Applications > Personal access tokens, select New access token, name it, optionally allow access to SAML-based team data, choose an expiration, then Generate token and copy it. Use it in API calls as Authorization: Bearer <YOUR_PERSONAL_ACCESS_TOKEN>. For CLI use in CI, save it as NETLIFY_AUTH_TOKEN.