netlify command-line lets you specify the access_token
either through ~/.config/.netlify
or the -A
switch.
However I was wondering whether it'll be accepted through the ./netlify.toml
config file.
In the docs there seem to be fields that suggest it might:
[context.production]
environment = { ACCESS_TOKEN = "super secret", NODE_ENV = "8.0.1" }
[context.deploy-preview.environment]
ACCESS_TOKEN = "not so secret"
But when I try it gives the error "No access token found. Please login." (from debug logs)
So, is it possible to set the access_token
through ./netlify.toml
file, and if so what am I doing wrong?
If not, what do the ACCESS_TOKEN
mentioned in the docs actually do, and how are they different from the access_token
found in ~/.config/.netlify
file?