Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 431 Bytes

File metadata and controls

23 lines (16 loc) · 431 Bytes

garden netlify-token

Get the current Netlify personal access token provided by the NETLIFY_TOKEN environment variable or the value of the netlify.token git configuration option.

Usage

import { netlifyToken } from '@zendeskgarden/scripts';

(async () => {
  const token = await netlifyToken();

  console.log(token && token.replace(/./gu, '*'));
})();

Command

garden netlify-token [--no-mask]