@financial-times/fastly-tools

Command Line Utility for interacting with fastly

Stats

StarsIssuesVersionUpdatedCreatedSize
@financial-times/fastly-tools
28131.7.14 years ago5 years agoMinified + gzip package size for @financial-times/fastly-tools in KB

Readme

fastly-tools

Command Line Utility for interacting with fastly

Installation

npm install --save-dev @financial-times/fastly-tools

Usage

fastly [options] [command]

  Commands:

    deploy [options] [folder]
       Deploys VCL in [folder] to the specified fastly service.  Requires FASTLY_APIKEY env var

  Options:

    -h, --help  output usage information

Commands

deploy

Deploys VCL in [folder] to the specified fastly service. Requires FASTLY_APIKEY env var

Usage: deploy [options] [folder]

Options:

-h, --help                output usage information
-m, --main <main>         Set the name of the main vcl file (the entry point).  Defaults to "main.vcl"
-v, --vars <vars>         A way of injecting environment vars into the VCL.  So if you pass --vars AUTH_KEY,FOO the values {$AUTH_KEY} and ${FOO} in the vcl will be replaced with the values of the environmemnt variable.  If you include SERVICEID it will be populated with the current --service option
-e, --env                 Load environment variables from local .env file (use when deploying from a local machine
-s, --service <service>   REQUIRED.  The ID of the fastly service to deploy to.
-V --verbose              Verbose log output
-b --backends <backends>  Upload the backends specified in <backends> via the api
-k --api-keys <keys>      list of alternate api keys to try should the key stored in process.env.FASTLY_API_KEY hit its rate limit

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.