CLI for KanbanTeam: sign in, boards, tasks, and Trello CSV import
npm install kanbanteamCLI for KanbanTeam: sign in, create boards, add tasks, and import from Trello CSV. Works with the same Supabase project as kanbanteam-next.
``bash`
npm install -g kanbanteam
Or with Yarn:
`bash`
yarn global add kanbanteam
1. Config: Create a .env file (or set env vars) with SUPABASE_URL and SUPABASE_ANON_KEY (same values as your KanbanTeam Next app or from the Supabase dashboard). When installed globally, you can cd to any directory and create .env there, or use a project that has these set.kanbanteam sign-in -e you@example.com -p yourpassword
2. Sign in: .kanbanteam board add -t "My Board"
3. Create a board: .kanbanteam task add -b my-board -c todo "First task"
4. Add a task: .
| Command | Description |
|--------|-------------|
| kanbanteam sign-up -e | Create an account |kanbanteam sign-in -e
| | Sign in (session stored in ~/.config/kanbanteam/) |kanbanteam sign-out
| | Sign out and clear session |kanbanteam board add -t
| | Create a board |kanbanteam board list
| | List your boards (slug and title) |kanbanteam task add -b
| | Add a task (column: ideas, todo, doing, done) |kanbanteam task list -b
| | List all tasks for a board (all columns or filter by column) |kanbanteam task import -b
| | Import tasks from CSV (Trello or generic) |
1. Export your Trello board to CSV (Trello: Board menu → Print, Export, and Share → CSV, or use a tool like Trello Export).
2. Create a board in KanbanTeam (or use an existing one): kanbanteam board add -t "Imported Board".kanbanteam task import -b imported-board -f path/to/trello-export.csv --format trello
3. Import: .
Trello CSV columns Card Name, List Name, and Description are mapped to our task title, column (todo/done/ideas/doing), and description. List names like "To Do", "Done", "Ideas", "Doing", "In Progress" are mapped to the matching KanbanTeam columns; others default to Ideas.
Generic CSV: Use --format generic for a CSV with headers title, description, and column (values: ideas, todo, doing, done).
- Node 18+
- Same Supabase project as your KanbanTeam Next app (use the same .env values for SUPABASE_URL and anon key).
After sign-in, the session is stored in ~/.config/kanbanteam/session.json. Override with KANBANTEAM_CONFIG_DIR if needed. Do not commit or share this file.
To publish to npm:
1. Create an npm account at npmjs.com if needed.
2. Log in: npm loginnpm publish
3. From this repo: package.json` version as needed.
4. Update