pavel 1ar.ionov

craft-cli 0.6.2: reliable multi-space reads

craft-cli now keeps local document listing and search inside the selected Craft profile, including spaces stored in Craft's composite local indexes.

1 min read

craft-cli 0.6.2 is out. Release on GitHub.

craft-cli can save several Craft spaces as named profiles. This patch fixes the local-first read path so docs ls and docs search open the local index for the selected profile:

craft profiles list
craft docs ls --profile work
craft docs search "project brief" --profile personal

Craft stores some secondary spaces in composite index filenames. The previous substring match could select another local space when their identifiers shared the same filename. craft-cli now prefers an exact index for the primary space and matches secondary spaces by the final namespace component.

Explicit API reads work again as well:

craft docs ls --profile work --source api
craft docs search "project brief" --profile work --source api

The fix is covered by isolated local-index fixtures and API-routing tests. Local Craft files remain read-only, and all writes continue through the Craft API.

Upgrade

cd ~/dev/tools/craft-cli
git pull
./install.sh
craft doctor --profile work --json