plays
Usage: deepline plays [options] [command]
Search, validate, run, and manage cloud plays.
Options:
-h, --help display help for command
Commands:
resume-submission [options] <path> Inspect or explicitly resubmit the same
saved admission intent, preserving its run
ID and original revision.
check [options] <target> Check a local play file or named/prebuilt
play contract.
settings Read and change Play settings by name and
value.
cells Run some rows and columns of a saved
dataset table again, through the Play’s
real code.
trigger Read and change one Play’s cron and
webhook triggers. `plays triggers` lists
every trigger.
rows Read and edit a Play dataset’s rows:
inline rows publish a new live version;
other datasets are edited in their stored
table.
columns Add, update or delete a Play dataset’s
columns. Publishes a new live version; a
Play never published saves its draft
instead.
pull [options] <play> Merge the remote working revision of a
Play into its local file.
get [options] <target> Fetch full play details or materialize a
saved source bundle.
triggers [options] List a bounded page of triggers, or read
one trigger’s recent history.
cost [options] <play> Estimate one saved or prebuilt Play in the
current org.
step-values [options] <play> Read one diagram step's recorded input and
output across runs.
list [options] List saved and prebuilt plays.
activity [options] Count Play runs and delivered Monitor
findings by day.
pin [options] <target> Pin an org-owned play to the top of play
listings.
unpin [options] <target> Remove an org-owned play from the pinned
group.
search [options] [task] Deprecated. Use deepline search.
grep [options] <query> Search active org-owned Plays through
Convex full-text search.
versions [options] List revisions for a named play.
save [options] <file> Save or update a local Play working draft
without publishing it.
deploy [options] [directory] Deploy every play in a directory as one
unit (all go live together, or none).
deployments [options] [id] Deployment history for this org; pass an
id for one deployment and its plays.
publish [options] <target> Promote a saved play revision or publish a
local play file.
set-live [options] <target> Promote a saved revision or publish a
local play file.
delete [options] <target> Move an org-owned play to Trash and stop
its triggers.
restore [options] <target> Restore an org-owned play from Trash.
share Manage a play's public, unlisted share
page (advanced — exposes play code).
help [command] display help for command
Explanation:
Purpose:
Durable workflows. Prebuilt plays are Deepline-maintained waterfalls such as
name-and-domain-to-email, person-linkedin-to-email, person-to-phone, and
company search, each with a single-row and a -batch (CSV) variant. A play
you write is one TypeScript file.
When:
Any job with rows, or any job that chains providers. A play reuses finished
rows on rerun, so a failed run can be resumed instead of repaid.
The sequence:
search "<input you have -> result you need>" find the play
describe <ref> required input, CSV columns, output fields
plays cost <ref> per-row or per-run credit estimate
run <ref> --input '{"csv":"file.csv"}' --csv-out out.csv run it, save rows
Writing a play:
Start from code that already works, not a blank file.
plays get prebuilt/<name> --source --out my.play.ts
copy the closest prebuilt and edit the copy
plays check my.play.ts validate after every edit; free
run my.play.ts --input '{...}' run the local file
plays publish my.play.ts make it live for run <name> and triggers
run -e "<code>" run code inline as a play function's body
(input holds --input), like python -c
A play is a default-exported async function of its input; the file name
is its default name:
import deepline from 'deepline';
export default async function (input: { domain: string }) {
const company = await deepline.tools.execute({ id, tool, input, description });
return { company };
}
The parameter's type is the input contract; the returned object is the
result.
An optional export const config = { name, description, cron, webhook,
runtime }; at the top of the file sets the name, triggers and runtime.
Set runtime.size to 'standard' (1gb, default), 'large' (4gb), or 'xlarge'
(8gb). See deepline billing compute --help for runtime pricing.
--help --verbose lists the authoring rules.
Auditing plays:
plays list every saved play
plays versions --name <play> its revisions, and which one is live
plays get <play> --source --out <dir> a revision's source (--live,
--working, or --revision <n>)
plays check <file> deprecated or invalid usage, one hint per
issue; read-only and free
plays triggers every cron and webhook trigger
Cost:
search, describe, list, check, and get are free; run spends credits.
Authoring rules:
Reach the outside world only through deepline: deepline.csv,
deepline.dataset, deepline.tools.execute, deepline.runPlay, deepline.step,
deepline.fetch, deepline.secrets, deepline.customerDb, and deepline.log.
No fs, raw fetch, or shell commands, also not inside deepline.step. Local
nondeterministic work such as Date.now or Math.random goes inside
deepline.step. Call deepline.* only in the play file; pass it to helpers.
A run can be interrupted and replayed from the top; every finished step
and tool call then returns its saved result. So the play name, each
dataset key, step id, fetch key, and tools.execute id is a fixed string
literal, and renaming one pays for that work again.
Rows: deepline.dataset('key', rows).withColumn('name', (row) => ...)
.run({ key: 'domain' }); call deepline.* inside the column too. Use a business identifier as the row key. Put
one paid call in a column, and shaping, status, and miss_reason in
separate plain columns after it. Await each .run(), and return
datasets in an object, such as return { people }, so their rows export
as CSV; a bare return people fails the run.
Column order is what people read: the run page shows a dataset's columns
in the order the Play declares them, the row's own keys as written, then
each withColumn in order. Choose it for a reader: put what they look for
first (name, company, email, the final answer, status) and ids, raw
provider payloads and intermediate attempts toward the end. Each run
records its own order, so reordering a Play's columns shows from its next
run on. When dependencies force a raw result or cascade first, list what
readers should see first: .run({ columnOrder: ['full_name', 'email'] }).
The rest keep their declared order. Use literal names; plays check warns
about one it cannot find.
A column whose name starts with _ is kept with the row but hidden
from the run page: use it for values people do not need to see (raw
payloads, internal ids). _key, _status, _error, _stage, _provider and
_run_id are reserved.
Dataset handles are async: await rows.count(), rows.first(),
rows.peek(n), rows.materialize(n), or for await. Array methods on a
handle fail plays check.
Tool calls: deepline.tools.execute({ id, tool, input, description,
staleAfterSeconds }). staleAfterSeconds decides whether a finished answer
may be reused. 0 is a fresh call, and leaving it out is the same as 0. A positive number accepts a
completed, successful answer to the same request (same org,
credential and tool version) up to that many seconds old, and otherwise
runs the tool. null accepts an answer of any age. A reused answer makes no
provider call and no provider charge; Play compute still applies. This
holds for every tool: a positive window on a write, send or purchase
skips a repeat of it on purpose, so use 0 for a repeat and re-read after a
write with 0. Only these need 0: event waits, Google Workspace tools,
Customer DB SQL that changes data, live datasets, fetch other than
GET/HEAD/OPTIONS, and customerDb.query;
plays check names the fix. A repeat is skipped only after an earlier call has finished:
overlapping calls both run, so a send that must happen once needs a
provider idempotency key. Failed, empty and unfinished answers are never
reused, so a retry runs again. Resuming a run returns its own finished calls whatever
the window. Provider idempotency keys, HTTP caches and in-run
deduplication are separate. result._metadata.execution.freshness shows
source (executed, operation_recovery, reusable_result or
live_observation), resultAgeMs and completedAt.
Read
results the way describe lists them:
result.fields.<name>.value for a value whose meaning is known, also by
field id (result.fields.person.email.value). .value throws when there are
several; .values is always an array;
result.extractedValues.<name>.get() for other declared values. Anything
else is in result.response, the provider's response with its nesting kept.
For a list, result.rows() gives one record per item, in the same format
for every tool: row.fields.email.value, and row.response for the rest.
Name the list when the tool declares several: result.rows('people').
Reuse before rebuilding: deepline.runPlay(key, 'prebuilt/<name>', input,
{ description }) runs a
prebuilt as one stage. The reference may also be a workspace play name or
an imported play (import child from './child.play'), which runs inline.
Independent calls run together with Promise.all; a call that needs
another's result waits for it.
Retries: a call whose provider keeps failing (an outage, a 5xx other than
a 504 timeout, a 429 past its pacing, a refusal for credits outside a
map) is retried on a durable timer under
Deepline's retry policy, and the Play sees the error only after those
retries end. Set the call's own policy with deepline.tools.execute({ ...,
retry: { maximumAttempts, initialIntervalMs, backoffCoefficient,
maximumIntervalMs, nonRetryable } }); maximumAttempts counts the first
attempt. A waterfall leg that falls back sets retry: { maximumAttempts: 1 }
so its catch runs at once. A workspace out of credits or over its
monthly cap waits for billing on Deepline's schedule (by default 15 min,
1 h, 4 h for credits): maximumAttempts and the intervals never shorten
that wait, and only nonRetryable ends it at once. Until durable retries
are the default for new Plays, a call opts in by setting retry; retry: {}
takes the defaults.
Failures: catch only ProviderTransientError, and only when another
provider can answer the same question. Keep the last provider outside
the catch so an exhausted waterfall fails loudly. Never branch on an
error message.
External APIs: deepline.fetch with a fixed key, and credentials through
deepline.secrets.bearer(...) or deepline.secrets.header(...), stored
with deepline secrets set. res.json is a property, not a method; check
res.ok. A play cannot loop deepline.fetch over pages: fan out over rows
with deepline.dataset, or
call one endpoint that returns the whole result. For a GET whose body you
parse in the same row and never need again (a homepage or scraped page),
pass { transient: true } as the fourth argument: the body is returned to
the play but not kept, so a rerun fetches it again instead of reading a
stored copy. Return or store only the fields you extracted.
Triggers: export const config = { cron: { schedule, timezone, input, overlap } };
or { webhook: {} }. A cron run receives {} unless cron.input is written
inline; it is pinned with the published revision. Add
cron.overlap: 'skip' to skip an occurrence while an earlier cron run is
still queued or running; omitted ('allow') starts every occurrence.
Runtime: The default Play runtime is 30 minutes. Standard uses 1 GiB / 1 CPU.
Set runtime.size to 'standard' or '1gb' (1 GiB / 1 CPU), 'large' or '4gb'
(4 GiB / 2 CPU), or 'xlarge' or '8gb' (8 GiB / 4 CPU).
Each alias selects the same profile and price as its named size.
With included compute pricing, large (4gb) costs 2.5× and xlarge (8gb) costs 5× the standard (1gb) hourly rate. Included compute applies proportionally.
Use deepline billing quote --sandbox-timeout 30m --sandbox-size large
for the org's session ceiling.
Set runtime.timeout to extend a run up to 4h.
For large datasets, keep working sets bounded and checkpoint progress;
inline ctx.runPlay shares parent memory, while ctx.runPlayAsync starts an
independent run. A larger profile does not make a job resumable. This is
not the CLI wait timeout. Size for a measured peak, not a guess. For file
transforms, stream through disk and pass paths to subprocesses: Node and
Python share the sandbox's memory. Persist outputs before a checkpoint,
because scratch files can disappear on resume.
Recurring sourcing: .run({ key: 'domain', mode: 'net_new' }) returns only
rows the table has not seen before.
Results: project each answer into flat columns (the value, its source,
whether it was validated, the outcome, the reason) and keep evidence
under _dl_meta, including result._metadata.execution.receiptKey. Unknown
stays null, not false.
Diagram: a /** @mermaid */ flowchart at the top of the play draws it in
the dashboard. Bind a box with // @mermaid-node <id> key:"value" ... on
the line above its statement:
in:"a,input.b,col" what the statement reads.
out:"x" the variable it declares, the column its withColumn
adds, or $output for the return.
type:"decision|dataset|play" when the box is one (id{…} is a
decision; a double-bracket box is a child play,
including an imported one). A deepline.csv or
deepline.dataset statement is type:"dataset".
arm:"run|else" this box is that side of a per-row runIf column:
.withColumn('t1', { run, runIf: (row) => row.hot })
label:"…" overrides the drawn label.
show:"a,b.c" the fields a reader sees for an object value;
without it, the first field and a field count.
%% @input show:"…" inside the block names the input fields Start shows.
A decision binds the value its if reads and draws one labeled edge per
outcome (work -->|Personal| reject), including else and review. Bind a
const inside each branch so the run records its arm. A subgraph is a
phase: put each decision inside the subgraph holding its arms and label
every edge leaving it. class <ids> sketch marks boxes no statement runs:
the event that starts a play, never a step it takes.
Warnings: a sketched step, a box without in: or out:, an object without
show:, a title over 48 characters, over 8 arms on one decision, or over
12 boxes in one view (a folded subgraph counts as one box).
Diagram problems never block check, publish or run: what does not
resolve is left off the drawing, and an unreadable block is not drawn.
Quote labels with brackets, parentheses or pipes: id["Label (x)"].
plays check <file> judges it: each
warning names the box, its line and the fix to paste. Make it clean, not
only valid. runs list --play <name> --steps --json shows each
run's visited boxes and decision arms.
plays resume-submission
Usage: deepline plays resume-submission [options] <path>
Inspect or explicitly resubmit the same saved admission intent, preserving its
run ID and original revision.
Options:
--inspect Read the local submission identity only; no API calls or execution
--json Emit the identity or admission response as JSON
-h, --help display help for command
plays check
Usage: deepline plays check [options] <target>
Check a local play file or named/prebuilt play contract.
Options:
--full Include compiler diagnostics
--json [fields] Emit JSON, optionally selecting comma-separated dotted fields
-h, --help display help for command
Explanation:
Purpose:
Validate a play contract without starting a run: a local .play.ts file is
bundled and checked, a named or prebuilt play is confirmed discoverable.
When:
Before running a local play file, and after editing one. Free, so run it
every time.
Input:
A local path ending in .play.ts, or a play reference. --json prints JSON.
--full also returns the complete check document under diagnostics
(static pipeline, authoring contract with the input JSON Schema, every
limit, feature flags).
Output:
Text: a verdict line, the file once, then one line each for Input,
Datasets, Returns, Steps (kinds of step and the tools), Diagram (its
verdict, e.g. 11 boxes, all bound · 2 warnings, then every box in flow
order with its line and a decision's arms), Getters (how to read each
tool's result), Limits (ok unless a limit is not the default or a budget
is near its ceiling) and short hashes; then each issue with its fix,
diagram issues by box in flow order; then the next commands, with <file>
for the path. --full adds every stage and each box's in/out/show.
A play that calls tools and types a value as any gets a warning naming
those lines: check cannot see a tool result read from a wrong path through
any, and such a column comes back empty on every row.
JSON (--json): valid, target, name, issues (every error and warning, with
its repair step), diagram (counts), input (one entry per field: name,
type, required; nested fields dotted), recognized (datasets, row inputs,
outputs, tools), stages (one line each, indented under the stage or
conditional arm that runs it), docflow (nodes with id, label, kind, line;
edges with from, to, label), sourceHash, artifactHash, graphHash, and
actions (runExample.command, publishCmd). runtimeLimit, limits and
runAdmission appear only when they are not the default. A named play
returns its inputSchema and outputSchema instead.
Recognized fields and tools come from static analysis: dataset columns
are physical SQL names, CSV passthrough columns are not listed, and a
check neither resolves a sample CSV nor proves a provider is available.
The run example runs the local file without publishing and may spend
credits.
Diagram:
Required to publish. A run records what each step read and produced only
for steps a diagram binds. Put a /** @mermaid */ flowchart above the
imports and // @mermaid-node <id> in:"…" out:"…" on the line above each step
it draws. Check fails until:
the diagram compiles and every box is bound (or declared sketch);
each marker names out: when its statement produces a value, and in:
when it reads local values (check lists them);
out: names a finished value, not one created empty and filled later.
Each issue names its line and the lines to paste. A CLI before 0.4.0, and
the dashboard, API, MCP and deploy-on-push until 15 Dec 2026, get warnings.
Running a local file never needs a diagram. Last resort, not recommended
(runs record no per-step values):
/** @mermaid off: <why this Play has no diagram> */
Cost:
Free.
Avoid:
valid true does not mean the input you plan to pass is valid; describe
shows the required fields.
plays settings
Usage: deepline plays settings [options] [command]
Read and change Play settings by name and value.
Options:
-h, --help display help for command
Commands:
describe [options] List setting names, values, examples and defaults; no
authentication required.
get [options] Read all settings, or one setting selected with --name.
set [options] Set one setting without creating or publishing a
revision.
reset [options] Reset one setting to its schema default.
paths [options] List existing locations (one bounded page).
move-folder [options] Move or rename a folder. Every Play below it moves and
keeps its subfolders. Retry-safe: rerun to finish an
interrupted move.
help [command] display help for command
plays settings describe
Usage: deepline plays settings describe [--name <setting>] [options]
List setting names, values, examples and defaults; no authentication required.
Options:
--name <setting> Describe one setting. Available: path, displayName
--json Emit JSON
-h, --help display help for command
plays settings get
Usage: deepline plays settings get --play <play> [--name <setting>] [options]
Read all settings, or one setting selected with --name.
Options:
--play <play> Play to read
--name <setting> Read one setting. Available: path, displayName
--json Emit JSON
-h, --help display help for command
plays settings set
Usage: deepline plays settings set --play <play> --name <setting> --value <value> [options]
Set one setting without creating or publishing a revision.
Options:
--play <play> Play to update
--name <setting> Setting name. Available: path, displayName
--value <value> New value; see settings describe --name <setting>
--dry-run Show the patch without changing settings
--json Emit JSON
-h, --help display help for command
plays settings reset
Usage: deepline plays settings reset --play <play> --name <setting> [options]
Reset one setting to its schema default.
Options:
--play <play> Play to update
--name <setting> Setting name. Available: path, displayName
--dry-run Show the patch without changing settings
--json Emit JSON
-h, --help display help for command
plays settings paths
Usage: deepline plays settings paths [options]
List existing locations (one bounded page).
Options:
--root <person|team> Filter by root
--limit <n> Plays to inspect, 1–100 (default: "50")
--cursor <cursor> Continue from a previous page
--json Emit JSON
-h, --help display help for command
plays settings move-folder
Usage: deepline plays settings move-folder --from <path> --to <path> [--owner <user-id>] [options]
Move or rename a folder. Every Play below it moves and keeps its subfolders.
Retry-safe: rerun to finish an interrupted move.
Options:
--from <path> Folder to move, e.g. team/Research
--to <path> Its new path including its name, e.g. team/Archive/Research
--owner <user-id> Personal-root owner, when several people have the --from
folder or --to is person
--dry-run Show the planned moves without changing settings
--json Emit JSON
-h, --help display help for command
plays cells
Usage: deepline plays cells [options] [command]
Run some rows and columns of a saved dataset table again, through the Play’s
real code.
Options:
-h, --help display help for command
Commands:
run [options] <play> Start a cell run.
set [options] <play> Set one cell by hand: an input cell in the
source, a computed cell as a manual value runs
keep.
get [options] <cellRunId> Read a cell run: status, cell counts and a page
of cells.
list [options] <play> List cell runs of a dataset still executing
(newest first), e.g. after a page refresh.
cancel [options] <cellRunId> Cancel a cell run.
paths [options] <play> Show which computed columns a cell run can
update in place, and why the others need a full
Run.
help [command] display help for command
Explanation:
Purpose:
Run part of a saved dataset table again (some rows, some columns) through
the Play's real code, the way a spreadsheet recomputes a cell. The cells are
written back into the table. The cell run is recorded as a Run that run
history and the catalog leave out.
When:
After changing a column's code, to retry failed or empty cells, or to fill
rows just added to the source, without running the whole table.
Input:
cells run <play> --dataset <name> (--rows k1,k2 | --all-rows)
(--columns c1,c2 | --all-columns) [--mode auto|inline] [--force]
[--revision <id>] [--idempotency-key <key>] [--wait] [--timeout <s>]
cells set <play> --dataset <name> --row <key> --column <name>
(--value <text> | --value-json <json>)
cells get <cellRunId> [--play <play>] [--cursor <cursor>]
cells cancel <cellRunId> [--play <play>]
cells list <play> --dataset <name> --active
cells paths <play> --dataset <name> [--revision <id>]
Rows are named by their key as plays rows list shows it: the value for
a dataset keyed by one field (--rows p5,p6), field=value pairs joined with
& for a multi-field key (--rows 'id=1®ion=eu'), or a JSON object of the
key fields; comma-separated or repeated. A stored row key
(__deeplineRowKey, <dataset>:<sha256>) is used as given. Any row of the
dataset runs, including rows added to the source that no Run has stored.
Columns are computed (withColumn) fields. Input columns never run; a cell
run writes only its scoped cells, so other columns keep their values. At most 500 rows and 200
columns by name; use --all-rows / --all-columns for more. Every cell in
scope runs again; without --force provider calls a cell already completed
answer from those completed results. The revision defaults to the live
one; the rows replay the input of the Run that wrote them (rows no Run
stored yet use the newest Run of the dataset). An
idempotency key replays its cell run (same org, workspace and Play).
A cell run updates cells in place or not at all. Refused before anything
starts: a column that needs the full Play runtime, and every row or more
than 100 rows; plays run <play> updates those. A cell
run answers with its result when it finishes within about 1.5 s; a slower one answers running and keeps running on the
server (closing the client does not stop it). Read it with cells get, or
find the dataset's cell runs still running with cells list --active.
cells set sets one cell by hand: an input cell of inline rows is changed in
the source and published; a computed cell (any dataset) is stored in the
table marked manual, and runs keep it. Run the cell fresh (cells run
--force; a single cell always runs fresh) to recompute it. --value ''
stores an empty string; --value-json null stores null.
Output (JSON):
run/get/cancel: cellRunId, runId, playName, revisionId, status
(queued|running|completed|failed|cancelled), scope, counts per cell state
(queued, running, completed, no_result, skipped, failed, cancelled) over
every cell in scope, a page of cells (rowKey, column, state, path, value,
error) with running cells first within the page, nextCursor, createdAt,
completedAt.
paths reasons are codes (inline_execution_unavailable where inline
execution is off), never error text; a column with inline: false is
updated only by a full Run.
paths: revisionId, tableNamespace, columns: {name: {inline: true} |
{inline: false, reason}}.
list --active: cellRuns (the get output of each cell run of the dataset
still running, newest first, started in the last 24 h, at most 25);
incomplete: true when more were running than listed.
Refusals are HTTP 4xx with a code: CELL_RUN_UNKNOWN_TABLE,
CELL_RUN_UNKNOWN_COLUMNS, CELL_RUN_COLUMN_NOT_RUNNABLE,
CELL_RUN_UNKNOWN_ROWS, CELL_RUN_ROWS_SPAN_RUNS, CELL_RUN_NO_SOURCE_RUN,
CELL_RUN_INLINE_UNAVAILABLE (503), CELL_RUN_IDEMPOTENCY_CONFLICT,
CELL_RUN_SCOPE_TOO_LARGE (409, details.maxRows) and
CELL_RUN_NEEDS_FULL_RUN (409, details {reason, detail?, columns}). Each
carries message and nextStep. A cell that needed the full runtime mid-run
fails with error.code CELL_RUN_NEEDS_FULL_RUN. Text prints message, then
nextStep on its own line (Next: <command>).
Cost:
Like a Run of those cells: provider calls a cell makes are billed, and
completed provider results are reused unless --force. With --wait
the command exits 1 unless the cell run completed with no failed cell.
plays cells run
Usage: deepline plays cells run <play> --dataset <name> (--rows k1,k2 | --all-rows) (--columns c1,c2 | --all-columns) [options]
Start a cell run.
Arguments:
play Play name
Options:
--dataset <name> Dataset name or table namespace
--rows <keys> Row keys as plays rows list shows them (p5, or
id=1®ion=eu), comma-separated or repeated; or
stored row keys
--all-rows Every row (refused: updating a whole column runs the
Play)
--columns <names> Comma-separated computed column names
--all-columns Every computed column
--mode <mode> auto | inline (default auto)
--force Make provider calls again instead of reusing
completed results
--revision <id> Run this revision’s code (default: live)
--idempotency-key <key> Replays with the same key return the same cell run
--wait Wait until the cell run ends; exit 1 if it failed or
any cell failed
--timeout <seconds> With --wait: give up after this long (default: "600")
--json Emit JSON
-h, --help display help for command
plays cells set
Usage: deepline plays cells set <play> --dataset <name> --row <key> --column <name> (--value <text> | --value-json <json>) [options]
Set one cell by hand: an input cell in the source, a computed cell as a manual
value runs keep.
Arguments:
play Play name
Options:
--dataset <name> Dataset name or table namespace
--row <key> The row: its key value, id=1®ion=eu, a JSON object of
key fields, or a stored row key
--column <name> Column (input field or computed column)
--value <text> New value as text ('' is an empty string)
--value-json <json> New value as a JSON string, number, boolean or null
--wait Wait for the cell runs the edit starts; exit 1 if one
failed or any cell failed
--json Emit JSON
-h, --help display help for command
plays cells get
Usage: deepline plays cells get <cellRunId> [--play <play>] [--cursor <cursor>] [options]
Read a cell run: status, cell counts and a page of cells.
Arguments:
cellRunId Cell run id
Options:
--play <play> Play name (default: read from the id)
--cursor <cursor> Page of cells to read (from nextCursor)
--json Emit JSON
-h, --help display help for command
plays cells list
Usage: deepline plays cells list <play> --dataset <name> --active [options]
List cell runs of a dataset still executing (newest first), e.g. after a page
refresh.
Arguments:
play Play name
Options:
--dataset <name> Dataset name or table namespace
--active Only cell runs still executing (required)
--json Emit JSON
-h, --help display help for command
plays cells cancel
Usage: deepline plays cells cancel <cellRunId> [--play <play>] [options]
Cancel a cell run.
Arguments:
cellRunId Cell run id
Options:
--play <play> Play name (default: read from the id)
--json Emit JSON
-h, --help display help for command
plays cells paths
Usage: deepline plays cells paths <play> --dataset <name> [--revision <id>] [options]
Show which computed columns a cell run can update in place, and why the others
need a full Run.
Arguments:
play Play name
Options:
--dataset <name> Dataset name or table namespace
--revision <id> Revision to inspect (default: live)
--json Emit JSON
-h, --help display help for command
plays trigger
Usage: deepline plays trigger [options] [command]
Read and change one Play’s cron and webhook triggers. `plays triggers` lists
every trigger.
Options:
-h, --help display help for command
Commands:
get [options] Show the cron and webhook triggers of a
Play.
set-cron|set-schedule [options] Schedule the Play (replaces any existing
schedule).
clear-cron|clear-schedule [options] Remove the schedule.
set-webhook [options] Turn on the webhook trigger. Without
--auth, keeps the current authentication.
clear-webhook [options] Remove the webhook trigger and retire its
URL.
help [command] display help for command
plays trigger get
Usage: deepline plays trigger get [options]
Show the cron and webhook triggers of a Play.
Options:
--play <play> Play to read
--json Emit JSON
-h, --help display help for command
plays trigger set-cron
Usage: deepline plays trigger set-cron|set-schedule [options]
Schedule the Play (replaces any existing schedule).
Options:
--schedule <cron> 5-field cron, e.g. "0 9 * * 1-5"
--timezone <iana> IANA timezone; default UTC
--input <json> Static JSON object passed to every cron run
--overlap <policy> allow or skip: what an occurrence does while a cron
run is active; default keeps the current policy
--play <play> Play to change
--expected-revision <id> Refuse the change if the live revision is no longer
this one
--dry-run Show the change without publishing
--json Emit JSON
-h, --help display help for command
plays trigger clear-cron
Usage: deepline plays trigger clear-cron|clear-schedule [options]
Remove the schedule.
Options:
--play <play> Play to change
--expected-revision <id> Refuse the change if the live revision is no longer
this one
--dry-run Show the change without publishing
--json Emit JSON
-h, --help display help for command
plays trigger set-webhook
Usage: deepline plays trigger set-webhook [options]
Turn on the webhook trigger. Without --auth, keeps the current authentication.
Options:
--auth <mode> none, standard (Standard Webhooks), svix, or hmac
(legacy sha256)
--secret <name> Deepline Secret name; repeat for rotation
(standard/svix)
--header <name> Signature header (hmac)
--signature-prefix <prefix> Signature prefix (hmac)
--tolerance-seconds <n> Replay window in seconds (standard/svix), default
300
--play <play> Play to change
--expected-revision <id> Refuse the change if the live revision is no
longer this one
--dry-run Show the change without publishing
--json Emit JSON
-h, --help display help for command
plays trigger clear-webhook
Usage: deepline plays trigger clear-webhook [options]
Remove the webhook trigger and retire its URL.
Options:
--play <play> Play to change
--expected-revision <id> Refuse the change if the live revision is no longer
this one
--dry-run Show the change without publishing
--json Emit JSON
-h, --help display help for command
plays rows
Usage: deepline plays rows [options] [command]
Read and edit a Play dataset’s rows: inline rows publish a new live version;
other datasets are edited in their stored table.
Options:
-h, --help display help for command
Commands:
list [options] <play> Show the inline rows of each dataset and whether
they can be edited.
add [options] <play> Append rows to a dataset.
set [options] <play> Change one cell of one row.
rm|remove [options] <play> Remove rows by key.
restore [options] <play> Undo rm on a dataset table (rows from a file, a
query or a step).
revert [options] <play> Drop hand edits of a dataset table: one cell
(--field), or every edited cell of the rows and
their deletion.
help [command] display help for command
Explanation:
Purpose:
Read and edit any dataset's rows (ctx.dataset), all the same way: set any
cell but a key field, add, delete and restore rows, revert hand edits.
Each dataset's capabilities say what can be edited and where the edit
lands (editPath, chosen by the server): source for rows written inline in
the live revision (the literal is rewritten and a new live version is
published; the rest of the file is unchanged), table for any other rows
(a CSV, a query, a step, an unpublished Play, one published from several
files or Git): stored in the saved table, nothing published, and Runs keep
the edits even when they read the file again. A prebuilt
(prebuilt/<name>) edits your workspace's own table, the one plays run
prebuilt/<name> writes; its code stays Deepline's (PREBUILT_CODE_LOCKED).
While that table is empty, rows list --example shows the prebuilt's
example (read-only); the first edit or cell run copies it in, free.
When:
To add, change, or remove a few rows without downloading the source.
Input:
rows list <play> [--dataset <dataset>] [--example]
rows add <play> --dataset <dataset> --json-rows '[{...}]' | --csv <file>
rows set <play> --dataset <dataset> --row <key> --field <field> --value <text>
rows rm <play> --dataset <dataset> --row <key>[,<key>...]
rows restore <play> --dataset <dataset> --row <key>[,<key>...]
rows revert <play> --dataset <dataset> --row <key> [--field <field>]
Rows are named by the dataset's key (.run({ key: 'domain' })); a key of
several fields is a JSON object; a computed key is named by
{"__deeplineRowKey": "<stored key>"}. --expected-revision <id> refuses
added or removed rows if another version was published since; --dry-run publishes nothing.
A locked column or dataset is refused with its capability reason:
PLAY_DATASET_ROWS_COLUMN_IS_KEY (a key field names the row: rm it and add
one with the new key) or PLAY_DATASET_ROWS_TABLE_NOT_STORED (no Run stored
the table yet: run the Play once). Table edits: set stores the cell as a manual value, marks the row's
computed cells stale and starts a cell run of them; add needs every key
field and refuses a key the table holds (ROW_KEY_DUPLICATE), or on a
dataset with no key gives each new row its own stored key (printed; a key
written as code refuses adds, ROW_KEY_NOT_STATIC), then starts a cell run
of the new rows; rm hides the row from reads and Runs until
restore; revert drops the hand edits (one cell with --field).
Output (JSON):
list: liveRevisionId and datasets, each with capabilities {editPath
(source, table, or null with reason), keyFields, columns [{name, kind
(input or computed), editable, reason?}], rows {add, delete, restore},
revert}, keyFields, fields (input fields), columns (computed .withColumn
names), and rows (inline source rows: key, values, and expressions for
cells that are code; table rows are read with plays sheet). editable and
refusal repeat capabilities for older clients. An edit: changed, revisionId,
version, and the dataset after the edit. A 409
PLAY_DATASET_ROWS_REVISION_CONFLICT publishes nothing: list and retry.
A saved-table edit adds tableRevisionId, manualCells, revertedCells,
addedRows, deletedRows, restoredRows and recompute (cell runs started:
rowKeys, columns, cellRunId or error). notRecomputed lists computed
columns an edit saved but did not update because they need the full Play
runtime: {column, rowKeys, reason: COLUMN_NEEDS_FULL_RUN, detail?,
message, nextStep}. list shows such columns as
capabilities.columns[].recompute {inline: false, reason, detail?}. Text
prints one line per change, then Next: <command> or Undo: <command>.
recompute[].cellRun is the cell run as of the response (maybe still
running); --wait follows each to its end and exits 1 if a cell
failed.
Cost:
Free, except the cell runs an edit starts, billed as any cell run.
plays rows list
Usage: deepline plays rows list [options] <play>
Show the inline rows of each dataset and whether they can be edited.
Arguments:
play Play to read
Options:
--dataset <name> Only this dataset
--example A prebuilt's example rows (read-only), shown while your
table is empty
--limit <n> Stored rows to show per dataset, 1 to 1000 (default 100)
--after <index> Show stored rows after this one: the last line's --after
--json Emit JSON
-h, --help display help for command
plays rows add
Usage: deepline plays rows add [options] <play>
Append rows to a dataset.
Arguments:
play Play to change
Options:
--json-rows <json> JSON array of row objects
--csv <file> CSV file whose header names the fields
--dataset <name> Dataset name, as in ctx.dataset(<name>, ...)
(required)
--expected-revision <id> Refuse the change unless this is still the live
revision
--dry-run Show the change without publishing
--wait Wait for the cell runs the edit starts; exit 1 if
one failed or any cell failed
--json Emit JSON
-h, --help display help for command
plays rows set
Usage: deepline plays rows set [options] <play>
Change one cell of one row.
Arguments:
play Play to change
Options:
--row <key> Row key value, or a JSON object of key fields
--field <field> Field to change
--value <text> New value as text
--value-json <json> New value as a JSON string, number, boolean or null
--dataset <name> Dataset name, as in ctx.dataset(<name>, ...)
(required)
--expected-revision <id> Refuse the change unless this is still the live
revision
--dry-run Show the change without publishing
--wait Wait for the cell runs the edit starts; exit 1 if
one failed or any cell failed
--json Emit JSON
-h, --help display help for command
plays rows rm
Usage: deepline plays rows rm|remove [options] <play>
Remove rows by key.
Arguments:
play Play to change
Options:
--row <keys> Row keys, comma-separated or repeated; a JSON object
for multi-field keys
--dataset <name> Dataset name, as in ctx.dataset(<name>, ...)
(required)
--expected-revision <id> Refuse the change unless this is still the live
revision
--dry-run Show the change without publishing
--wait Wait for the cell runs the edit starts; exit 1 if
one failed or any cell failed
--json Emit JSON
-h, --help display help for command
plays rows restore
Usage: deepline plays rows restore [options] <play>
Undo rm on a dataset table (rows from a file, a query or a step).
Arguments:
play Play to change
Options:
--row <keys> Row keys, comma-separated or repeated; a JSON object
for multi-field keys
--dataset <name> Dataset name, as in ctx.dataset(<name>, ...)
(required)
--expected-revision <id> Refuse the change unless this is still the live
revision
--dry-run Show the change without publishing
--wait Wait for the cell runs the edit starts; exit 1 if
one failed or any cell failed
--json Emit JSON
-h, --help display help for command
plays rows revert
Usage: deepline plays rows revert [options] <play>
Drop hand edits of a dataset table: one cell (--field), or every edited cell of
the rows and their deletion.
Arguments:
play Play to change
Options:
--row <keys> Row keys, comma-separated or repeated; a JSON object
for multi-field keys
--field <field> Only this cell
--dataset <name> Dataset name, as in ctx.dataset(<name>, ...)
(required)
--expected-revision <id> Refuse the change unless this is still the live
revision
--dry-run Show the change without publishing
--wait Wait for the cell runs the edit starts; exit 1 if
one failed or any cell failed
--json Emit JSON
-h, --help display help for command
plays columns
Usage: deepline plays columns [options] [command]
Add, update or delete a Play dataset’s columns. Publishes a new live version; a
Play never published saves its draft instead.
Options:
-h, --help display help for command
Commands:
show [options] <play> Show how each computed column is written: editable,
readonly or code, and what it reads.
add [options] <play> Add an input field, a formula, a tool call, or code.
update [options] <play> Rewrite a computed column as a formula or a tool
call, in place.
delete [options] <play> Delete a column that nothing else reads.
help [command] display help for command
Explanation:
Purpose:
Read, add, update or delete a dataset's columns by editing the play source:
an input field of its inline rows, a formula, a tool call per row, or code.
The edit publishes a new live version like plays rows (a play never
published saves its working draft instead, as plays save does); the rest of
the file is unchanged. Nothing runs: a column added or changed fills when the
play runs (nextStep).
When:
To see how a column is written (show), add a field, a formula or one tool
call per row, set a column's code, or drop a column nothing reads, without
downloading the source.
Input:
columns show <play> --dataset <dataset> [--name <column>]
columns add <play> --dataset <dataset> --name <column> [--after <column>]
(--formula '<text>' | --tool <id> --input key='<text>'... |
--input-column [--type text|number|url|boolean] | --code '<expr>' |
--column-code "withColumn('<column>', ...)")
[--run-if '<column> not_empty|empty|equals <value>']
columns update <play> --dataset <dataset> --name <column>
(--formula '<text>' | --tool <id> --input key='<text>'... |
--column-code "withColumn('<column>', ...)") [--run-if ...]
columns delete <play> --dataset <dataset> --name <column>
Text takes {{column}} references ('Hello, {{name}}') and {{var.<name>}}
references to a variable declared above the dataset ('{{name}} at
{{var.company}}', '{{var.input.domain}}'); exactly '{{x}}' is that value.
--tool inputs are checked against the tool's input schema. A formula, tool
or --run-if reads only input fields, columns before it and those variables.
--column-code is the column's whole .withColumn(...) call, as show prints it
(pass a file with "$(cat column.ts)"); the edited Play must pass plays check.
--after places a new column after that column (an input field puts a
computed column first); default last. update rewrites the column's
.withColumn in place. delete removes the input field from every row, or the
whole .withColumn (a steps() waterfall included). --expected-revision and
--dry-run work as in plays rows.
Output (JSON):
show: columns, each column's parse ({mode: editable|readonly|code, code,
refs: [{name, source: input|column|variable}], plus spec when editable, or
interpreted and reason when readonly}), the variables above the dataset,
and capabilities.columnEdits (false: columnEditsReason, columns are changed
in the code). editable means the spec writes back the same code
(formatting aside); readonly is recognized but written another way.
add/update/delete: as plays rows: changed, revisionId, version, draft (true
when saved as the unpublished draft), nextStep (after add/update: the run
command that fills it), and the dataset after the edit (fields, columns,
columnSpecs, columnParses, rows).
Refusals are HTTP 4xx with a code, nothing published:
PLAY_DATASET_ROWS_COLUMN_NAME_INVALID, _COLUMN_EXISTS, _COLUMN_NOT_FOUND,
_COLUMN_EXPRESSION_INVALID (code that is not one withColumn call of this
column), _COLUMN_SPEC_INVALID, _COLUMN_REFERENCE_UNKNOWN (a column or
variable it may not read), _COLUMN_TOOL_NOT_FOUND,
_COLUMN_TOOL_INPUT_INVALID, _COLUMN_IS_KEY, _COLUMN_HAS_DEPENDENTS
(dependents names the readers), _COLUMN_DEPENDENTS_UNKNOWN (the source does
not show what reads it), _COLUMN_NOT_EDITABLE, _ROWS_NOT_INLINE, _CHECK_FAILED
(the edited play fails plays check; errors), and _REVISION_CONFLICT (list
and retry).
Cost:
Free. Publishing runs nothing; the next run (or plays cells run) computes
the column, and a tool column bills its tool calls then.
plays columns show
Usage: deepline plays columns show [options] <play>
Show how each computed column is written: editable, readonly or code, and what
it reads.
Arguments:
play Play to read
Options:
--name <column> Only this column
--dataset <name> Dataset name, as in ctx.dataset(<name>, ...) (required)
--json Emit JSON
-h, --help display help for command
plays columns add
Usage: deepline plays columns add [options] <play>
Add an input field, a formula, a tool call, or code.
Arguments:
play Play to change
Options:
--name <column> New column name (an identifier)
--after <column> Column to place it after (default: last)
--input-column An input field of the inline rows
--type <type> Input field type (choices: "text", "number", "url",
"boolean")
--code <expr> Raw expression over row
--column-code <call> The whole .withColumn('<name>', ...) call
--formula <text> Text with {{column}} references
--tool <id> Tool to call once per row
--input <key=text> Tool input as key={{column}} or text; repeatable
--run-if <condition> '<column> not_empty|empty' or '<column> equals
<value>'
--dataset <name> Dataset name, as in ctx.dataset(<name>, ...)
(required)
--expected-revision <id> Refuse the change unless this is still the live
revision
--dry-run Show the change without publishing
--wait Wait for the cell runs the edit starts; exit 1 if
one failed or any cell failed
--json Emit JSON
-h, --help display help for command
plays columns update
Usage: deepline plays columns update [options] <play>
Rewrite a computed column as a formula or a tool call, in place.
Arguments:
play Play to change
Options:
--name <column> Computed column to rewrite
--column-code <call> The column's whole new .withColumn('<name>', ...)
call
--formula <text> Text with {{column}} references
--tool <id> Tool to call once per row
--input <key=text> Tool input as key={{column}} or text; repeatable
--run-if <condition> '<column> not_empty|empty' or '<column> equals
<value>'
--dataset <name> Dataset name, as in ctx.dataset(<name>, ...)
(required)
--expected-revision <id> Refuse the change unless this is still the live
revision
--dry-run Show the change without publishing
--wait Wait for the cell runs the edit starts; exit 1 if
one failed or any cell failed
--json Emit JSON
-h, --help display help for command
plays columns delete
Usage: deepline plays columns delete [options] <play>
Delete a column that nothing else reads.
Arguments:
play Play to change
Options:
--name <column> Column to delete
--dataset <name> Dataset name, as in ctx.dataset(<name>, ...)
(required)
--expected-revision <id> Refuse the change unless this is still the live
revision
--dry-run Show the change without publishing
--wait Wait for the cell runs the edit starts; exit 1 if
one failed or any cell failed
--json Emit JSON
-h, --help display help for command
plays pull
Usage: deepline plays pull [options] <play>
Merge the remote working revision of a Play into its local file.
Options:
--file <path> Local Play file (default: ./<play>.play.ts)
--json Emit JSON output
-h, --help display help for command
Explanation:
Purpose:
Bring a Play's remote working revision into its local .play.ts file with a
three-way merge, so edits made elsewhere (the dashboard, another
checkout) are not lost and are not overwritten.
When:
After plays save or plays publish is refused with PLAY_REVISION_CONFLICT,
or before editing a file someone else may have changed remotely.
Input:
The play name. --file <path> names the local file (default
./<play>.play.ts). The merge base is the revision the file was last
pulled, saved, or published as (.deepline/plays/<play>.json beside it).
Output (JSON):
ok, play, file, outcome (created, up_to_date, local_ahead, fast_forward,
merged, or conflict), revisionId, version, and conflicts: [{startLine,
endLine}] for each <<<<<<< local / ======= / >>>>>>> remote (<revision>)
block written.
Exit codes:
0 current or merged cleanly; 1 conflicts written to the file; 2 usage, a
read-only or multi-file Play, or a file with no recorded base; 4 not
found; 5 request failed.
Cost:
Free. Changes only the local file and its .deepline state.
plays get
Usage: deepline plays get [options] <target>
Fetch full play details or materialize a saved source bundle.
Options:
--json Emit JSON output
--source Read source; prints single-file Plays or combines with
--out to write the full bundle
--out <path> Write source to a file or, for multi-file Plays, a
directory
--working Read the current working draft source (default)
--live Read the live revision source
--revision <number> Read a specific revision source
-h, --help display help for command
Explanation:
Purpose:
Full metadata for a play: revisions, source, triggers, and latest runs.
When:
Only when describe is not enough: reading the source (--source --out file.play.ts), checking revisions, or auditing a saved play.
Input:
The play reference. --source prints or writes the source; --working,
--live, --revision <n> pick which source.
Output (JSON):
The play record with revision and trigger metadata; with --source, the TypeScript source.
Cost:
Free.
plays triggers
Usage: deepline plays triggers [options]
List a bounded page of triggers, or read one trigger’s recent history.
Options:
--cursor <cursor> Continue the trigger inventory
--binding <id> Read history for this trigger binding
--history-limit <count> Recent history cap, 1–30 (default: "10")
--json Emit JSON output
-h, --help display help for command
plays cost
Usage: deepline plays cost [options] <play>
Estimate one saved or prebuilt Play in the current org.
Options:
--json Emit the cost estimate as JSON
-h, --help display help for command
Explanation:
Purpose:
Read the advisory cost estimate for one saved or prebuilt Play.
Input:
<play> is a bare name or qualified reference. --json prints the exact result.
Output:
reference, costEstimate, and for prebuilts observedCost. Estimates include
the output unit, observed or static range and sample size.
Cost:
Read-only. Uses the current org's pricing; does not start a run.
plays step-values
Usage: deepline plays step-values [options] <play>
Read one diagram step's recorded input and output across runs.
Options:
--step <node> The step id as the diagram draws it
--runs <ids> Comma-separated run ids (at most 50)
--last <n> The play’s newest n runs (1-50)
--json Emit the exact result as JSON
-h, --help display help for command
Explanation:
Purpose:
Read what one diagram step read and produced, run by run: its recorded
input and output previews, status and attempt.
Input:
The play is a bare name or qualified reference. The step is its id as the
diagram draws it (a child play's step is <card>/play/<id>). --step
names it. --runs takes comma-separated run ids, or --last <n> reads the
newest n runs; at most 50 either way. --json prints the exact result.
Output:
One line per run, in order: its status and attempt, then input and output
fields. "not reached" when the run recorded its steps but never settled at
this one; "not recorded" when the run recorded no step values at all; "not
a run of this play" for an id that is not this Play's.
Cost:
Free. Read-only; previews are bounded, so each run's answer is small.
plays list
Usage: deepline plays list [options]
List saved and prebuilt plays.
Options:
--limit <count> Page size
--cursor <cursor> Continue a previous page
--show-cost Include the per-row or per-run cost estimate
--summary Load metadata without authored source or revision
payloads
--json Emit JSON output
--categories <categories> Filter by comma-separated canonical tool categories
--tag <tag...> Filter by the job the play does: smb,
find-prospects, qualify, contact-info, signals
-h, --help display help for command
Explanation:
Purpose:
Inventory of saved and prebuilt plays, one bounded page at a time.
Add --show-cost for estimates across the page.
When:
To price a catalog page: plays list --show-cost, then read the
cost estimate line for the play, or in JSON observedCost (prebuilts) or
costEstimate.
Input:
--show-cost adds estimates. --summary loads metadata without source or
revision payloads. --limit and --cursor page. --categories
filters by tool category. --json prints JSON.
Output (JSON):
plays[] with playKey, reference, displayName, description, origin,
runCount, lastRun, and with --show-cost: costEstimate {status, unit
("row" or "run"), lowCredits, highCredits, source, sampleRunCount} or
{status: "unavailable", reason, message}, and for prebuilts also
observedCost, the same object search returns; count, has_more, next_cursor,
next (the next-page command), render.sections with a "cost estimate:"
line per play.
Cost:
Free.
Avoid:
For a prebuilt, search and describe show the same observedCost; for your
own plays only this command estimates cost.
Pricing a run:
Multiply lowCredits..highCredits (observedCost: avgCredits, or the typical
range before runs are observed) by the row count when unit is "row", or
use it directly when unit is "run". Compare with the billing balance.
When the estimate is unavailable, run a two-row slice first and
read its actual spend with billing usage --run-id <run-id>.
Output fields:
costEstimate.source "observed" (from past runs; shown with ~) or
"static" (a hand-written range or the play's
declared tools).
costEstimate.sampleRunCount how many runs the observation is based on.
observedCost avgCredits, medianCredits, maxCredits per unit across
all orgs' runs, or status "unavailable" with
typical {lowCredits, highCredits, unit}.
has_more / next_cursor the page is bounded; pass --cursor to continue.
is_truncated true when the page was cut for size.
plays activity
Usage: deepline plays activity [options]
Count Play runs and delivered Monitor findings by day.
Options:
--time-zone <iana> Calendar timezone (default: UTC) (default: "UTC")
--days <count> Trailing calendar days, 1–45 (default: "30")
--end-date <yyyy-mm-dd> Last local calendar day
--group-by <kind> kind or trigger_source (default: "kind")
--json Emit exact counts and coverage as JSON
-h, --help display help for command
plays pin
Usage: deepline plays pin [options] <target>
Pin an org-owned play to the top of play listings.
Options:
--dry-run Print the planned change without saving it
--json Emit JSON output
-h, --help display help for command
plays unpin
Usage: deepline plays unpin [options] <target>
Remove an org-owned play from the pinned group.
Options:
--dry-run Print the planned change without saving it
--json Emit JSON output
-h, --help display help for command
plays search
Usage: deepline plays search [options] [task]
Deprecated. Use deepline search.
Options:
--all Include plays your org created
--compact Accepted for compatibility; results are compact
--categories <categories> Only tools in these categories, comma-separated
--limit <count> Results per page, 1-50
--offset <count> Results to skip, for the next page
--summary-width <chars> Description characters per result (default 140)
--json Print JSON instead of the readable list
-h, --help display help for command
plays grep
Usage: deepline plays grep [options] <query>
Search active org-owned Plays through Convex full-text search.
Options:
--json Emit JSON output
-h, --help display help for command
Explanation:
Purpose:
Full-text search over plays this org authored (not prebuilt ones).
When:
Finding a saved play by a phrase in its source or description.
Input:
A query. --json prints JSON.
Output (JSON):
Matching owned plays with the matched fields and terms.
Cost:
Free.
plays versions
Usage: deepline plays versions [options]
List revisions for a named play.
Options:
--name <name> Saved play name
--json Emit JSON output
-h, --help display help for command
Explanation:
Purpose:
List the saved revisions of an org play, newest first, and which one
is live.
When:
Before making an older revision live or running a specific revision.
Input:
--name <play>. --json forces JSON.
Output (JSON):
The play's revisions, each with its revision id and whether it is live.
Cost:
Free.
plays save
Usage: deepline plays save [options] <file>
Save or update a local Play working draft without publishing it.
Options:
--expected-artifact <hash> Require the checked artifact hash
--force Save even if the remote changed since this file
was last pulled or saved
--watch-play <reference> Show rejected saves on your open working canvas
--dry-run Bundle and show the planned draft save without
mutation
--json Emit JSON output
-h, --help display help for command
plays deploy
Usage: deepline plays deploy [options] [directory]
Deploy every play in a directory as one unit (all go live together, or none).
Options:
--manifest <file> Manifest file name in the directory (default:
deepline.json)
--repo <owner/name> Repository to record on the deployment
--ref <ref> Branch or ref to record on the deployment
--commit <sha> Commit to record on the deployment
--json Emit JSON output
-h, --help display help for command
plays deployments
Usage: deepline plays deployments [options] [id]
Deployment history for this org; pass an id for one deployment and its plays.
Options:
--limit <n> Max rows (default 50)
--json Emit JSON output
-h, --help display help for command
plays publish
Usage: deepline plays publish [options] <target>
Promote a saved play revision or publish a local play file.
Options:
--latest Promote the newest saved revision
--revision-id <id> Revision to promote
--expected-artifact <hash> Require the local file to produce this checked
artifact hash
--force Publish a local file even if the remote changed
since it was last pulled or published
--dry-run Bundle and show the planned publish without
mutation
--json Emit JSON output
-h, --help display help for command
Explanation:
Purpose:
Publish a local .play.ts file or promote a saved revision, so run
<name>, triggers, and deepline.runPlay callers use it. The same operation as
plays set-live.
When:
Once a play run by file path gives the right result. Running a local file
never publishes it.
Input:
A local path ending in .play.ts, or a saved play name with --latest or
--revision-id <id>. --dry-run bundles and prints the planned artifact
without publishing. --expected-artifact <hash> refuses to publish when the
file no longer produces the artifact hash plays check printed.
Conflicts:
A local file publishes against the revision it was last pulled, saved, or
published as (kept in .deepline/plays/<play>.json beside it). When the
remote moved since, the publish is refused with PLAY_REVISION_CONFLICT,
exit 7; --json prints code, liveRevisionId, workingRevisionId,
yourBaseRevisionId, and next.pull. Run plays pull <play> --file <path> to
merge, then publish again, or pass --force to overwrite the remote.
Output (JSON):
success, name, liveVersion, revisionId, artifactHash, and the trigger
metadata and bindings now live.
Diagram:
Refused until the play meets the diagram rules plays check reports (see
plays check --help, Diagram), with the same issues and fixes. Running a
local file never needs a diagram.
Cost:
Free. It changes cloud state: every caller of the play name gets the new
version at once.
Avoid:
A cron or webhook trigger cannot report its own failure. After publishing
a triggered play, check that a failure notifies someone: notifications
--help.
plays set-live
Usage: deepline plays set-live [options] <target>
Promote a saved revision or publish a local play file.
Options:
--latest Promote the newest saved revision
--revision-id <id> Revision to promote
--expected-artifact <hash> Require the local file to produce this checked
artifact hash
--force Publish a local file even if the remote changed
since it was last pulled or published
--dry-run Bundle and show the planned publish without
mutation
--json Emit JSON output
-h, --help display help for command
Explanation:
Purpose:
Make one version of a play live, so run <name>, triggers, and
deepline.runPlay callers use it. A local .play.ts file is bundled, validated,
saved as a revision, and promoted in one step; a saved play promotes one
of its existing revisions.
When:
After iterating on a local file with run ./file.play.ts, once its
result is right. Running a local file never publishes it.
Input:
A local path ending in .play.ts, or a saved play name with --latest or
--revision-id <id>. --dry-run bundles and prints the planned artifact
without publishing. --expected-artifact <hash> refuses to publish when the
file no longer produces the artifact hash plays check printed.
Conflicts:
A local file publishes against the revision it was last pulled, saved, or
published as (kept in .deepline/plays/<play>.json beside it). When the
remote moved since, the publish is refused with PLAY_REVISION_CONFLICT,
exit 7; --json prints code, liveRevisionId, workingRevisionId,
yourBaseRevisionId, and next.pull. Run plays pull <play> --file <path> to
merge, then publish again, or pass --force to overwrite the remote.
Output (JSON):
success, name, liveVersion, revisionId, artifactHash, previousLiveVersion,
previousArtifactHash, and the trigger metadata and bindings now live.
Cost:
Free. It changes cloud state: every caller of the play name gets the new
version at once.
Avoid:
Do not publish to test a change; run the file by path instead.
A cron or webhook trigger cannot report its own failure. After publishing
a triggered play, check that a failure notifies someone: notifications
--help.
plays delete
Usage: deepline plays delete [options] <target>
Move an org-owned play to Trash and stop its triggers.
Options:
-y, --yes Confirm deletion
--dry-run Show the planned archive without mutating the play
--json Emit JSON output
-h, --help display help for command
Explanation:
Purpose:
Move an org play to Trash and stop its triggers. Its revisions and
run history are kept, so it can be restored.
When:
When the user asks to remove a play. Prebuilt plays cannot be deleted.
Input:
The play name. --yes confirms; --dry-run shows the planned change.
Output (JSON):
The deleted play and the triggers that were stopped.
Cost:
Free.
plays restore
Usage: deepline plays restore [options] <target>
Restore an org-owned play from Trash.
Options:
--json Emit JSON output
-h, --help display help for command
Explanation:
Purpose:
Restore a play from Trash. The saved play is enabled again and its trigger
bindings are recreated.
When:
After a play was deleted by mistake.
Input:
The play name. --json forces JSON.
Output (JSON):
The restored play.
Cost:
Free.
plays share
Usage: deepline plays share [options] [command]
Manage a play's public, unlisted share page (advanced — exposes play code).
Options:
-h, --help display help for command
Commands:
status [options] <play> Show a play's share-page status and revision
picker.
publish [options] <play> Publish/repoint a PUBLIC page to a revision.
Advanced; not recommended unless explicitly
requested and risks confirmed.
update [options] <play> Update share-page settings without moving the
pointer.
regenerate [options] <play> Regenerate the public page's LLM copy for a
revision.
unpublish [options] <play> Unshare: permanently delete the public page
(frees it). Requires --yes.
help [command] display help for command
plays share status
Usage: deepline plays share status [options] <play>
Show a play's share-page status and revision picker.
Options:
--json Emit JSON output
-h, --help display help for command
plays share publish
Usage: deepline plays share publish [options] <play>
Publish/repoint a PUBLIC page to a revision. Advanced; not recommended unless
explicitly requested and risks confirmed.
Options:
--latest Publish the newest revision (default).
--version <n> Publish a specific version number.
--revision-id <id> Publish a specific revision id.
--seo <mode> SEO indexing: index | noindex.
--show-cost Show average Deepline credit cost on the page.
--show-latency Show average latency on the page.
--no-run-check Skip the "must have a completed run" gate.
-y, --yes Confirm public exposure of the play code/structure
(required).
--dry-run Show the planned publish without writing.
--json Emit JSON output
-h, --help display help for command
plays share update
Usage: deepline plays share update [options] <play>
Update share-page settings without moving the pointer.
Options:
--seo <mode> SEO indexing: index | noindex.
--show-cost Show average Deepline credit cost.
--hide-cost Hide average Deepline credit cost.
--show-latency Show average latency.
--hide-latency Hide average latency.
--json Emit JSON output
-h, --help display help for command
plays share regenerate
Usage: deepline plays share regenerate [options] <play>
Regenerate the public page's LLM copy for a revision.
Options:
--version <n> Regenerate a specific version number.
--revision-id <id> Regenerate a specific revision id.
--json Emit JSON output
-h, --help display help for command
plays share unpublish
Usage: deepline plays share unpublish [options] <play>
Unshare: permanently delete the public page (frees it). Requires --yes.
Options:
-y, --yes Confirm taking the public page down (required).
--json Emit JSON output
-h, --help display help for command