Platform CLI
Run the in-sandbox platform tool and follow its output as it arrives
On this page(3 sections)
Runs the sandbox's own command-line tool and streams its output line by line. The reconcile is separated out because it takes minutes: it starts a background job and answers at once, and its event stream replays from the beginning and then follows live, so a page refresh does not lose the progress.
POST/intenticRun an infrastructure commandstream
Runs the sandbox's own command-line tool and streams its output as it arrives, so progress is visible rather than arriving all at once at the end. A failure surfaces once the stream closes.
What you send
| Field | Type | Where |
|---|---|---|
argsrequired | string[] | body |
What comes back
| Field | Type |
|---|---|
when event is "message" | shape |
data | object |
kind | string |
id | string |
retry | number |
when event is "done" | shape |
data | unknown |
id | string |
retry | number |
when event is "error" | shape |
data | unknown |
id | string |
retry | number |
curl -N -X POST "$SANDBOX/intentic" \
-H "x-intentic-control: $INTENTIC_TOKEN" \
-H "content-type: application/json" \
-d '{"args":["…","…"]}'import { sandbox } from "@intentic/sandbox-client";
const result = await sandbox.intentic.run({
"args": [
"…",
"…"
]
});POST/intentic/applyBring the infrastructure into line
Starts the long reconcile that makes the running world match what was declared, and answers immediately. It takes minutes, so it runs in a terminal you attach to rather than on a held-open request.
What you send
Nothing. Call it as it is.
What comes back
| Field | Type |
|---|---|
okAlways true | true |
curl -X POST "$SANDBOX/intentic/apply" \
-H "x-intentic-control: $INTENTIC_TOKEN"import { sandbox } from "@intentic/sandbox-client";
const result = await sandbox.intentic.apply();GET/intentic/apply/eventsFollow the reconcilestream
The same progress the terminal shows, as structured events, kept on disk so a page refresh does not lose it. It replays from the start of the run and then follows live, closing when the run ends.
What you send
Nothing. Call it as it is.
What comes back
| Field | Type |
|---|---|
when event is "message" | shape |
data | object |
kind | string |
id | string |
retry | number |
when event is "done" | shape |
data | unknown |
id | string |
retry | number |
when event is "error" | shape |
data | unknown |
id | string |
retry | number |
curl -N "$SANDBOX/intentic/apply/events" \
-H "x-intentic-control: $INTENTIC_TOKEN"import { sandbox } from "@intentic/sandbox-client";
const result = await sandbox.intentic.applyEvents();