Releases: nerveband/craft-cli
Releases · nerveband/craft-cli
v1.8.0
v1.7.1
Changelog
- ae04645 feat: add collection API client methods with tests
- 8931e5c feat: add collections, connection, upload, and comments commands
- daaaa84 feat: add compact output format for legacy views
- 72d49f4 feat: add connection, upload, comments, block search, advanced search/list API methods
- 228ca09 feat: add models for collections, connection, upload, comments, block search
- e27cad8 feat: default json outputs full api payloads
- 4a9eb16 feat: enhance search, blocks, and list with advanced filters, block search, daily notes
- 4a29ca2 fix: align create json output with api
- a380aec fix: honor compact format in json paths
- f199444 v1.7.0: Full API parity - collections, upload, block search, advanced filters
v1.7.0: Full API Parity
What's New
Full parity with the Craft Space API. Every documented endpoint is now accessible from the CLI.
New Commands
craft collections— List, view schema, and manage collection items (add/update/delete)craft connection— Show space metadata (timezone, deep link templates)craft upload— Upload files and images to documents or daily notescraft comments add— Add comments to blocks (experimental API)
Enhanced Commands
craft search— Block-level search within documents (--document), regex (--regex), date filters, location/folder filters, context blockscraft blocks get— Daily note access (--date today), depth control (--depth), metadata (--metadata)craft blocks add— Add blocks to daily notes by date (--date)craft list— Date range filters (--created-after,--modified-before, etc.), metadata fetching
API Coverage
- 9 new API endpoint integrations
- 4 new command files, 3 enhanced commands
- ~2,700 lines of new code with full test coverage
Install
# macOS (Apple Silicon)
curl -L https://github.com/nerveband/craft-cli/releases/download/v1.7.0/craft-darwin-arm64 -o /usr/local/bin/craft && chmod +x /usr/local/bin/craft
# macOS (Intel)
curl -L https://github.com/nerveband/craft-cli/releases/download/v1.7.0/craft-darwin-amd64 -o /usr/local/bin/craft && chmod +x /usr/local/bin/craft
# Or build from source
go install github.com/ashrafali/craft-cli@v1.7.0v1.6.0: MCP Server Feature Parity
What's New
This release achieves full feature parity with the Craft MCP server, adding rich block styling support and new management commands.
New Output Formats
| Format | Description |
|---|---|
--format structured |
Full JSON block tree with all metadata (ideal for LLMs/AI) |
--format craft |
MCP-style markdown with XML tags |
--format rich |
Terminal output with ANSI colors and Unicode |
New Commands
Folder Management:
craft folders list- List all folderscraft folders create- Create a foldercraft folders move- Move folder to new parentcraft folders delete- Delete a folder
Block Operations:
craft blocks get- Get a specific block with full metadatacraft blocks add- Add block with position control (start/end/before/after)craft blocks update- Update block contentcraft blocks delete- Delete a blockcraft blocks move- Move block to new location
Task Management:
craft tasks list- List tasks with scope and document filterscraft tasks add- Create task with scheduling and deadlinescraft tasks update- Update task state or datescraft tasks delete- Delete a task
Document Operations:
craft move- Move document to folder or location (unsorted/trash)
Enhanced Commands
craft list --folder ID- Filter documents by foldercraft list --location unsorted|trash|templates|daily_notes- Filter by locationcraft get --format structured|craft|rich- New output formats
Block Styling Support
The CLI now captures all block styling properties:
cardLayout: small, regular, largefont: system, serif, mono, roundeddecorations: callout, quote (combinable)color: Hex colors (#RRGGBB)listStyle: bullet, numbered, task, toggletaskInfo: state, scheduleDate, deadlineDateindentationLevel: 0-5lineStyle: strong, regular, light, extraLight- Table cells with text attributes
Installation
# macOS/Linux
brew install nerveband/tap/craft-cli
# Or download from releasesv1.5.0
v1.4.0
v1.1.0: Fix API endpoints and implement update/delete
What's Changed
Bug Fixes
- Fixed
craft getcommand - now uses correct/blocks?id=endpoint instead of/documents/{id} - Fixed
craft searchcommand - now usesincludeparameter instead ofquery - Fixed
craft createcommand - properly wraps request in{"documents":[...]}format
New Features
craft updatenow works! - Adds content to existing documents via the blocks APIcraft deletenow works! - Removes content blocks from documents
Technical Changes
- Added
BlockandBlocksResponsemodels for blocks API - Added
SearchItemmodel for search results - Updated all tests for new API behavior
Notes
- Title updates via CLI are not supported by Craft Connect API (use Craft app)
- Document deletion removes content blocks only (root page blocks cannot be deleted via API)
Installation
Download the binary for your platform and add it to your PATH:
- macOS (Apple Silicon):
craft-darwin-arm64 - macOS (Intel):
craft-darwin-amd64 - Linux (x64):
craft-linux-amd64 - Linux (ARM64):
craft-linux-arm64 - Windows:
craft-windows-amd64.exe
v1.0.0
Changelog
- 1f08300 Add API link patterns to gitignore
- aa993cd Add project summary
- 6118595 Add test results and installation guide
- 080aee5 Fix redundant newline in fmt.Println
- 2499b9f Initial commit: Production-ready Craft CLI v1.0.0
- 4e58964 Remove private API links from test results
- 29b9af2 Update go.mod dependencies
- 2219ec0 Update go.mod/go.sum dependencies
- 1f397aa v1.0.0: Initial public release
- da78d1b v2.0.0: Major feature release