CLI Reference
Complete command reference for the eidos CLI.
Global Options
Section titled “Global Options”| Option | Description |
|---|---|
-s, --space <id> | Target space ID (optional if in space directory) |
-f, --format | Output format: table (default) or json |
-h, --help | Show help |
-V, --version | Show version |
Node Commands
Section titled “Node Commands”ls [path]
Section titled “ls [path]”List nodes at the specified path.
eidos ls [path] [options]Options:
| Option | Description |
|---|---|
-l, --long | Show detailed info (ID, type, created time) |
cat <path>
Section titled “cat <path>”View document content (markdown output).
eidos cat <path>Note: Only works with documents. Use sql for table data.
mkdir <path>
Section titled “mkdir <path>”Create a folder.
eidos mkdir <path>touch <path>
Section titled “touch <path>”Create a document.
eidos touch <path> [options]Options:
| Option | Description |
|---|---|
-c, --content <text> | Initial document content |
Piping:
cat file.md | eidos touch notes/docecho "text" | eidos touch notes/docmv <source> <destination>
Section titled “mv <source> <destination>”Move or rename a node.
eidos mv <source> <destination>append <path>
Section titled “append <path>”Append content to a document.
eidos append <path> [options]Options:
| Option | Description |
|---|---|
-c, --content <text> | Content to append |
Piping:
echo "text" | eidos append notes/docrm <path>
Section titled “rm <path>”Delete a node.
eidos rm <path> [options]Options:
| Option | Description |
|---|---|
-f, --force | Permanent delete (skip trash) |
-r, --recursive | Required for folders |
Query Commands
Section titled “Query Commands”sql <query>
Section titled “sql <query>”Execute read-only SQL queries.
eidos sql "SELECT * FROM eidos__tree WHERE type = 'doc'"Table Commands
Section titled “Table Commands”table ls
Section titled “table ls”List all tables.
eidos table ls [options]Options:
| Option | Description |
|---|---|
-l, --long | Show table IDs |
table schema <table-id>
Section titled “table schema <table-id>”Show table schema.
eidos table schema <table-id>Output columns:
| Column | Description |
|---|---|
Name | Field display name |
ColumnName | Database column name (for SQL) |
Type | Field type |
Property | Formula 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.
eidos table import <table-id> [options]# Shorthand for importeidos table <table-id> < data.jsonOptions:
| Option | Description |
|---|---|
-d, --data <str> | Direct JSON array string |
-i, --file <path> | Input JSON file |
Piping:
cat data.json | eidos table tb_xxxxopencli bilibili fav -f json | eidos table tb_xxxxtable create <name>
Section titled “table create <name>”Create a new table with automated schema inference or explicit definitions.
eidos table create <name> [options]Options:
| Option | Description |
|---|---|
-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.
# Create table "Favorites" and import items automaticallyopencli bilibili fav -f json | eidos table create "Favorites"Mount Commands
Section titled “Mount Commands”List all mounts (default).
eidos mounteidos mount -lmount <name> <path>
Section titled “mount <name> <path>”Mount a directory.
eidos mount <name> <path>Path handling:
~expands to home directory- Relative paths resolve to absolute
- Directory must exist
Access pattern: /@/<name>/filename
mount -u <name>
Section titled “mount -u <name>”Unmount a directory.
eidos mount -u <name>Extension Commands
Section titled “Extension Commands”ext deploy <path>
Section titled “ext deploy <path>”Deploy an extension.
eidos ext deploy <path> [options]Options:
| Option | Description |
|---|---|
--slug <slug> | Update existing extension with this slug |
File extensions:
.tsx— Block with JSX components.ts— Pure TypeScript script
ext ls
Section titled “ext ls”List extensions.
eidos ext lsext rm <id>
Section titled “ext rm <id>”Delete an extension.
eidos ext rm <id>Space Commands
Section titled “Space Commands”space ls
Section titled “space ls”List all spaces.
eidos space lsspace open [id]
Section titled “space open [id]”Open space in Eidos Desktop.
eidos space openeidos space open <id>Other Commands
Section titled “Other Commands”status
Section titled “status”Check connection to Eidos Desktop.
eidos statuscompletions <shell>
Section titled “completions <shell>”Generate shell completions.
eidos completions basheidos completions zsheidos completions fish