Use the Eidos CLI
The Eidos CLI (eidos) is a command-line interface that allows you to interact with your Eidos Desktop application directly from the terminal. This guide walks you through common workflows and use cases.
Installation
Section titled “Installation”The CLI is bundled with Eidos Desktop. To install it:
- Open Eidos Desktop
- Press
Cmd/Ctrl + Kto open the Command Palette - Type “install eidos” and select “Install ‘eidos’ command in PATH”
Verify the installation:
eidos statusSpace Selection
Section titled “Space Selection”The CLI automatically detects which space to use based on your current directory. If you’re inside a space directory, it will use that space automatically.
You can also explicitly specify a space:
# Use a specific space for a single commandeidos -s my-space ls
# Or navigate to a space directory for auto-detectioncd /path/to/my-spaceeidos lsCommon Workflows
Section titled “Common Workflows”Daily Notes
Section titled “Daily Notes”Create and maintain daily notes efficiently:
# Create today's note with a templateeidos touch "daily/$(date +%Y-%m-%d)" --content "# $(date +%A, %B %d)\n\n## Morning\n\n## Afternoon\n\n## Evening"
# Append to today's note throughout the dayeidos append "daily/$(date +%Y-%m-%d)" --content "- [ ] Review pull requests"echo "Met with the team, discussed roadmap" | eidos append "daily/$(date +%Y-%m-%d)"Project Setup
Section titled “Project Setup”Quickly scaffold a new project structure:
# Create project folderseidos mkdir projects/websiteeidos mkdir projects/website/docseidos mkdir projects/website/assets
# Create project documentseidos touch projects/website/readme --content "# Website Project"eidos touch projects/website/todo --content "## TODO\n- [ ] Design homepage\n- [ ] Setup CI/CD"
# View the structureeidos ls projects/website -lDocument Management
Section titled “Document Management”Organize and manage your documents:
# Create a drafteidos touch drafts/article --content "# Draft Article"
# Move to published when readyeidos mkdir publishedeidos mv drafts/article published/article
# View published contenteidos cat published/articleMount External Resources
Section titled “Mount External Resources”Access external directories without copying files:
# Mount your Documents foldereidos mount docs ~/Documents
# Now reference files in Eidos as /@/docs/filename.pdf# List all mountseidos mount
# Remove mount when no longer neededeidos mount -u docsTable Data Export
Section titled “Table Data Export”Export data for analysis or backup:
# Export table data as JSONeidos -f json sql "SELECT * FROM tb_xxx" > backup.json
# View table schema before queryingeidos table schema tb_xxxExtension Development
Section titled “Extension Development”Deploy extensions from your development environment:
# Deploy a block extensioneidos ext deploy ./my-block.tsx
# Update an existing extensioneidos ext deploy ./my-block.tsx --slug my-block
# List installed extensionseidos ext lsOutput Formats
Section titled “Output Formats”Most commands support JSON output for scripting:
# JSON output for parsingeidos -f json table lseidos -f json sql "SELECT * FROM eidos__tree LIMIT 5"Shell Completion
Section titled “Shell Completion”Add tab completion to your shell:
# Basheidos completions bash > /usr/local/share/bash-completion/completions/eidos
# Zsheidos completions zsh > /usr/share/zsh/site-functions/_eidos
# Fisheidos completions fish > ~/.config/fish/completions/eidos.fishEnvironment Variables
Section titled “Environment Variables”| Variable | Description |
|---|---|
EIDOS_ENDPOINT | Eidos Desktop endpoint (default: http://localhost:13127) |
EIDOS_SPACE | Default space ID |
EIDOS_API_KEY | API key for authentication (if enabled) |
Troubleshooting
Section titled “Troubleshooting””No space selected” Error
Section titled “”No space selected” Error”The CLI needs to know which space to use. Either:
- Navigate to a space directory (auto-detection)
- Navigate to a space directory (auto-detection)
- Specify per command:
eidos -s <space-id> <command>
”Eidos Desktop is not running”
Section titled “”Eidos Desktop is not running””The CLI requires Eidos Desktop to be running. Start the application first, then verify with eidos status.
Permission Denied
Section titled “Permission Denied”Ensure the CLI was properly installed to your PATH. You may need to restart your terminal after installation.
Next Steps
Section titled “Next Steps”- CLI Concepts - Understand CLI design and features
- CLI API Reference - Complete command reference
- Node API Reference - Understanding node structures