$ teler data list --project prj_01kt9wmn8mmp0xxg6mz4nc6kpg --query sales --json
{"tables":[{…,"ref":"personal.daily_sales_csv","displayName":"daily_sales.csv",…,"queryable":true,…,"rowCount":11680,"columnCount":7}],…}
$ teler data query --file check.sql --project prj_01kt9wmn8mmp0xxg6mz4nc6kpg --row-limit 100 --max-credits 1 --idempotency-key cli-demo-check-sales-01 --wait --json
{"id":"expjob_01k3fgpqpqcvg9dnz96ys3zh83",…,"status":"running",…}
{…,"status":"completed",…,"chargedCredits":"0.044735932",…,"output":"{\"columns\":[\"month\",\"units\",\"revenue\"],\"rows\":[{\"month\":\"2026-09-01T00:00:00.000\",\"units\":9520.0,\"revenue\":283084.9199999998},{\"month\":\"2026-08-01T00:00:00.000\",\"units\":9074.0,\"revenue\":269…",…}
$ teler run python --file train.py --project prj_01kt9wmn8mmp0xxg6mz4nc6kpg --chat chat_01kkzbhc6264fvp7vzh4s9q1nf --max-credits 2 --execution-timeout 300 --capabilities tables.metadata.read,tables.rows.read,files.create --idempotency-key cli-demo-train-forecast-03 --wait --json
{"id":"expjob_01kwwj442c76tphx5r7nqpgf0h",…,"status":"needs_approval",…,"approval":{"requestId":"clireq_01kk5f5zmx2z3sgb2pqvzdetc8",…,"asks":[{"capability":"files.create"}],…},…,"approvalUrl":"https://app.teler.ai/cli-requests/clireq_01kk5f5zmx2z3sgb2pqvzdetc8",…}
{…,"status":"completed",…,"chargedCredits":"0.246959772",…,"output":"September holdout error: 4.9% by category\nsaved /personal/models/sales-forecast doc_01ks172xmznhxr3spjnc1ynzr7\n",…,"artifacts":[{…,"category":"model","type":"sklearn","title":"sales-forecast"}],…}
$ teler files save-code predict.py --to /personal/jobs/predict.py --project prj_01kt9wmn8mmp0xxg6mz4nc6kpg --input sales=personal.daily_sales_csv --input model=file:doc_01ks172xmznhxr3spjnc1ynzr7 --json
{"fileId":"doc_01k2n5mt3t4anqxbbf8hpskwcf",…,"version":1,"bindings":[{"kind":"upload_table","name":"sales",…},{"kind":"file","name":"model",…}]}
$ teler files run doc_01k2n5mt3t4anqxbbf8hpskwcf --project prj_01kt9wmn8mmp0xxg6mz4nc6kpg --input sales=personal.daily_sales_csv --input model=file:doc_01ks172xmznhxr3spjnc1ynzr7 --output result --output forecast --params '{"horizon":31,"scenario":"baseline"}' --max-credits 2 --idempotency-key cli-demo-predict-baseline-31 --wait --json
{"id":"scrun_01kcrywrevdxtfrcnbq3zsmr0w",…,"status":"queued",…}
{…,"status":"succeeded",…,"outputs":{"result":{"scenario":"baseline",…,"units":11160,"revenue":336108,"vs_baseline":{"units_pct":0,"revenue_pct":0},…},…}}
$ teler files run doc_01k2n5mt3t4anqxbbf8hpskwcf --project prj_01kt9wmn8mmp0xxg6mz4nc6kpg --input sales=personal.daily_sales_csv --input model=file:doc_01ks172xmznhxr3spjnc1ynzr7 --output result --output forecast --params '{"horizon":31,"scenario":"price +5%"}' --max-credits 2 --idempotency-key cli-demo-predict-price5-31 --wait --json
{"id":"scrun_01k767r1vc1s95egvk0t7cfdpe",…,"status":"queued",…}
{…,"status":"succeeded",…,"outputs":{"result":{"scenario":"price +5%",…,"units":10609,"revenue":335500,"vs_baseline":{"units_pct":-4.9,"revenue_pct":-0.2},…},…}}
$ teler schedule file create doc_01k2n5mt3t4anqxbbf8hpskwcf --frequency daily --time 12:40 --timezone Europe/Madrid --project prj_01kt9wmn8mmp0xxg6mz4nc6kpg --input sales=personal.daily_sales_csv --input model=file:doc_01ks172xmznhxr3spjnc1ynzr7 --output result --output forecast --params '{"horizon":31,"scenario":"baseline"}' --idempotency-key cli-demo-predict-daily-02 --json
{"id":"sched_01kv0wzgjp1am6f5e9xewsj6nw",…,"frequency":"daily","time":"12:40","timezone":"Europe/Madrid",…,"isPaused":true,…,"needsSpendApproval":true,…}
$ teler schedule file quote sched_01kv0wzgjp1am6f5e9xewsj6nw --json
{…,"suggestedMaximumCreditsPerMonth":"33",…,"measuredCreditsPerRun":"0.702426667",…,"definitionRevision":1}
$ teler schedule file approve sched_01kv0wzgjp1am6f5e9xewsj6nw --revision 1 --monthly-credits 25 --yes --json
{…,"isPaused":false,…,"nextRunAt":"2026-10-30T11:40:00.000Z",…,"spend":{"status":"active",…,"maximumCreditsPerMonth":"25",…},…}
$ teler agent create --name retrain-sales-forecast --label 'Retrain sales forecast' --description 'Weekly: refit the sales forecast model and move the daily predictions to it' --content-file retrain-agent.md --capabilities tables.metadata.read,tables.rows.read,files.metadata.read,files.content.read,files.create,files.update,schedules.manage --json
{"id":"agent_01knw2kryjksc4gdab3154wk6s","name":"retrain-sales-forecast","label":"Retrain sales forecast",…,"capabilities":["files.metadata.read","files.content.read","files.create","files.update","tables.metadata.read","tables.rows.read","schedules.manage"],…,"readiness":"ready",…}
$ teler agent spend-cap agent_01knw2kryjksc4gdab3154wk6s --monthly-credits 25 --yes --json
{"agentId":"agent_01knw2kryjksc4gdab3154wk6s","spendCapCreditsPerMonth":25}
$ teler schedule create --agent agent_01knw2kryjksc4gdab3154wk6s --frequency weekly --day-of-week 1 --time-utc 05:00 --approve files.create,files.update --json
{"id":"sched_01kdcvm3thsht78sjjt6xqxd1t",…,"frequency":"weekly","dayOfWeek":1,…,"timeUtc":"05:00",…,"nextRunAt":"2026-11-02T05:00:00.000Z",…}
$ teler schedule file show sched_01kv0wzgjp1am6f5e9xewsj6nw --json
{"id":"sched_01kv0wzgjp1am6f5e9xewsj6nw",…,"isPaused":true,…,"definitionRevision":3,"needsSpendApproval":true,"spend":{"status":"none",…,"maximumCreditsPerMonth":"25",…},…}
$ teler schedule file quote sched_01kv0wzgjp1am6f5e9xewsj6nw --json
{…,"suggestedMaximumCreditsPerMonth":"33",…,"measuredCreditsPerRun":"0.702426667",…,"definitionRevision":3}
$ teler schedule file approve sched_01kv0wzgjp1am6f5e9xewsj6nw --revision 3 --monthly-credits 35 --yes --json
{…,"isPaused":false,…,"nextRunAt":"2026-10-30T11:40:00.000Z",…,"spend":{"status":"active",…,"maximumCreditsPerMonth":"35",…},…}
$ teler dashboard create --name 'Sales forecast' --json
{"dashboardId":"dash_01kqv6vd7rkfwhvzjhmka08v54","name":"Sales forecast",…}
$ teler dashboard add-widget dash_01kqv6vd7rkfwhvzjhmka08v54 --schedule sched_01kv0wzgjp1am6f5e9xewsj6nw --slot forecast --chart line --x date --y yhat --color category --title 'Daily forecast by category' --json
{"widgetId":"dwgt_01kcgw5btwsrkq6p6zq855t9sh","dashboardId":"dash_01kqv6vd7rkfwhvzjhmka08v54"}
$ teler schedule file latest sched_01kv0wzgjp1am6f5e9xewsj6nw --slot result --output result.json --json
{…,"run":{"id":"scrun_01kdjd4x5k8768mhtfq8h5jw39",…,"occurrenceAt":"2026-10-30T11:40:00.000Z",…,"status":"succeeded",…},…,"outputs":[{"slot":"result",…,"byteLength":505,…}],…,"savedTo":"result.json"}
$ cat result.json
{"scenario":"baseline","horizon_days":31,…,"units":10256,"revenue":310534,…,"by_week":[{"week":"2026-10-04","units":1354,"revenue":40989},{"week":"2026-10-11","units":2312,"revenue":69988},{"week":"2026-10-18","units":2315,"revenue":70090},{"week":"2026-10-25","units":2318,"revenue":70191},{"week":"2026-11-01","units":1958,"revenue":59275}]}
$ teler dashboard get dash_01kqv6vd7rkfwhvzjhmka08v54 --json
{…,"widgets":[{…,"config":{"refreshState":{…,"status":"ready","lastSuccessAt":"2026-10-30T11:45:39.618Z",…}},…,"artifact":{…,"type":"line","title":"Daily forecast by category",…},"follow":{"state":"following",…,"owner":{…,"fileName":"predict.py","scheduleId":"sched_01kv0wzgjp1am6f5e9xewsj6nw",…}}}],…}