planai
v0.1.4
Published
PlanAI knowledge sync CLI
Readme
planai
planai is the CLI for logging into PlanAI and syncing local files into the remote knowledge area.
Install
npm install -g planaiQuick Start
planai login
planai sync --dir ./docs --folder "Market Research"Commands
planai login
Opens the browser, completes the PlanAI sign-in flow, and stores the sync token locally.
planai sync
Syncs local files from --dir into the remote knowledge folder selected by --folder.
Examples:
planai sync --dir ./docs
planai sync --dir ./docs --folder "Market Research"
planai sync --dir ./reports --folder "Financials"If --folder is omitted, files sync to the top level of the knowledge area.
Config
The CLI reads defaults from ~/.planai/config.json.
You can set a default endpoint and owner email if needed:
planai config set --endpoint https://your-planai-domain.com --ownerEmail [email protected]Environment
Set PLANAI_SYNC_TOKEN on the server to allow token-based sync calls.
Set PLANAI_ENDPOINT locally if you want to override the default server URL.
Repository
Source: https://github.com/mirantdesai23/planai-cli
