Skip to content

CLI Reference

Complete command reference for the eidos CLI.

OptionDescription
-s, --space <id>Target space ID (optional if in space directory)
-f, --formatOutput format: table (default) or json
-h, --helpShow help
-V, --versionShow version

List nodes at the specified path.

Terminal window
eidos ls [path] [options]

Options:

OptionDescription
-l, --longShow detailed info (ID, type, created time)

View document content (markdown output).

Terminal window
eidos cat <path>

Note: Only works with documents. Use sql for table data.

Create a folder.

Terminal window
eidos mkdir <path>

Create a document.

Terminal window
eidos touch <path> [options]

Options:

OptionDescription
-c, --content <text>Initial document content

Piping:

Terminal window
cat file.md | eidos touch notes/doc
echo "text" | eidos touch notes/doc

Move or rename a node.

Terminal window
eidos mv <source> <destination>

Append content to a document.

Terminal window
eidos append <path> [options]

Options:

OptionDescription
-c, --content <text>Content to append

Piping:

Terminal window
echo "text" | eidos append notes/doc

Delete a node.

Terminal window
eidos rm <path> [options]

Options:

OptionDescription
-f, --forcePermanent delete (skip trash)
-r, --recursiveRequired for folders

Execute read-only SQL queries.

Terminal window
eidos sql "SELECT * FROM eidos__tree WHERE type = 'doc'"

List all tables.

Terminal window
eidos table ls [options]

Options:

OptionDescription
-l, --longShow table IDs

Show table schema.

Terminal window
eidos table schema <table-id>

Output columns:

ColumnDescription
NameField display name
ColumnNameDatabase column name (for SQL)
TypeField type
PropertyFormula expression (formula type only)

table import <table-id> (alias: add, append)

Section titled “table import <table-id> (alias: add, append)”

Import or append data records to a table from JSON.

Terminal window
eidos table import <table-id> [options]
# Shorthand for import
eidos table <table-id> < data.json

Options:

OptionDescription
-d, --data <str>Direct JSON array string
-i, --file <path>Input JSON file

Piping:

Terminal window
cat data.json | eidos table tb_xxxx
opencli bilibili fav -f json | eidos table tb_xxxx

Create a new table with automated schema inference or explicit definitions.

Terminal window
eidos table create <name> [options]

Options:

OptionDescription
-F, --fields <list>Explicit fields (e.g., name:text,age:number)
-T, --template <id>Copy schema from an existing table
-d, --data <str>Sample JSON to infer schema from (CLI, stdin)
-i, --file <path>Sample JSON file to infer schema from

Schema Inference + Import:

If data is provided via piping or --file during creation, the CLI will automatically infer the schema from the first record and import all data after the table is created.

Terminal window
# Create table "Favorites" and import items automatically
opencli bilibili fav -f json | eidos table create "Favorites"

List all mounts (default).

Terminal window
eidos mount
eidos mount -l

Mount a directory.

Terminal window
eidos mount <name> <path>

Path handling:

  • ~ expands to home directory
  • Relative paths resolve to absolute
  • Directory must exist

Access pattern: /@/<name>/filename

Unmount a directory.

Terminal window
eidos mount -u <name>

Deploy an extension.

Terminal window
eidos ext deploy <path> [options]

Options:

OptionDescription
--slug <slug>Update existing extension with this slug

File extensions:

  • .tsx — Block with JSX components
  • .ts — Pure TypeScript script

List extensions.

Terminal window
eidos ext ls

Delete an extension.

Terminal window
eidos ext rm <id>

List all spaces.

Terminal window
eidos space ls

Open space in Eidos Desktop.

Terminal window
eidos space open
eidos space open <id>

Check connection to Eidos Desktop.

Terminal window
eidos status

Generate shell completions.

Terminal window
eidos completions bash
eidos completions zsh
eidos completions fish