Course menuForge Cloud

Questions

FAQ

What to run after a change, what to do when something breaks, and every command and word the course uses, each in one place.

After a change, what do I run?

Find what you just changed. The commands are in the order to run them, from the app folder.

I changed code in src/

Both levels

With forge tunnel running on your own computer, save the file and reload the Jira page: the tunnel serves your laptop’s code. Without the tunnel, or in a codespace in your browser, deploy:

RunTerminal
forge deploy

The site picks up the new version on its own. You do not need to install again.

I added a scope or an outside host

Both levels

A permission change makes a new major version. Approve it, then move each installation onto it:

RunTerminal
forge deploy --approve MAJOR_VERSION_RULE
forge install --upgrade

If the app is installed on Jira and Confluence, run the upgrade for each; it asks which installation.

I set or changed a variable

Both levels

Variables reach your functions with the next deploy:

RunTerminal
forge variables list
forge deploy

Variables belong to one environment. Unless you add -e followed by an environment name (such as -e production), both commands use development.

I changed the check-in desk (Level 2)

Level 2

The desk is built from static/desk/src into static/desk/build, which is what Forge serves. Build, then deploy:

RunTerminal
npm run build:ui
forge deploy

I added an npm package

Both levels

Install it so package.json lists it, then deploy. Forge bundles what package.json and your imports name:

RunTerminal
npm install @forge/api
forge deploy

The app now writes to Confluence (Level 2)

Level 2

Deploy and upgrade as for any permission change, then install the app on Confluence on the same site, once:

RunTerminal
forge deploy --approve MAJOR_VERSION_RULE
forge install --upgrade
forge install

In the last command, choose Confluence and the same developer site. After that, each major version needs forge install --upgrade for both installations.

Something went wrong

Find the message or the symptom. Each answer says why it happens and how to get going again.

Deploy stops after a permission change

Both levels

That is expected, not an error. A new scope or outside host makes a new major version, which you approve. Then move each installation onto it. On your own developer site you are the admin, so you accept it yourself:

RunTerminal
forge deploy --approve MAJOR_VERSION_RULE
forge install --upgrade

I can’t find how to create the Workshop space, or Jira asks things the lesson doesn’t mention

Level 1

In Jira, look for Create space (on older screens Create project), usually next to Spaces in the left sidebar. Choose the Kanban template, name the space Workshop and set its key to WS. Jira may then offer extra screens, such as adding AI agents, inviting your team or connecting other tools: skip each one and don’t invite anyone, because this space is only for your practice. You should end up on the Workshop board. If you can’t create spaces at all, you are probably not on your own developer site; see Get a developer site.

`forge install` says the app is “already installed … status COMPLETED”

Both levels

Good news, even though it is red and says Error: the app is already on that site, so there is nothing to install. The CLI then tells you to run forge install again, but that would fail the same way; don’t. You install once per site and product, and every later forge deploy reaches the site by itself. If a lesson asks you to install, tick the step and carry on. Only when a deploy adds new permissions do you run forge install --upgrade, and the lesson says when.

`forge install` says “Insufficient permissions to install app”

Both levels

Only a site admin can install an app, and the account you are logged in with is not an admin of that site. That usually means you picked a site that isn’t your own developer site, such as one your company or team uses. Create a developer site of your own, where you are the admin, and install there:

RunTerminal
forge site provision
forge install

The CLI also suggests sending an installation link to the site’s admin. That is the right route for a real company site, but not for this course: keep your practice app off sites other people use.

After changing manifest.yml, `forge lint` or `forge deploy` reports an error in the manifest

Both levels

Most often the spaces at the start of the lines are off. In manifest.yml those spaces matter: they show what belongs inside what, the way an outline does. Every line you add must start with exactly as many spaces as the line it sits next to in the lesson’s change, and it must use spaces, not tabs. Compare your file with the change, line up the new lines, save, and run:

RunTerminal
forge lint

If you are still stuck, download the code after the lesson (the link at the end of each lesson) and compare its manifest.yml with yours.

`forge webtrigger create` says the web trigger “was not found in the provided installation context”

Level 2

Adding the web trigger made a new major version, and your installations are still on the old one, which has no web trigger. Approve the new version, upgrade the installations, then ask for the URL again:

RunTerminal
forge deploy --approve MAJOR_VERSION_RULE
forge install --upgrade
forge webtrigger create --functionKey online-bookings

If the app is installed on Jira and Confluence, run the upgrade for both; the CLI asks which one.

“Make sure you’re in the top-level directory of your app” or “Command failed due to validation error”

Both levels

The terminal is not in your app folder, so the command can’t find manifest.yml. This happens most often in a codespace: every new terminal, and the codespace after it restarts, opens in the workspace folder (/workspaces/forge-cloud-workspace), one level above your app. The end of the error line, manifest-file-required, says the same thing.

Move into the app folder and run the command again:

RunTerminal
cd Workshop-helper
forge deploy

The prompt in the terminal shows where you are: it should end in Workshop-helper. If you gave your app another name, use that folder’s name instead.

“Unsupported Node.js version” when you run forge

Both levels

The Forge CLI needs a newer Node.js than the one you have, and it refuses to start until you update. The message names what it accepts, for example ^24.22.1: that means 24.22.1 or any later 24. node --version shows what you have.

In a codespace or a container, or if you installed Node with nvm, install the newest Node 24 and make it the one every terminal uses:

RunTerminal
nvm install 24
nvm alias default 24

Then open a new terminal and run forge --version again. On your own computer without nvm, install the current LTS version from nodejs.org (opens in a new tab) and open a new terminal.

`forge whoami` says “UserNotFoundError” or that you are not logged in

Both levels

Your account is fine: the CLI is using a token that is mistyped, expired or revoked. API tokens expire on the date you picked when you created them. Create a new token at id.atlassian.com/manage-profile/security/api-tokens (opens in a new tab), then log in with it:

  • In a codespace or a container, run course-login and paste the new token.
  • If you saved the token as the FORGE_API_TOKEN Codespaces secret, either run course-login (it wins over the secret), or update the secret at github.com/settings/codespaces (opens in a new tab) and restart the codespace: until then the old secret keeps being used.
  • On your own computer, run forge login.

Then run forge whoami again.

“Unable to get local issuer certificate”

Both levels

A VPN or company proxy is reading your secure (HTTPS) connections on their way out, and Node does not trust the certificate it uses to do that. Disconnect the VPN and try again. If your company needs a proxy, set it for npm with the values from your IT team:

RunTerminal
npm config set proxy http://proxy.example.com:8080
npm config set https-proxy http://proxy.example.com:8080

npm reports permission errors when installing the CLI

Both levels

Global npm installs are trying to write to a system folder that only an administrator can change. Do not fix it with sudo: files installed with administrator rights cause more permission errors later. Instead, install Node with a version manager such as nvm (opens in a new tab), which keeps everything in your home folder, then install the CLI again as yourself.

Installing the CLI fails with “spawn ts-node ENOENT”

Both levels

Your terminal has an environment variable called NODE_ENV set, which changes how npm installs packages, and the CLI’s installer then misses a tool it needs. Clear it for this terminal and install again:

RunTerminal
unset NODE_ENV

In PowerShell: Remove-Item Env:NODE_ENV.

I can’t see the car details card on the work item

Level 1

Check that the app is installed on the site you are looking at (forge install list). Then open a work item and look under its title for a small icon called View app actions (hover over the icons to see their names); select it, then Car details. Issue panels are added this way once per work item, so every new work item needs it once. The panel can take about ten seconds to load the first time, and shows a DEV badge because you are running the development version.

The card says “No API Ninjas key”

Both levels

The variable is missing in this environment, or you have not deployed since setting it:

RunTerminal
forge variables set --encrypt API_NINJAS_KEY
forge deploy

With forge tunnel running, your laptop runs the code, so the key has to be in your shell as FORGE_USER_VAR_API_NINJAS_KEY. In bash or zsh, read -s FORGE_USER_VAR_API_NINJAS_KEY && export FORGE_USER_VAR_API_NINJAS_KEY asks for it without echoing it.

The card says “The car data service answered 400” (or 401, 403)

Both levels

A 400 that says the endpoint is “only available to premium subscribers” means the code calls a Cars endpoint a free key cannot use, such as /v2/cars. Check that src/cars/apiNinjas.js calls /v2/carfacets.

A 401 or 403 means API Ninjas did not accept the key. Copy it again from your API Ninjas account, set it again with forge variables set --encrypt API_NINJAS_KEY, and deploy.

The card says there is no car data for my work item

Level 1

The card reads the make and model from the start of the summary, before the first dash with a space on each side. Start the summary with a car the service knows, such as “Volkswagen Golf – oil service”, and reload. Makes of two words, such as Land Rover, work only if the helper in src/cars/summary.js lists them.

The app asks me to “Allow access”

Both levels

Apps that call Jira or Confluence on your own login (asUser()) need your consent once per person. Select Allow access, accept, and reload.

The tunnel says Reloading code, but Jira still shows the old version

Both levels

Jira only uses the tunnel when your browser runs on the same computer as forge tunnel. When you open Jira, your browser looks for the tunnel on your own computer. If it cannot find it, Jira shows your last deploy without any error.

  • You build in a codespace in your browser. The codespace runs on GitHub’s computer, so your browser never finds the tunnel. Stop the tunnel with Ctrl+C, then after each change deploy and reload:
RunTerminal
forge deploy
  • You changed manifest.yml. The tunnel only runs code. Stop it, deploy, then start it again.
  • Your browser blocks it. The tunnel works in Chrome and Firefox. Ad blockers, Brave Shields and some extensions block the connection to your own computer; turn them off for your Atlassian site. If Chrome asks whether the site may reach apps and devices on your network or this device, allow it.

The tunnel is running while I deploy or upgrade

Both levels

Stop it with Ctrl+C first, then deploy or upgrade, then start it again. While the tunnel runs, Jira runs the code on your laptop instead of your last deploy, so if you deploy with it running you cannot tell which version you are testing. Changes to the manifest only reach the site through a deploy, never through the tunnel.

`forge install` warns about installing a development app on a production site

Both levels

The CLI warns because the development version of an app changes often and is not meant for sites where people do real work. If the site is your own developer site, that is exactly what it is for: answer yes. If it is a site your company or team uses, answer no and install on a developer site instead.

“Cannot find module @forge/…”

Both levels

The code imports a package that is not installed. Install the one named in the message, then deploy:

RunTerminal
npm install @forge/api
forge deploy

The check-in desk page is blank

Level 2

Forge serves static/desk/build, which only exists after a build. Run npm run build:ui, then forge deploy. If it is still blank, check that resources in the manifest points at static/desk/build.

Creating a repair task fails with “Jira answered 400”

Level 2

Usually the issue type. The app creates a Task in the space set by WORKSHOP_PROJECT_KEY. If your space has no Task type, set another one and deploy:

RunTerminal
forge variables set WORKSHOP_ISSUE_TYPE Story
forge deploy

My check-in stays “waiting” or ends “failed”

Level 2

The consumer ran into a problem. Read its log, which names the step that failed:

RunTerminal
forge logs --since 15m

The usual causes are a missing WORKSHOP_PROJECT_KEY, a Jira space you cannot create work items in, or Forge LLM not being available on the site yet.

Forge LLM found no repairs in the notes

Level 2

The notes have to describe faults or services. Write them plainly, one repair per sentence (“Oil service is due. The brakes squeak.”), and check the car in again. If the logs show a Forge LLM error instead, check that the llm module is in the manifest and that you approved and upgraded after adding it.

Moving a repair task to “Approved for expert” does nothing

Level 2

The handoff checks four things before it sends a repair on: the repair task is in your Workshop space, it has the needs-expert label, its status is exactly the one named by HANDOFF_STATUS in src/lib/config.js (by default “Approved for expert”), and it was not sent on before. The log says which check stopped it.

The diagnosis expert does not appear in Rovo

Level 2

Rovo has to be active on the site, and the installation has to be on the version that added the agent. Deploy, approve and upgrade, then open Rovo Chat and browse agents.

Commands at a glance

Every command the course uses. Run them from the app folder.

Set up

Once per laptop, app or site.

npm install -g @forge/cli@latest
Installs (or updates) the Forge CLI on your laptop. Once, before anything else, and again when the CLI says it is out of date. Run it without sudo: installed with administrator rights, its files cause permission errors later.
forge --version
Prints the CLI version, which proves the install worked. Right after installing or upgrading the CLI.
forge login
Logs the CLI in with your Atlassian email and an API token. It asks for both. Once per laptop, or when the token expires.
forge whoami
Shows which Atlassian account the CLI is logged in as. After logging in, or when a command says you are not allowed.
forge site provision
Creates a free development site of your own, or shows the one you have. Once, during setup, if you do not have a developer site yet.
forge create
Registers a new app and copies a starter template into a new folder. It asks which template. Once, at the start of Level 1.
forge register
Gives a downloaded copy of the app your own app id. Only if you start from one of the course’s code downloads instead of your own folder.
npm install
Installs the packages listed in package.json. After creating or downloading the app, and after pulling in someone else’s changes.
forge install
Installs the deployed app on one site and product. It asks which. Once per site and product. Later deploys reach it on their own.
forge install --product confluence
Installs the same app on Confluence, on the same site. Once, in Level 2, before the app writes Confluence pages.
forge variables set --encrypt API_NINJAS_KEY
Stores a secret with the app. The CLI asks for the value without showing it. Once per environment, for the API Ninjas key (and the booking code in Level 2). Deploy afterwards.
forge variables set WORKSHOP_PROJECT_KEY WS
Stores a setting that is not secret, such as your Jira space key. In Level 2 setup, once per environment. Deploy afterwards.
forge webtrigger create
Prints the URL of a web trigger for one installation. It asks which. In Level 2, lesson 8, to find the online bookings address.

After every change

When you edit code, the manifest or the check-in desk.

npm run build:ui
Builds the check-in desk (Custom UI) into static/desk/build. Before every deploy that changes the check-in desk. From Level 2, lesson 1.
forge deploy
Uploads your code and manifest as a new version, to the development environment by default. After every change to code, the manifest or a variable.
forge tunnel
Runs your functions on your laptop while the site keeps calling them. While you work on code, so changes show on refresh without a deploy. Press Ctrl+C to stop.

After a permission change

When the manifest asks for more: new scopes or outside hosts.

forge deploy --approve MAJOR_VERSION_RULE
Deploys a version that changes permissions, which Forge treats as a new major version. When forge deploy stops because you added a scope or an outside host.
forge install --upgrade
Moves an installation onto the new major version, so the site grants the new permissions. After an approved deploy. Run it for each product the app is installed on.

Check and debug

Before a deploy, or when something looks wrong.

forge install list
Lists where the app is installed, with the version and environment. When you are not sure the app is on the right site.
forge variables list
Lists the variables of an environment. Encrypted values are hidden. To check a variable is set, and set in the right environment.
forge lint
Checks the manifest and code for problems before a deploy. After every manifest change, and whenever a deploy fails.
forge lint --fix
Adds the scopes your code needs to the manifest. After you call a new product API, before you deploy.
forge logs --since 15m
Shows what your functions logged in the last 15 minutes, including errors. When something did not happen, or happened twice.

Clean up

When you are finished.

forge uninstall
Removes the app from a site. When you are finished with the course.

Words, in one line

Each word is explained properly once, where the course first uses it. Here is the one-line version, its workshop name where it has one, and Atlassian’s own page.

Agent handoffsending a repair to the expert

When a work item labelled needs-expert reaches the “Approved for expert” status, the app sends it on once.

App code

The JavaScript in your app folder: the frontend that draws the UI and the functions that run in the cloud.

asApp()on the workshop’s account

Calls a product API as the app itself. Needed when no user is present, such as in a queue consumer or trigger.

asUser()on your own login

Calls a product API as the person using the app, with exactly their permissions.

Atlassian API token

A token from your Atlassian account that forge login uses to act as you.

Checkpointticking repairs off

Progress saved in storage as the worker goes, so a retried event skips the work already done.

Confluence pagethe repair report

A Confluence page the worker writes once per check-in, listing every repair task it created.

Consumer (worker function)the next free mechanic

The function a consumer module runs for each queue event, after the original request has already returned.

Custom UI

Your own HTML, CSS and JavaScript, served from a resources folder and shown in a sandboxed frame.

Deploy

forge deploy uploads your code and manifest to the Atlassian cloud as a new version. It changes nothing on a site by itself.

Developer site

A free Atlassian site of your own, where you can install unfinished apps without any risk to real work.

Egress permissionapproved services

Forge blocks calls to the outside unless the host is listed under permissions.external.fetch.backend.

Environment

Forge keeps separate copies of each app: development (the default), staging and production, each with its own variables.

Environment variablethe key safe

A named value stored with the app, read in code as process.env.NAME. --encrypt hides the value from forge variables list.

External APIthe car data service

A service outside Atlassian that your functions call over HTTPS. Here it is API Ninjas, whose Cars API says what a model comes in.

Fan-outone repair task per fault

One input becomes many outputs: one check-in becomes one Jira work item per repair.

Forge

Atlassian’s app platform: you write the code, Atlassian hosts it, runs it and keeps it next to the product’s data.

Forge app

Your code plus its manifest. One app can add several things to Jira and Confluence at once.

Forge bridge

@forge/bridge connects your frontend to Forge: invoke(), view.getContext(), router and more.

Forge CLI

The forge command on your laptop. It creates, deploys, installs and tunnels your app.

forge install --upgradethe site admin signs the new approval

Moves an installation onto a new major version so the site grants the new permissions.

forge lint

Checks the manifest and code before a deploy. --fix adds missing scopes it can infer from your code.

Forge LLM

Large language models hosted by Atlassian, called with chat() from @forge/llm after declaring an llm module.

forge logsthe workshop log

Shows what your functions printed with console.log and any errors, for a site and environment.

Forge MCP server

An MCP server from Atlassian that gives AI coding tools current Forge documentation and guides while you work.

Forge SQL

A relational database per installation, for data you query with joins and filters. This course uses KVS instead.

forge tunnel

Runs your functions on your laptop while the site keeps calling them, so changes show up on refresh without a deploy.

Function

A named entry point in your code (handler: file.export) that Forge runs in the cloud when something calls it.

Global page (jira:globalPage)the check-in desk

A full page of your own in Jira’s Apps menu. Here the person at the front desk names the car and pastes the notes.

ignoreSelfthe bell ignores the workshop’s own repair tasks

A trigger filter that skips events the app caused itself, so its own edits don’t re-run it.

Install

forge install puts a deployed app on one site and product. You do it once per site; later deploys reach it automatically.

invoke()

The frontend’s way to call a resolver function by name and wait for its answer.

Issue panel (jira:issuePanel)the car details card

A module that adds your UI to the work item view, below the description.

Jira work itema repair task

A Jira issue. In this course each work item is a repair task, such as “BMW 3 Series – grinding noise from front”.

Key-Value Store (KVS)the filing cabinet

Forge’s hosted storage of JSON values by key, from @forge/kvs. Each installation has its own.

Major versionextra work needs a new approval

A deploy that changes permissions creates a new major version. You approve it, then each site has to accept it.

manifest.ymlthe customer’s signed approval

The app’s description of itself: what it adds (modules), which files it serves (resources) and what it may do (permissions).

Module

One thing your app adds to a product, such as jira:issuePanel or trigger. Each has a unique key.

Product contextthe task number

Forge tells your functions where they were called from, for example context.extension.issue.id.

Product REST APIs

Jira and Confluence REST APIs, called from functions with requestJira and requestConfluence.

Product triggerthe bell

A trigger module runs a function when a product event happens, such as avi:jira:created:issue.

Queue (@forge/events)the queue

Async events: push a small message now, and a consumer function handles it later, with its own longer time limit.

Queue eventthe check-in number

The small body you push to a queue. Keep it to an id and keep the real data in storage.

Resolver

Backend functions, each with a name, that the frontend calls with invoke(). They run in the Atlassian cloud, not in the browser.

Rovo actiona tool

An action module: a function with typed inputs that a Rovo agent may decide to call.

Rovo agent (rovo:agent)the diagnosis expert

An AI agent your app adds to Rovo, with a prompt and a list of actions it may call.

Runtime limits

Every function invocation has a time limit. Work that may take longer belongs in a queue consumer, which can be given more time.

Scopea line on the signed approval

A permission such as read:jira-work that the app must declare before it may call a product API.

Shared secretthe booking code

A web trigger URL is public, so the app checks a secret header against an encrypted variable before doing anything.

Site

One Atlassian cloud site, such as your-name.atlassian.net, with its own Jira, Confluence and users.

Studio agent

An agent built in Rovo Studio in the browser, with no code and no app of its own.

Template (forge create)

forge create registers a new app and copies a working starter for the module you pick.

Tracking idthe check-in receipt

The id the resolver returns at once, here checkInId, so the page can ask about progress later.

UI Kit

Atlassian’s React components for Forge (@forge/react). They render natively and look like the product.

Web triggeronline bookings

A webtrigger module gives your app a URL that outside systems can call over HTTPS.

Type at least two letters.