@capawesome/cli
v4.8.1
Published
The Capawesome Cloud Command Line Interface (CLI) to manage Live Updates and more.
Downloads
25,482
Readme
cli
💻 The Capawesome Cloud Command Line Interface (CLI) can be used to manage Live Updates from the command line.
Installation
The Capawesome Cloud CLI can be installed globally via npm:
npm install -g @capawesome/cliUsage
The Capawesome Cloud CLI can be invoked with the @capawesome/cli command.
npx @capawesome/cli <command> [options]You can find a list of available commands in the Command Reference.
Help
The Capawesome Cloud CLI ships with command documentation that is accessible with the --help flag.
npx @capawesome/cli --helpDevelopment
Getting Started
Run the following commands to get started with development:
Clone the repository:
git clone https://github.com/capawesome-team/cli.gitInstall dependencies:
npm installCopy the
.capawesomerc.examplefile to.capawesomercRun your first command:
npm start -- --helpNote: The
--is required to pass arguments to the script.
Testing Proxy Support
To test HTTP/HTTPS proxy functionality locally:
Start Squid proxy in a separate terminal:
docker run --rm --name squid-proxy -p 3128:3128 -v $(pwd)/squid.conf:/etc/squid/squid.conf:ro sameersbn/squid:latestSet proxy environment variables and run the CLI:
export https_proxy=http://localhost:3128 npm run build && node ./dist/index.js loginTo see debug output:
DEBUG=https-proxy-agent node ./dist/index.js login
Changelog
See CHANGELOG.
License
See LICENSE.
