| Option | Is |
|---|---|
--json |
one JSON document on stdout instead of text |
--data DIR |
the orchard data (ORCHARD_DATA) |
--cache DIR |
the cache (ORCHARD_CACHE) |
--ecid ECID |
the device, by its ECID in any hex spelling |
--location LOCATION |
the device, by its USB location as devices prints it |
Text for people and progress go to stderr where a command also has a
result; the result goes to stdout. With --json stdout carries exactly one
document, or for install and launch one event per line. Colour is used
on a terminal only, and not with NO_COLOR set.
error: MESSAGE
HINT
on stderr, or with --json on stdout:
{"error": {"code": "locked", "message": "…", "hint": "…"}}| Code | Exit status | Means |
|---|---|---|
invalid-input |
2 | wrong use, or input that cannot be right |
no-device |
3 | no matching device is connected |
ambiguous |
3 | several things match and one was needed |
usb |
4 | talking to the device failed |
needs-input |
5 | the person has to do something first: run with the device not in pwned DFU mode in time, or at once with --no-wait |
network |
6 | a download failed |
io |
7 | reading or writing a file failed |
not-found |
8 | something named is not there |
too-large |
9 | something is larger than it may be |
unsupported |
10 | this version, or this device, cannot do it |
timeout |
11 | it took too long |
locked |
12 | another orchard holds the device |
device-changed |
13 | the device is not the one, or not in the state, it was |
refused |
14 | the device or a check refused |
build |
15 | a build's recipe failed |
format |
16 | a file is not what it should be |
Status 5 means the same in every command: something is needed from the
person first. A build or inputs that Ctrl-C ended exits with 130. session exits
with its command's status.
They have their own statuses:
| Status | Means |
|---|---|
| 0 | done |
| 2 | wrong use |
| 3 | no device, or none in DFU mode, within --wait |
| 4 | the device is not supported |
| 5 | an answer is needed and there is no terminal, or the device did not come in pwned DFU mode in time (launch; at once with --no-wait) |
| 6 | it failed, or files it got for the device can't be used |
| 7 | a download failed: the network, or the release's own files |
| 8 | interrupted |
and with --json these events, one object per line with an event field:
| Event | Carries |
|---|---|
release |
name, version |
state |
state: connect, several, found, unsupported, usb-access-needed, restarting, helper-installing, helper-sign-in, helper-code, helper-steps, helper-install-failed, wait-pwned, waiting-for-ipados, choose-split, splitting, split-done, dfu-again, create-account, confirm-erase, not-prepared, installing, install-failed, starting, launching, choose-system, nothing-installed |
needs |
action: connect, dfu (device, mode, steps, wait_s), restart (device, steps: the device is to be restarted normally), shut-down-linux (device), pwned-dfu, helper-steps (steps), unlock, input (flag, or what: apple-code), disconnect-others, connect-named and wait-for-device (devices), replug |
approved |
by: the option that answered |
split |
the storage: total, iPadOS and what it uses, the suggested, smallest and largest size, the partitions after iPadOS |
recovery |
the guided run from recovery mode into DFU mode, once per phase: phase (ready, get-ready, hold, restarted, let-go, waiting), device, seconds (how long the phase runs, or null), again and problem (in ready: the last attempt came back in recovery mode; why the device couldn't be reached) |
stage, retry |
where a start is, and that it is tried again |
progress |
percent, or step, or waiting_for (the install can't write yet: the file still downloading, such as root-image) |
systems |
entries: id, title, kernel, default (launch) |
done |
installed_in and ssh, or started |
error |
code, message, exit, log |
install, launch, run and the installer and launcher windows keep one
log per run in the cache's logs/, named by when the run started and what
ran (2026-11-28-114812-run.log; -cli for install and launch,
-installer and -launcher for the windows): what orchard did and what the
tools it ran printed, in the order it happened.
[000.0] [orchard] Run log, 2026-11-28 11:48:12, orchard 0.2.0, linux x86_64
[000.9] [orchard] Starting palera1n 2.4 -p -k pongo.bin on the device at 3-3 (Dfu mode), limit 120 s
[000.9] [orchard] USB port reset: ready, 10.0 s after the device drops if it is not back
[011.2] [palera1n 2.4] - [11/28/26 11:48:24] <Info>: Checkmate!
[011.3] [orchard] USB now: no Apple device
[021.4] [orchard] USB port reset 1: … off and on again, 10.0 s after the device dropped
Each line has the seconds since the run started and who said it: orchard,
the tool with its version (palera1n 2.4, checkra1n 0.1337.3, gaster),
or shown for what install and launch put on the terminal. Among
orchard's lines are every start and end of a tool, each step of the USB
port reset, the busy cores of --busy-cpu, and what USB shows whenever it
changes while a device is being started. gaster's lines are the stages it
tries and whether each worked.
A line is in the file the moment it is said, so a run that is cancelled or
killed leaves its log up to there. The device's ECID is never written: the
file can be posted as it is. A failed run ends with the log's path; a
run that worked has its result as the log's last line.
| Variable | Is |
|---|---|
ORCHARD_DATA |
--data |
ORCHARD_CACHE |
--cache |
NO_COLOR |
no colour |
Switches for trying a variant without a new build; each one set is written to the run's log.
| Variable | Does |
|---|---|
ORCHARD_BOOT=ROUTE |
the boot route, as --boot ROUTE (install.md); --boot counts over it |
ORCHARD_PALERA1N_BETA=0 |
palera1n v2.4 instead of the 3.0 beta |
ORCHARD_DISK_GB=N |
the size of a new disk file for install --disk, sparse (32) |
ORCHARD_READY_SECONDS=N |
how long the installer listens after an install for the started system to say it is ready, which turns the end's "is starting" into "is ready" (180); 0: not at all |
ORCHARD_UNRESPONSIVE_SECONDS=N |
how long a device running iPadOS may go unanswered after it is plugged in before the installer says it isn't responding (10) |
ORCHARD_PORT_RESET_SECONDS=N |
seconds after the exploit before the USB port is reset (Linux, 10 by default); 0: no reset |
ORCHARD_BUSY_CPU=1 |
as --busy-cpu (install.md) |
ORCHARD_KEEP_AWAKE=1 |
keeps the CPU out of deep sleep while the exploit runs (Linux) |
ORCHARD_PWNED_DFU_SECONDS=N |
how long launch and run wait for a device whose boot ROM a board enters (usbliter8) to show up in pwned DFU mode before they end with status 5 (600); --no-wait does not wait. With --json the wait is announced as {"event": "needs", "action": "pwned-dfu"} |
ORCHARD_GASTER_RECONNECT_SECONDS=N |
how long the ibss route waits for the device to connect again after gaster, and again for its new DFU session (30) |
ORCHARD_GASTER_USB_TIMEOUT=MS, ORCHARD_GASTER_ABORT_MIN=MS, ORCHARD_GASTER_ABORT_MAX=MS |
gaster's timing on the ibss route, for a computer where it does not get in: a request's timeout (5), and the least and the most an attempt waits before its abort (0, and the request's timeout; on Linux the most is 0 unless set). The run log's SETUP lines show how the attempts went |
| Variable | Does |
|---|---|
ORCHARD_PYTHON |
the Python that runs the recipes (3.11 or newer) |
ORCHARD_PUBLISHED=off |
builds every component here instead of taking the nightly's |
ORCHARD_KERNEL=local |
builds the kernels here |
ORCHARD_KERNEL_TREE |
--kernel |
ORCHARD_CACHE_BUDGET_GB |
the build cache's limit (20; 0: none) |
ORCHARD_MIN_FREE_GB |
free space a build needs to start (10; 0: no check) |
ORCHARD_BUILD_NATIVE=1 |
the recipes build on this host instead of in Podman (CI builders); part of the kernel's key with ORCHARD_BUILD_ENV_ID |
ORCHARD_KERNEL_JOBS, ORCHARD_CCACHE |
read by the kernel recipe |
A distribution's build script is given ORCHARD_CHECKOUT, ORCHARD_PYTHON
and ORCHARD_PACKAGES, and its orchard parts as --inputs FILE
(build.md).
| Variable | Does |
|---|---|
ORCHARD_FIRMWARE_KEYS |
--keys |
ORCHARD_SESSION_FD, ORCHARD_SESSION_LOCATION, ORCHARD_SESSION_STATE_FD |
set by session for the commands inside it; not for use by hand |