@thg-altitude/cli
v0.0.34
Published
Site management command line interface for THG Altitude platform
Downloads
1,825
Readme
Altitude CLI
Site management command line interface for THG Altitude platform
To use this CLI you will need a client_id and secret_key which can be obtained by visiting the site
Headless Usage
Set the following environment variables to Auth
ALTITUDE_CLIENT_ID
ALTITUDE_SECRET_KEY
yarn global add @thg-altitude/cli
altitude deploy --site thg.com --branch main --env environment-name
or
npx @thg-altitude/cli deploy --site thg.com --branch main --env environment-name
You can also deploy specific commits by declaring the github reference.
yarn global add @thg-altitude/cli
altitude deploy --site thg.com --ref {GITHUB_REF} --env environment-name
or
npx @thg-altitude/cli deploy --site thg.com --ref {GITHUB_REF} --env environment-name
yarn global add @thg-altitude/cli
altitude environment info --site thg.com --env environment-name
yarn global add @thg-altitude/cli
altitude environment delete --site thg.com --env environment-name
Development
This project is built with TypeScript
Running the CLI in development mode
yarn dev
Building
yarn build