A CLI tool for generating reports.
- Clone this repository to your local machine.
git clone git@github.com:claranet-it/brickly-cli.git
- Navigate into the project directory.
cd brickly-cli
- Link the package globally using npm.
npm link
- You should now have the
brickly
command available globally.
This tool requires an environment variable for authentication: BRICKLY_TOKEN: Obtain this token from Brickly, which can be found in localStorage['auth_token'] in your browser.
You can set the BRICKLY_TOKEN environment variable in several ways:
Temporarily for the current terminal session:
export BRICKLY_TOKEN='your-token'
Permanently for all terminal sessions:
Add the export command to your ~/.zshrc or ~/.bashrc file:
echo "export BRICKLY_TOKEN='your-token'" >> ~/.zshrc
After editing ~/.zshrc or ~/.bashrc, reload the file to apply the changes:
source ~/.zshrc # For zsh users
source ~/.bashrc # For bash users