Command line interface for interacting with the Fastly API written in NodeJS.
$ yarn global add fastly-cli
$ npm install -g fastly-cli
fastly purge-all -k YOUR-API-KEY -s YOUR-SERVICE-ID
fastly purge -k YOUR-API-KEY -s YOUR-SERVICE-ID https://your-url-to-purge.com/path
fastly purge-key -k YOUR-API-KEY -s YOUR-SERVICE-ID YOUR-KEY-TO-PURGE
fastly datacenters -k YOUR-API-KEY
List public IP addresses for Fastly network.
fastly ip-list
Retrieve headers and associated data of the content for a particular URL from each Fastly edge server.
fastly edge-check -k YOUR-API-KEY https://your-url-to-check.com/path
Tests consist of unit tests and linting. By default, we run all of them.
$ npm test
$ npm run dev
$ npm run test:unit
$ npm run test:lint
MIT