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-pathskips thePATHchange and prints the line to add yourself.- On Windows it creates
jolt.cmd, and you add the folder toPATHyourself. - To update, run
installfrom a newerjolt.mjs. jolt uninstallremoves it and itsPATHline, 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.
| Command | Does |
|---|---|
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 functions | List exported functions and automations. |
jolt logs | The app's output since the last command. |
jolt reload | Send the folder and restart the app. JUICE also does this whenever you save. |
jolt watch | Stay 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.
runandreloadanswer after about 3 seconds even if the function is still going (for example, waiting on a dialog). The view lists it asstill runninguntil it finishes.- Errors go to stderr as
error: …, and the command exits with status 1.
The document
| Command | Does |
|---|---|
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 embed | Copy the folder into the document. You confirm in Office. |
jolt remove | Delete 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
| Command | Does |
|---|---|
jolt status | Show the setup, the connected document and the project folder. |
jolt connect [code] / disconnect | Use a connection code made elsewhere, with no Cloudflare setup, or forget it. See An agent on another computer. |
jolt pair --new | Make a new connection code. Panes using the old one stop connecting. |
jolt forget | Remove the Cloudflare token and pairing from this computer, for JUICE too. |
jolt install / uninstall | Add or remove the jolt command for this user. See Install. |
jolt help | List 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.