Installing the CLI
For the vast majority of use-cases, we recommand that you install your command line tool. It’s technology-agnostic, and tries to makes things as easy as possible for you.
The CLI tool is written in Node.js, and we recommand you install it using the
Node.js package manager called
First, make sure you have npm installed. You’ll probably be able to install it through your package manager.
Then, install the
bundlecop command line tool:
npm install -g bundlecop
And that’s it. You can now submit file size readings to our server:
bundlecop submit \ --projectKey YOUR_PROJECT_KEY \ --bundleset YOUR_BUNDLE_SET_ID
Next, read the section on using the CLI.