Install Forge CLI:
npm i -g @forge/cli@latest
Docs: https://developer.atlassian.com/platform/forge/cli-reference/
- Clone this repository
- Run
npm install - Run
npm run devfor active development via tunneling. - Run
npm run deployto deploy your changes to dev. - Run
npm run deploy:prodto deploy your changes to prod.
import { getAppContext } from "@forge/api";
const { environmentType } = getAppContext(); // "production" | "development"Learn more: https://developer.atlassian.com/platform/forge/runtime-reference/app-context-api/