Skip to content

Latest commit

 

History

History

bandwidth

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

garden netlify-bandwidth

Get the remaining bandwidth for a Netlify site.

Usage

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

const args: {
  siteId?: string;
  token?: string;
} = {
  /* optional overrides */
};

(async () => {
  const result = await netlifyBandwidth(args);

  if (result) {
    const { available, used } = result;

    console.log(available - used);
  }
})();

Arguments

  • siteId optional Netlify site API ID; defaults to the value provided by netlifySiteId.
  • token optional Netlify personal access token; defaults to the value provided by netlifyToken.

Command

garden netlify-bandwidth \
       [--id <id>] \
       [--token <token>]