Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.
/ fastly-cli Public archive

Command line interface for interacting with the Fastly API written in NodeJS.

Notifications You must be signed in to change notification settings

ChromaticHQ/fastly-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fastly-cli

Build Status dependencies Status

Command line interface for interacting with the Fastly API written in NodeJS.

Installation

via yarn

$ yarn global add fastly-cli

via npm

$ npm install -g fastly-cli

Basic Usage

Purge All Content

fastly purge-all -k YOUR-API-KEY -s YOUR-SERVICE-ID

Purge URL

fastly purge -k YOUR-API-KEY -s YOUR-SERVICE-ID https://your-url-to-purge.com/path

Purge Key

fastly purge-key -k YOUR-API-KEY -s YOUR-SERVICE-ID YOUR-KEY-TO-PURGE

List Datacenters

fastly datacenters -k YOUR-API-KEY

List Public IPs

List public IP addresses for Fastly network.

fastly ip-list

Edge Check

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

Tests consist of unit tests and linting. By default, we run all of them.

Run All Tests Once

$ npm test

Run All Tests and Watch For Changes

$ npm run dev

Run Unit Tests Only

$ npm run test:unit

Lint Only

$ npm run test:lint

License

MIT

About

Command line interface for interacting with the Fastly API written in NodeJS.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published