Draft CLI Dev
Use this skill when developing or testing Draft CLI from this repository rather than using the
installed global draft binary.
Contract
- Prefer the repo-local CLI under
products/notion-editor/cli. - Use development port
31414by default. - The only live-page runtime is headless v2.
Entry Point
skills/draft-cli-dev/scripts/run-local-draft.sh <draft-args...>
The wrapper:
- resolves the repository root
- targets
products/notion-editor/cli/bin/draft.js - builds the local CLI when
dist/index.jsis missing or stale - injects
--port 31414unless the command already specifies--portor-p
Common Commands
skills/draft-cli-dev/scripts/run-local-draft.sh status --json
skills/draft-cli-dev/scripts/run-local-draft.sh start-server
skills/draft-cli-dev/scripts/run-local-draft.sh page ls --json
skills/draft-cli-dev/scripts/run-local-draft.sh stop-server
If status reports DAEMON_OFFLINE, run start-server and then re-check status. A READY state is
enough for headless page commands.