Skip to content

Command line

Allgreen also works from a terminal, with Node 22.18 or later. Run the commands in your project folder, the one that holds (or will hold) allgreen/. Each one starts with npx allgreen; below, it is shortened to allgreen.

allgreen --help lists the commands, allgreen <command> --help the options of one, and allgreen --version prints the version.

Terminal window
allgreen ui [--port <n>] [--no-open]

Starts the editor and opens it in your browser. It is the default command: allgreen alone does the same. If the folder has no project yet, the editor offers to create one.

Option What it does
--port <n> The port to use. Without it, Allgreen uses 4747, or another free port if that one is taken.
--no-open Does not open the browser. Open the printed address yourself.

The printed address carries a key: the editor only answers that page, on this computer. Ctrl-C stops it.

Terminal window
allgreen demo [--no-open]

The one-minute trial. It copies a demo project to a temporary folder, starts a small demo shop on your computer, and opens the editor on it. Both addresses are printed. Ctrl-C stops everything and deletes the copy.

Option What it does
--no-open Does not open the browser.
Terminal window
allgreen init [--name <name>] [--url <url>]

Creates allgreen/ in the current folder, with the project settings, an example plan that checks the home page shows a heading, and an empty secrets file. It refuses if the folder already has a project.

Option What it does Default
--name <name> The project name. The folder’s name
--url <url> The site address. http://localhost:3000
Terminal window
allgreen run [plans...] [--every-step] [--lang <language>]

Runs all the plans, or only the ones you name, on every browser and device of the project, then prints a summary. Name plans by their file name without .json, for example allgreen run checkout add-to-cart. The sign-in plan always runs too, first.

While it runs, each step and each result is printed as it comes, on the error output: the summary stays alone on the standard output.

Option What it does Default
--lang <language> The language of the step sentences and failure messages: en, fr, de, es or it. en
--every-step Takes a screenshot after each step, kept in the run and its report. Slower. Off

Exit codes:

Exit code Meaning
0 Every plan passed.
1 A plan failed, or could not run (for example after a failed sign-in).
2 A problem with the project, a secret or the browsers: nothing could run.

Each run is kept in .allgreen/runs/ in your project folder, with its screenshots and videos. Delete old run folders to free space.

Terminal window
allgreen report [run-id] [--pdf] [--out <dir>] [--failures-only] [--lang <language>]

Writes the report of a run as a web page, or as a PDF with --pdf, and prints the path of the file. Without a run id, it reports the latest finished run. See Share a report.

Option What it does Default
--pdf Writes a PDF instead of a web page. It needs Chromium: see allgreen install-browsers. A web page
--out <dir> The folder to write the report in. The current folder
--failures-only Shows step by step only the plans that failed. The others stay in the summary, with their result. Every plan
--lang <language> The language of the report: en, fr, de, es or it. en

For a report with a screenshot at each step, run the plans with --every-step first.

Terminal window
allgreen export <outDir> [plans...] [--lang <language>]

Writes the plans as a standard Playwright project in the folder <outDir>, which must be new or empty. Without plan names, every plan is exported; the sign-in plan always is. See Export for continuous integration.

Option What it does Default
--lang <language> The language of the step names in the tests: en, fr, de, es or it. en
Terminal window
allgreen install-browsers

Downloads Chromium, Firefox and WebKit for Allgreen, and the ffmpeg program that records the videos of failed tries. Run it once before your first run.

On Linux, it does not install the system libraries the browsers need. Run npx playwright install-deps for that (it may ask for your administrator password).

The desktop app does this for you, on its Browsers screen.

Terminal window
allgreen mcp [--project <dir>]...
allgreen mcp --app --data-dir <dir>

Lets an AI app use Allgreen over MCP. You do not run it yourself: your AI app starts it. See Connect an AI.

Option What it does
--project <dir> A project folder the AI may use. Repeat it for several. Without it, the only project is the current folder.
--app Works on the projects of the open desktop app instead. Needs --data-dir, and no --project.
--data-dir <dir> The desktop app’s data folder. The app’s Connect an AI page gives the full command, with it filled in.

allgreen app is how the desktop app starts Allgreen inside itself. It is not meant to be run by hand.