A Command Line Interface (CLI) for amp-toolbox

"amp-toolbox-cli has been moved to @ampproject/toolbox-cli"
Last updated 6 months ago by amp-toolbox .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install amp-toolbox-cli 
SYNC missed versions from official npm registry.

AMP-Toolbox CLI

npm version

The AMP Toolbox command line interface consists of a Node.js program called amp-toolbox-cli that can be run from a Windows, macOS, of UNIX-compatible command line environment. This way, AMP Toolbox can easily be integrated into a command line build process.

Supported commands:



Displays the help menu, listing all available commands:

$ ./amp-toolbox-cli help

Pass a command to get more information about this specific command

./amp-toolbox-cli help [command]


$ ./amp-toolbox help update-cache


Prints the current version


$ ./amp-toolbox version


Prints the current version of the AMP runtime.


$ ./amp-toolbox runtime-version

### update-cache

Uses the [AMP update-cache API]( to update documents stored in AMP Caches.

It requires the public and private keys to be generated, as [described on the documentation]( Only the private key is required to generate the cache invalidation URLs, but the public key must be made available to the AMP Caches, as described in the [guidelines](

By default, the application will look for the private key on a file called `privateKey.pem`, on the current working directory.

$ ./amp-toolbox-cli update-cache

Optionally, use the --privateKey parameter to specify the path for the private key.

$ ./amp-toolbox-cli update-cache --privateKey /path/to/private-key.pem

Current Tags

  • 1.2.0-alpha.1                                ...           canary (5 months ago)
  • 0.2.6                                ...           latest (6 months ago)

10 Versions

  • 1.2.0-alpha.1                                ...           5 months ago
  • 1.2.0-alpha.0                                ...           5 months ago
  • 0.2.6 [deprecated]           ...           6 months ago
  • 0.2.5 [deprecated]           ...           7 months ago
  • 0.2.4 [deprecated]           ...           8 months ago
  • 0.2.3 [deprecated]           ...           8 months ago
  • 0.2.2 [deprecated]           ...           a year ago
  • 0.2.1 [deprecated]           ...           a year ago
  • 0.2.0 [deprecated]           ...           a year ago
  • 0.1.0 [deprecated]           ...           a year ago
Maintainers (1)
Today 0
This Week 0
This Month 10
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (0)
Dependents (0)

Copyright 2014 - 2016 © |