The basestudio command reads and changes a Base with BaseStudio’s own code. It shows the rows of a view as the table
does, with its filters, formulas and sorting. Its changes follow the app’s rules. Record and schema edits join the app’s undo history; display settings follow view saving.
basestudio query "Vault/Tasks.base" --view Open --where status=Done --format tablebasestudio set "Vault/Tasks.base" "[[Launch]]" status=Done due=01/10/2026 tags+=webbasestudio undo "Vault/Tasks.base"AI agents can use the same commands through the MCP server, basestudio mcp.
Install
Section titled “Install”The command comes with the macOS and Linux desktop apps. On macOS, select BaseStudio → Install Command Line Tool…. On Linux, open the app menu at the bottom of the sidebar (or the command palette) and select Install Command Line Tool…. This links
the command into ~/.local/bin; the item shows only until the command is installed. Make sure that this folder is in your PATH. The Windows app does not include
the command yet.
basestudio <command> <file.base|file.basestudio> [arguments] [options]Run basestudio --help for a short list of all commands, or basestudio <command> --help.
Options for every command
Section titled “Options for every command”--vault DIR: the vault folder. By default, the nearest folder above the file that has a.obsidianfolder.--table NAME: the Base inside a.basestudiodatabase. By default, the main Base. A.basefile refuses it.--format json|table:json(the default) for agents and scripts,tablefor people. A command whose result is not a list of rows prints JSON in both cases.--as NAME: who makes the change, such as an agent’s name. The undo history shows it next to the action, andcommentsigns its entry with it.
A command refuses an option that it does not take, so a mistyped option never goes unnoticed.
query, get, create and the commands that change records give each record a link
(basestudio://open/base?…). The link opens the record (and, from query, its view) in the desktop app on this
computer, so an agent can give it to you. query also gives a link to the view.
Records and views
Section titled “Records and views”- A record is a vault path (
"Projects/Launch.md"), a wiki link ("[[Launch]]") or a note name. --viewtakes the name or the number of a view. An exact view name matches first; otherwise, digits are treated as a 0-based position.
basestudio views <base>basestudio views <base> lists the views: name, kind, columns, sort and grouping, and the number of records. It also
gives the Base’s mode: tasks for a to-do list, database for every other Base. A to-do list gets only Tasks views (its
lists); a database gets every kind of view except Tasks.
schema
Section titled “schema”basestudio schema <base>basestudio schema <base> lists the properties: id, name, type, description, options and formula.
basestudio query <base> [--view V] [--where key=value]... [--search TEXT] [--columns a,b] [--limit N] [--offset N]basestudio query <base> lists the records that a view shows, in its order, with its columns.
--view NAME|INDEX: the view. By default, the first view.--where key=value: keep the rows whose cell equals the value. Alsokey!=value(not equal) andkey~text(contains, without regard to case). You can give it many times. A list matches when one of its items matches.--search TEXT: keep the rows whose name, values or note text contain the text.--columns a,b: show these properties instead of the view’s columns.--limit Nand--offset N: one page of the rows. By default, the first 500 rows.
basestudio get <base> <record>basestudio get <base> <record> shows a record’s properties, its note text and its revision.
resolve
Section titled “resolve”basestudio resolve <base> <link>basestudio resolve <base> <link> shows the path of the note that a [[link]] or a name points to. For a database
inside an Obsidian vault, a link that names nothing in the database is looked up in that vault: vaultPath is the
note or file it names there.
Change
Section titled “Change”basestudio set <base> <record> key=value... [--dry-run] [--expect-revision R] [--body-file FILE|-]basestudio set <base> <record> key=value... changes one record.
--dry-run: show the change, but do not write it.--expect-revision R: refuse the change when the note changed after you read it at revisionR(fromget).--body-file FILE: replace the note text with the contents of the file. Use-to read standard input.
basestudio park <base> <record>... [--until YYYY-MM-DD | --until-done <record>] [--dry-run]basestudio park <base> <record>... puts records aside. A parked record leaves every view of the Base, its counts and
tasks, until it is unparked. The record’s note gets parked: true.
--until YYYY-MM-DD: bring the records back on that day (parked: 2027-01-10).--until-done <record>: bring the records back when that record is done: its status is in the done category, or its note is gone (parked: "[[Book flights]]").--dry-run: show the change, but do not write it.
A view with Show parked on still shows parked records. Obsidian’s own Bases view does not know parked and shows them.
unpark
Section titled “unpark”basestudio unpark <base> <record>... [--dry-run]basestudio unpark <base> <record>... brings parked records back into the views. It removes parked from each note. It
takes --dry-run too.
parked
Section titled “parked”basestudio parked <base>basestudio parked <base> lists the records that have parked: each record’s path, the day it comes back (or
“Unparked by hand”), the records it waits on (waitingOn) and whether it is parked today. query and tasks leave parked records out, so use parked to
find them.
bulk-set
Section titled “bulk-set”basestudio bulk-set <base> key=value... (--view V | --where key=value... | --search TEXT | --all) [--dry-run]basestudio bulk-set <base> key=value... changes each row that --view, --where and --search keep. Give at least
one of them, or --all to change every row of the first view. A --where key that no record has is refused. It takes
--dry-run too.
basestudio apply <base> --file FILE|- [--dry-run]basestudio apply <base> --file FILE gives many records each their own changes. The file is a JSON list with one entry
for each record:
[ { "record": "Launch", "changes": ["status=Done"] }, { "record": "Projects/Review.md", "values": { "tags": ["a", "b"] }, "expectRevision": "3ffb5c…" }]record: a vault path, a[[link]]or a note name. Name each record once.changes: changes assettakes them.values: JSON values by property, askey:=json.body: new note text.expectRevision: refuse this record when its note changed after you read it.--file -reads the list from standard input.--dry-runshows the changes, but does not write them.
The records that save are one action in the undo history. A batch can save some records and refuse others.
Read every record’s outcome; exit status 1 does not mean that nothing changed. Retry only the refused records after
resolving their errors or reading their new revisions. To change many records, use one apply (or
bulk-set), not a set for each record: each command writes the file once.
create
Section titled “create”basestudio create <base> [key=value...] [--view V] [--name NAME] [--folder PATH] [--body-file FILE|-]basestudio create <base> [key=value...] makes a new record in a view, with the view’s default values and the values
that its filters need.
--view NAME|INDEX: the view.--name NAME: the name of the note. By default, an automatic name.--folder PATH: the folder of the note. By default, the folder of the view’s records.--body-file FILE: the note text. Use-to read standard input. By default, the text of the view’s template.
basestudio trash <base> <record>... [--dry-run] | trash <db> --listbasestudio trash <base> <record>... moves records to the trash, as the app does, as one step of the undo history.
Each record gets its own result; a record that fails does not stop the others. --dry-run lists the records only. In a
database, --list shows the database’s trash, newest first.
restore
Section titled “restore”basestudio restore <db> <record>...basestudio restore <base> <record>... puts trashed records of a database back.
add-option
Section titled “add-option”basestudio add-option <base> <property> <value> [--color NAME|#hex]basestudio add-option <base> <property> <value> adds an option to a select column. --color NAME|#hex sets its color.
set-type
Section titled “set-type”basestudio set-type <base> <property> <type> [--view V] [--clear-incompatible] [--dry-run]basestudio set-type <base> <property> <type> changes the type and converts the values. Use --dry-run first to
check the change. Values that the type cannot take stop the change. --clear-incompatible clears those values instead.
--view chooses the view (the first by default).
The types are text, number, rating, checkbox, date, datetime, url, email, select, multiSelect, tags,
link, list, image and attachment.
basestudio check <base> [--fix]basestudio check <base> lists the problems in the Base’s YAML. --fix repairs the safe ones. In a to-do list, it
also names the task fields the to-do list lacks.
delete-view
Section titled “delete-view”basestudio delete-view <base> --view V [--dry-run]basestudio delete-view <base> --view NAME deletes one view (--view also takes its number). The records stay, and
undo brings the view back. A Base keeps at least one view. --dry-run names the view only.
These commands work on a to-do list: a table of a .basestudio database with task roles, such as one made from the
To-do list template. Every to-do list has the status, next step, context, importance,
scheduled, due, parent, activity and done date fields.
tasks-setup
Section titled “tasks-setup”basestudio tasks-setup <db> [--replace-views] [--off] [--dry-run]basestudio tasks-setup <db> makes a database table a to-do list, or repairs an existing to-do list against the
current template. It adds missing fields, core lists and layouts, and repairs the template’s status options and fixed
filters. It keeps records, custom fields and filters added after the fixed filters. See To-do lists.
Use --dry-run to read the repair report before applying it. Every to-do list includes agent fields. --agents is accepted for compatibility and has no effect. --replace-views
replaces a non-Tasks view that has a template list’s name; an existing Tasks list keeps its identity. Running the
command again after a complete repair makes no change.
A .base file must first be copied to a database with basestudio import-to-database <base> --todo.
--off converts a to-do list back to a database. Its fields and records stay. Each list becomes a database view with
the layout it showed. The conversion is one undo action. Do not combine --off with --agents or --replace-views.
basestudio tasks <base> [--view V] [--owner NAME] [--mentions NAME] [--updates] [--attention] [--limit N]basestudio tasks <base> lists the tasks of a view (--view, by default the first) with their status, next step,
context, dates, links, owner, subtasks (with their status) and their five latest activity entries. --owner NAME keeps the tasks assigned to a
person (Assignee) or an agent (Agent Assigned). An assignment to Any agent matches every known agent.
--updates keeps tasks with a Message to Agent. --attention keeps open tasks that need review, need you, are overdue,
or have a follow-up date to check. --mentions NAME keeps the tasks whose activity mentions @NAME. --limit N stops after N
tasks.
comment
Section titled “comment”basestudio comment <base> <task> "text" [--as NAME] [--state draft|sent|confirmed] [--path FILE] [--dry-run]basestudio comment <base> <task> "text" adds an entry to the task’s activity, signed with --as NAME. To report work,
add --state draft (it needs you), --state sent (done and reported) or --state confirmed, and name the file the
work touched with --path FILE. Earlier entries are kept as they are. --dry-run shows the change only.
When a change sets a task’s status to a done status, the task’s done date is set to today; when it opens again, the date is cleared. A waiting status sets the waiting-since date the same way. These dates belong to the same action, so undo reverses them together.
basestudio history <base>lists the Base’s undo and redo actions, newest first.basestudio undo <base>undoes the last action.--steps Nundoes the lastNactions.basestudio redo <base>redoes the last undone action. It takes--steps Ntoo.
The history is the app’s own. The app’s Undo reverses changes made on the command line, and these commands reverse changes made in the app. An action whose files changed after it is refused, not forced.
Values
Section titled “Values”| Form | Meaning | Example |
|---|---|---|
key=text |
Read the text as the table reads typed text for the property’s type | due=21/09/2026, done=true |
key:=json |
Store this JSON value: text, a number, true or false, null, or a list | tags:=["a","b"], rating:=null |
key+=text |
Add an item to a list | tags+=web |
key-=text |
Remove an item from a list | tags-=draft |
A link is written as owner=[[Priya Shah]]. A key can start with note., as in a formula.
Databases
Section titled “Databases”A .basestudio file holds one or more Bases (tables). --table NAME chooses one. Each table shows the records of its
own folder. A command can change a database that is open in the app, in Obsidian or on another device: those apps show
the change within a second or two.
A command that only reads leaves the database file as it is. A command that changes records records its changes beside the database and saves them into the database before it ends. See Edit anywhere at once.
Image storage
Section titled “Image storage”A database keeps its stored images inside its file. Image settings control compression and whether web images are
copied into it. See Images in a database. optimize-images keeps originals for undo;
delete-originals removes those originals and the corresponding undo ability.
View commands
Section titled “View commands”copy-view-settings
Section titled “copy-view-settings”basestudio copy-view-settings <base> --from VIEW --to VIEW [--parts fields,sort,group,filters] [--dry-run]Give a view another view’s shown fields and their order, sort, groups and filters (all parts by default). A view that does not autosave gets them as unsaved changes. In a to-do list, the filters go to the list and the rest to the layout it shows, which every list shares. –dry-run shows the change only.
set-filters
Section titled “set-filters”basestudio set-filters <base> --view V (--filter EXPR... | --clear) [--dry-run]Replace a view’s own filters: each –filter is a formula, and all must be true; –clear removes them. In a to-do list they go to the list. –dry-run shows them only.
Repeat --filter for expressions that must all be true. For example, --filter 'status != "Done"'. Give --clear
to remove the view’s filters; a command with neither is refused.
create-view
Section titled “create-view”basestudio create-view <base> <name> [--kind KIND] [--view V]Add a view after the last view (or after –view), with its shown properties and the app’s defaults for KIND: table (default), board, timeline, calendar, cards, list, outline, mindmap, detail, form or chart. In a to-do list it adds a list, as New list does: –kind is list (or tasks) there.
rename-view
Section titled “rename-view”basestudio rename-view <base> --view V <name>Rename a view. A core list of a to-do list keeps its name.
duplicate-view
Section titled “duplicate-view”basestudio duplicate-view <base> --view V <name>Copy a view with all its settings, after it.
move-view
Section titled “move-view”basestudio move-view <base> --view V --to NMove a view to position N (0 is the first).
set-view
Section titled “set-view”basestudio set-view <base> --view V [--sort ...] [--group ...] [--columns ...] [--widths ...] [--chart ...] [--dry-run]Change a view’s sort, groups, shown properties and their order, and column widths (80–1200 px). Each option changes only its part; –sort none removes the sort. Name a property by its key (status, note.status, file.name, formula.x) or its name. In a to-do list they go to the layout the list shows, which every list shares. A view that does not autosave gets them as unsaved changes. As in the app, these settings are not in the undo history. –dry-run shows the new settings only.
Use --sort "due:asc,file.name:asc", --group status, --columns "file.name,status,due", or
--widths "file.name=240,due=120". --sort none and --group none remove those settings.
--chart sets a chart view’s settings as key=value pairs, for example
--chart "type=table,x=note.project,aggregate=count". The keys are type (bar, line, pie or table), x,
series, aggregate (count, sum, average, min or max), value, bucket, sort (label, value-desc or
value-asc), limit, stacked and showValues. The value none removes one setting.
set-base-filters
Section titled “set-base-filters”basestudio set-base-filters <base> (--filter EXPR... | --clear) [--dry-run]Replace the Base’s own filters, which every view applies first: each –filter is a formula, and all must be true; –clear removes them. A database has no Base filters. –dry-run shows how many records the Base has now and would have.
Property commands
Section titled “Property commands”rename-option
Section titled “rename-option”basestudio rename-option <base> <property> old=new... [--dry-run]Rename options in every record, filter and formula that uses them; colours, categories and number keys stay. –dry-run shows the change only.
set-options
Section titled “set-options”basestudio set-options <base> <property> --file FILE|- [--dry-run]Set a select column’s options from a JSON list: order, colour, category, number key (0–9), label. List every option once; a field left out stays. –dry-run shows the change only.
The JSON file lists all options, each with value. Optional fields are color, category (todo, active,
waiting, done), key (0–9), label and description. For example:
[ { "value": "Open", "color": "blue", "key": 1 }, { "value": "Done", "category": "done", "key": 2 }]rename-property
Section titled “rename-property”basestudio rename-property <base> <property> "<name>"Rename a property (by key or name). Its key stays when records or filters use it; only its name changes.
delete-property
Section titled “delete-property”basestudio delete-property <base> <property>... [--dry-run]Delete properties and their values from every record; views, filters and formulas that use them are cleaned, and so are the link columns, lookups and rollups of other Bases that read them. –dry-run shows the change only. Undo restores them.
add-property
Section titled “add-property”basestudio add-property <base> <name> --type TYPE [--options a,b,c] [--view V]Add a note property, shown in a view (–view, default: the first). TYPE: text, number, rating, checkbox, date, datetime, url, email, select, multiSelect, tags, list, image, attachment. –options gives a select its options.
add-link-property
Section titled “add-link-property”basestudio add-link-property <base> <name> --links <other Base or table> [--reverse NAME]Add a link column to the records of another Base of the vault, or another table of the database. –reverse adds to that Base a column NAME that lists the records here that link to each of its records.
set-formula
Section titled “set-formula”basestudio set-formula <base> <name> --formula EXPR [--view V] [--dry-run]Add a formula column, or change the expression of the formula with that name. –dry-run checks the expression and shows its first values; nothing changes.
duplicate-property
Section titled “duplicate-property”basestudio duplicate-property <base> <property> [--name NAME]Copy a property with its settings and values, after it (default name: “
describe-property
Section titled “describe-property”basestudio describe-property <base> <property> <text> ("" removes it)Set a property’s description; “” removes it.
set-format
Section titled “set-format”basestudio set-format <base> <property> --file FILE|- [--dry-run]Set a property’s display settings from a JSON object: display (number, percent, currency, progress), numberFormat, currency (EUR), dateFormat, zeroAsDash, ratingMax (1–10), ratingIcon, pills, linkTarget, default. null removes a setting. –dry-run shows the change only.
For example, a JSON file can hold { "display": "currency", "currency": "EUR", "zeroAsDash": true }. A value
of null removes only that setting. Use --dry-run before applying the file.
rename-key
Section titled “rename-key”basestudio rename-key <base> <property> <key> [--dry-run]Change a property’s frontmatter key in every note, and in every filter and formula that uses it. –dry-run shows the files that change only. Undo restores them.
More task commands
Section titled “More task commands”apply-update
Section titled “apply-update”basestudio apply-update <base> <task> [key=value...] --expect-revision REV --summary "text" | --needs-you "question" [--dry-run]Apply a task’s Message to Agent and field changes in one undo action. --summary explains the change. The command adds two Activity entries, the message and then the summary, so Activity keeps the conversation about the task. It clears the message and sets Agent Status to Awaiting review. The person checks the result and marks Agent Status Done. With --needs-you, give a question and no changes; Agent Status becomes Needs you. --dry-run shows the result without writing.
Read the task with tasks --updates or get, then pass its exact 64-character revision with --expect-revision.
A stale revision refuses the update before it adds Activity or clears Message to Agent. The revision is required
for both --summary and --needs-you.
basestudio tasks "Tasks.basestudio" --updatesbasestudio apply-update "Tasks.basestudio" "Appointment" --expect-revision "REVISION_FROM_TASKS" scheduled_date_todo:='"2026-11-15"' --summary "Changed the scheduled date" --dry-runcomplete-task
Section titled “complete-task”basestudio complete-task <base> <task> [--dry-run]In a to-do list, mark the task and its open subtasks done, as one undo action. –dry-run names them only.
More record commands
Section titled “More record commands”rename-record
Section titled “rename-record”basestudio rename-record <base> <record> <name> [--dry-run]Rename a note as the app does: the links to it in other notes follow. –dry-run shows the new path and the notes whose links change.
duplicate-record
Section titled “duplicate-record”basestudio duplicate-record <base> <record> [--name NAME]Copy a record with its properties and note text, as “Name copy” (or NAME) in the same folder.
restore-version
Section titled “restore-version”basestudio restore-version <db> <record> --version ID [--dry-run]Make an earlier version the record’s text again, as one undo action. –dry-run shows what changes.
More read commands
Section titled “More read commands”versions
Section titled “versions”basestudio versions <db> <record> [--version ID]A database record’s saved versions, newest first: id, time and the properties that changed. With –version, the text of that version.
backlinks
Section titled “backlinks”basestudio backlinks <base> <record>The notes that link to the record, and the property that holds each link (none: a link in the note text).
counts
Section titled “counts”basestudio counts <base> [--view V] [--by PROPERTY]Without –by, the number of records of each view (or of –view). With –by, the number of records of the view for each value of the property; a list counts once for each item. Done tasks do not count.
Undo commands
Section titled “Undo commands”history
Section titled “history”basestudio history <base>The Base’s undo and redo actions, newest first.
basestudio undo <base> [--steps N]Undo the last action (or N); redo does the reverse.
basestudio redo <base> [--steps N]Redo undone actions. –steps chooses how many actions (1 by default).
Database commands
Section titled “Database commands”import-to-database
Section titled “import-to-database”basestudio import-to-database <base> [--out PATH] [--todo] [--dry-run]Copy a .base file and its notes (and the files they link to) into a new database: PATH, or beside the Base with its name. The vault stays as it is. --todo makes the new table a to-do list, as tasks-setup does. --dry-run shows what it would copy only.
tables
Section titled “tables”basestudio tables <db>The tables: name, path, folder and record count.
create-table
Section titled “create-table”basestudio create-table <db> <name>Add an empty table with a folder of its own.
rename-table
Section titled “rename-table”basestudio rename-table <db> <table> <name>Rename a table; a folder named after it follows, with its records, the links to them and link columns.
duplicate-table
Section titled “duplicate-table”basestudio duplicate-table <db> <table> <name> [--no-records]Copy a table and its records (–no-records: empty).
delete-table
Section titled “delete-table”basestudio delete-table <db> <table> [--dry-run]Remove a table (not the main one); the records of its folder go to the database’s trash (trash –list). –dry-run names the table and its record count only.
Image commands
Section titled “Image commands”images
Section titled “images”basestudio images <db> [--compression original|compressed] [--download on|off]The image settings: how images are stored. --compression original stores images as they are; compressed stores lossy WebP, at most 2560 px on the long side. --download on|off controls whether web images are copied into the database.
optimize-images
Section titled “optimize-images”basestudio optimize-images <db> [--compression original|compressed] [--download on|off] [--dry-run]Compress the stored images and download the web images, as the settings (or –compression and –download, for this run) ask. The originals are kept: undo restores them. --dry-run only says what it would do.
delete-originals
Section titled “delete-originals”basestudio delete-originals <db> [--dry-run]Delete the originals that optimize-images kept. The file shrinks; those runs can no longer be undone. –dry-run counts them only.
Import and export commands
Section titled “Import and export commands”export-csv
Section titled “export-csv”basestudio export-csv <base> --out FILE [--view V]Write the rows of a view (–view, default: the first) as a CSV file: its columns, its order and its filters, as the app’s “Export as CSV” does. FILE must not exist.
import-csv
Section titled “import-csv”basestudio import-csv <base> --file FILE|- [--dry-run]Add the rows of a CSV file as new records of the first view, as the app’s “Import CSV rows” does: headers fill the columns with the same name or key, other headers become new columns. One undo action. –dry-run shows the column matches, the new records and the problems.
upgrade
Section titled “upgrade”basestudio upgrade <base> [--out COPY] [--dry-run]Convert an older .base or .basestudio file to a checked copy beside it, and print the copy’s path. The original
file stays as it is. --out chooses another path for the copy; an existing file is never replaced. --dry-run checks
the conversion without saving the copy.
create-database
Section titled “create-database”basestudio create-database <new.basestudio> [--template ID] [--todo]Make a new database file: empty, or from a template. –todo is the same as –template todo-list. The file must not exist.
import-app
Section titled “import-app”basestudio import-app <export file or folder> --app NAME --out NEW.basestudio [--dry-run]Import an export of Notion, Airtable or Coda (ZIP files, CSV files or a folder) into a new database at –out. --app is notion, airtable or coda. Pass more export files after the first path to import tables together.
--dry-run shows the tables, columns, links and records without creating the database.
license
Section titled “license”basestudio license [status|activate <key>|check|remove]Check or manage the BaseStudio Pro license on this device (command line only, not an MCP tool). activate - reads the
license key from standard input so it is not kept in the shell’s history. The license belongs to the app’s profile, so
the app and the command line share it.
Agents
Section titled “Agents”basestudio mcp serves these commands to an AI agent as an MCP server, on standard input and output. See
MCP server and Agent Skill.
How it works with the app
Section titled “How it works with the app”- While the app is open, each command runs in the app, so the app shows the change at once.
- When the app is closed, the command runs on its own, with the same rules.
- Record and schema edits join the app’s undo history. Display settings such as sort, grouping and column widths follow view saving, and do not enter that history.
- The command applies the same free-version limits as the app. See BaseStudio Pro.
Exit status
Section titled “Exit status”| Status | Meaning |
|---|---|
0 |
Done |
1 |
One or more changes were refused or conflicted; a batch can still have saved other records |
2 |
Wrong use, such as an unknown command or option |
For set, bulk-set and apply, inspect the returned record statuses (saved, unchanged, conflict, failed).
A partial batch returns exit status 1 with its record results. Do not assume that an error means the whole batch was rolled back.
A command’s result goes to standard output, also when some changes were refused (exit status 1). Only an error
message goes to standard error: a JSON object, {"error": …, "status": …}, unless you give --format table.
--version (or -V) reports the app version without opening a Base.