thinkncollab-shell Documentation
The official interactive shell CLI for ThinkNCollab. Manage rooms, push files, track notifications, and collaborate — all from your terminal.
Installation
Install thinkncollab-shell globally via npm. Requires Node.js 16.0 or higher.
npm install -g thinkncollab-shell
thinknsh --version # thinkncollab-shell v0.0.5
npm update -g thinkncollab-shell
thinknsh
Authentication
Authenticate once and your credentials are stored securely in a .tncrc file in your home directory.
login
# Prompts for email + password
# Stores encrypted token in ~/.tncrc
whoami
# → logged in as: [email protected]
logout
.tncrc file or commit it to version control. Regenerate your token via thinkncollab-shell token:refresh if compromised.Quick Start
Up and running in under a minute.
# 1. Install npm install -g thinkncollab-shell # 2. Authenticate login # 3. List your rooms rooms # 4. Join a room rooms join <room-id> # 5. Push a file to the room push ./myfile.js --room <room-id> # 6. Check notifications notifications
Rooms
List, join, create, and manage collaboration rooms directly from the terminal.
rooms
List all rooms you're a member of
rooms join
Join an existing room by ID
rooms create
Create a new collaboration room
rooms info
View details of a specific room
| Command | Description |
|---|---|
| rooms | List all rooms you belong to |
| rooms join <id> | Join a room by its ID |
| rooms create <name> | Create a new room |
| rooms info <id> | View room details and members |
| rooms leave <id> | Leave a room |
| rooms members <id> | List members in a room |
rooms # → room-01 backend-team (12 members) # → room-02 frontend-sprint (7 members) rooms join room-01 # ✓ joined backend-team rooms create "design-review" # ✓ created room: design-review (id: room-09)
Files & Push
Push files to rooms, view version history, and pull updates — similar to Git but built into ThinkNCollab's collaboration layer.
| Command | Options | Description |
|---|---|---|
| push <file> | --room <id> | Push a file to a room |
| push <dir> | --room <id> --all | Push entire directory |
| pull <file> | --room <id> | Pull latest version from room |
| files | --room <id> | List files in a room |
| files history <file> | --room <id> | View version history of a file |
| files diff <file> | --v1 --v2 | Diff two versions of a file |
# Push a single file push ./src/index.js --room room-01 # ✓ pushed index.js → backend-team (v4) # Push all files in a directory push ./src --room room-01 --all # ✓ pushed 6 files → backend-team # View version history files history index.js --room room-01 # v1 2025-10-01 [email protected] # v2 2025-10-04 [email protected] # v3 2025-10-07 [email protected]
.tncrc token on every push. Ensure you're logged in before pushing files.Notifications
View, watch, and manage your ThinkNCollab notifications from the terminal. The notification window opens as a separate terminal panel.
| Command | Description |
|---|---|
| notifications | List all unread notifications |
| notifications --all | Show all notifications (read + unread) |
| notifications watch | Open live notification panel (manual) |
| notifications mark-read | Mark all notifications as read |
| notifications mark-read <id> | Mark a single notification as read |
| notifications clear | Clear all read notifications |
notifications # [unread] omkar pushed routes.js to backend-team # [unread] radhika commented on your file # [read] meeting scheduled: tomorrow 10am # Open live notification panel (you open manually) notifications watch # → Watching for new notifications... (Ctrl+C to exit)
notifications watch.Workspace
Switch between workspaces, view team members, and manage workspace settings.
| Command | Description |
|---|---|
| workspace | Show current active workspace |
| workspace list | List all workspaces you belong to |
| workspace switch <id> | Switch active workspace |
| workspace members | List all members in current workspace |
| workspace invite <email> | Invite a user to the workspace |
Tasks // coming soon
Task management commands are planned for an upcoming release of . They already exist in the thinkncollab-cli (tnc-cli) package if you need them now.
tasks, task add, task done. Available today via tnc-cli.| Command | Status | Description |
|---|---|---|
| tasks | coming soon | List all tasks in current workspace |
| task add <title> | coming soon | Create a new task |
| task done <id> | coming soon | Mark a task as complete |
| task assign <id> | coming soon | Assign a task to a team member |
Config
View and manage your local configuration stored in ~/.tncrc.
| Command | Description |
|---|---|
| config | Show current config |
| config set <key> <value> | Set a config value |
| config reset | Reset all config to defaults |
| token:refresh | Refresh your auth token |
| token:revoke | Revoke and delete your token |
Advanced Usage
Power-user patterns, scripting, and CI integration.
# Use env variables for CI pipelines TNC_EMAIL[email protected] TNC_TOKEN=your_token login --ci push ./dist --room room-01 --all
// package.json { "scripts": { "push:dev": " push ./src --room room-01 --all", "push:prod": " push ./dist --room room-02 --all", "notifs": " notifications watch" } }
--debug rooms system:info
Troubleshooting
cache:clear
token:refresh
# or logout and back in
logout && login
system:info diagnose
FAQ
~/.tncrc. Never commit this file to version control — it contains your encrypted auth token.TNC_EMAIL and TNC_TOKEN, then run login --ci for non-interactive authentication.thinkncollab-shell notifications watch. This is by design so it doesn't interfere with your shell session.~/.thinkncollab/logs/. View them with thinkncollab-shell logs or open the file directly.Get Help
Multiple ways to reach us or find answers.
support:contact
# Or email: [email protected]