An SDK for the Altitude platform.
Simply run
npm i @thg-altitude/sdk
or
yarn add @thg-altitude/sdk
You will need to initialise an instance of Altitude inside your project, using a client Id and secret obtained from the altitude platform site.
import { Altitude } from '@thg-altitude/sdk';
const altitude = new Altitude({
clientId: client_id,
clientSecret: secret_key,
});
You can then perform such commands as
altitude.getAllSites(), altitude.deploy({branch: string}, siteId) etc
to deploy your sites.
You can find a full list of possible methods and documentation for this package at https://thg-headless.github.io/sdk.
Generated using TypeDoc