Get the current Netlify personal access token provided by the NETLIFY_TOKEN
environment variable or the value of the netlify.token
git configuration
option.
import { netlifyToken } from '@zendeskgarden/scripts';
(async () => {
const token = await netlifyToken();
console.log(token && token.replace(/./gu, '*'));
})();
garden netlify-token [--no-mask]