JOLT docs v0.1.0 Apps Install

The jolt CLI

jolt is JOLT's command line. It does everything JUICE does, from a terminal: send a project folder to JET, see and use the running app, run functions, sync with the document and publish. AI agents use it to check their own work in Office.

It's a single file that needs Node.js 22 or later and nothing else.

Install

curl -O https://jolt.technologylearningcompany.com/cli/jolt.mjs
node jolt.mjs install
rm jolt.mjs

jolt install copies the CLI to ~/.jolt/bin and adds that folder to your PATH in your shell's startup file (~/.zshrc, ~/.bashrc and so on), with a comment marking the line. Open a new terminal and jolt runs from any folder. A few things to know:

  • --no-path skips the PATH change and prints the line to add yourself.
  • On Windows it creates jolt.cmd, and you add the folder to PATH yourself.
  • To update, run install from a newer jolt.mjs.
  • jolt uninstall removes it and its PATH line, and keeps your settings.

JUICE and the JOLT skill for AI agents include the CLI too. In VS Code, JUICE: Install jolt Command does the same as jolt install. An agent can run the skill's copy directly with node scripts/jolt.mjs.

One-time setup

JOLT needs a free Cloudflare account for the relay that connects your computer to Office. See JUICE's setup for creating the account and an API token. If JUICE is already set up on this computer, skip this: JUICE and the CLI share their settings.

jolt setup --token <token>      # add --subdomain <name> if your account has no workers.dev name yet
jolt pair                        # prints the connection code

In Office, open JET (Home → Jolt → Run Apps), choose ☰ → Run from URL or code… and paste the code. You only do this once per computer. jolt status shows whether everything is connected.

An agent on another computer

An AI agent running in the cloud, or on another computer, can use the app in Office on your computer with only a connection code: it doesn't need your Cloudflare token. On your computer, run jolt pair --new (or copy the code from JUICE) and connect JET with it as above. Give the code to the agent, which runs:

jolt connect <code>       # or set JOLT_CONNECTION_CODE so the code stays out of shell history

It can then use every app command below, send its project files with reload, and sync, pull, embed and remove. It can't set up Cloudflare or publish. Your Office app and JET must stay open.

Anyone with the code can run code in your open document. Use a code just for that session (jolt pair --new), and make another or disconnect in JET (☰ → Disconnect VS Code) afterwards. jolt disconnect makes the agent's computer forget the code.

Working on an app

Run these inside a project folder (one with a jolt.json), or pass --dir <folder>.

jolt new my-app                  # a starter project for any Office app (or --host excel, word, powerpoint)
cd my-app
jolt reload                      # send the folder to JET, restart the app, and show it

Every command that touches the app prints it as a Markdown document that's easy to read in a terminal, and easy for an AI agent to follow. It starts with the page in reading order: headings, text, lists and tables, with each control tagged where it appears, such as [`e1` button **Write a timestamp**]. Then come any open dialog, notifications, functions still running and the app's new output. Last, after a --- CONTROLS --- line, comes every control in one list:

# JET · Budget.xlsx (excel)

## Monthly summary

Pick a month and region, then write the totals.

Month [`e2` textbox = "March"]

Region [`e4` combobox = "West" (East | West | North)]

[`e3` checkbox ☑] Include totals

[`e1` button **Write a timestamp**]

| Region | Total |
| --- | --- |
| East | 1,200 |

## Dialog: Are you sure? (answer it first)

Overwrite the summary sheet?

[`e9` button **Cancel**]

[`e10` button **Overwrite**]

## Notifications

- Done

## Still running

- `main.js#rebuild`

## Output (new since last command)

```text
12:01:03 Bolded the selection
```

--- CONTROLS ---

- `e1` button "Write a timestamp"
- `e2` textbox "Month" = "March"
- `e3` checkbox "Include totals" (checked)
- `e4` combobox "Region" = "West" {East | West | North}
- `e9` button "Cancel" (dialog)
- `e10` button "Overwrite" (dialog)

Each tag holds everything about one control in brackets: its ref and role, then its state and label, such as [`e1` button **Save**], [`e2` textbox = "March"] (a dropdown also lists its options) and [`e3` checkbox ☑]. The label is in bold inside the tag, unless it's already on the page next to the control. Use the ref, such as e2, in commands like jolt fill e2 April.

CommandDoes
jolt look [--page N]Show the app. A long page is shown in pages; the end of each says how to read on with --page.
jolt click <ref>Click a button, link, tab…
jolt fill <ref> <text>Replace a text field's value.
jolt select <ref> <option>Pick a dropdown option by its text or value.
jolt check / uncheck / focus <ref>Set a checkbox, or focus an element.
jolt run <file> <function>Run an exported function. A function with one parameter gets the Office context.
jolt functionsList exported functions and automations.
jolt logsThe app's output since the last command.
jolt reloadSend the folder and restart the app. JUICE also does this whenever you save.
jolt watchStay connected and reload the app whenever a project file is saved (several saves in a row reload once), printing the app's output as it arrives. Press Ctrl+C to stop. While it runs, JET's ● VS Code indicator stays green. Don't run it in a folder where JUICE is also connected: both would send the files on every save.
  • When a JOLT dialog is open, the view shows it, and only its buttons and fields can be used.
  • run and reload answer after about 3 seconds even if the function is still going (for example, waiting on a dialog). The view lists it as still running until it finishes.
  • Errors go to stderr as error: …, and the command exits with status 1.

The document

CommandDoes
jolt pull [folder] [--force]Copy the document's project into a folder. It won't replace changed files without --force.
jolt sync [--keep folder|document|markers]Exchange changes both ways, as in JUICE. When files changed on both sides, it lists them and stops, unless --keep says which side wins. markers merges them with conflict markers for you to edit.
jolt embedCopy the folder into the document. You confirm in Office.
jolt removeDelete the project from the document. You confirm in Office.
jolt publish [--name N] [--launch]Publish to your Cloudflare account. --launch makes the connected document run the published app.

Changes to the document are kept only when you save it in Office.

Other commands

CommandDoes
jolt statusShow the setup, the connected document and the project folder.
jolt connect [code] / disconnectUse a connection code made elsewhere, with no Cloudflare setup, or forget it. See An agent on another computer.
jolt pair --newMake a new connection code. Panes using the old one stop connecting.
jolt forgetRemove the Cloudflare token and pairing from this computer, for JUICE too.
jolt install / uninstallAdd or remove the jolt command for this user. See Install.
jolt helpList every command.

Settings are kept in ~/.jolt/config.json, or in the folder named by JOLT_HOME. Each project folder has its own connection code: jolt pair, connect and disconnect act on the project you run them in, as JUICE does in the window open on it. That lets two projects run in two documents at the same time. See Security and privacy.