{"_id":"60db-cli","_rev":"4-9c6d8a7926481a65122df42abc3e01db","name":"60db-cli","dist-tags":{"latest":"1.2.2"},"versions":{"1.0.1":{"name":"60db-cli","version":"1.0.1","keywords":["cli","60db","60db.ai","api","agent","ai","billing","credits","workspaces","management","completions","chat","llm","meeting-notes"],"author":{"name":"60db.ai"},"license":"MIT","_id":"60db-cli@1.0.1","maintainers":[{"name":"60db-owns","email":"devendra.vishwkarma@engineermaster.in"}],"homepage":"https://github.com/60db-ai/60db-cli#readme","bugs":{"url":"https://github.com/60db-ai/60db-cli/issues"},"os":["darwin","linux","win32"],"bin":{"60db":"index.js"},"dist":{"shasum":"dc2cbc184d6e35e597ba0dc1cc6b131239508128","tarball":"https://registry.npmjs.org/60db-cli/-/60db-cli-1.0.1.tgz","fileCount":9,"integrity":"sha512-WmeybHrxQ6AyeA7icbncuBydHX72RFAFGGaf29ZiMrPQVBnKQPzMEta24K2aYIFfL1ujqXB0jjRwaAVcjp4fPA==","signatures":[{"sig":"MEUCIGHQxMkLk50/h3ubF54p0Gl4vJ6BFpPhEGK8RX2spqu3AiEAvQrhK38BEFuGzWWdxGOPZfWEjOBCYcZQp/8X3U8xc4o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":58026},"main":"index.js","engines":{"node":">=16.0.0"},"gitHead":"1f4bba2cabce928aeec1f65674c5236cea473b47","scripts":{"test":"node test/test.js","start":"node index.js","prepublishOnly":"npm test"},"_npmUser":{"name":"60db-owns","email":"devendra.vishwkarma@engineermaster.in"},"repository":{"url":"git+https://github.com/60db-ai/60db-cli.git","type":"git"},"_npmVersion":"10.5.0","description":"60db.ai CLI - Agent-native interface for AI completions, user management, credits, billing, and workspaces","directories":{},"_nodeVersion":"18.20.2","dependencies":{"axios":"^1.6.2","chalk":"^4.1.2","dotenv":"^16.3.1","commander":"^11.1.0","cli-table3":"^0.6.3"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/60db-cli_1.0.1_1774519242253_0.6904567110812967","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"60db-cli","version":"1.2.0","keywords":["cli","60db","60db.ai","api","agent","ai","billing","credits","workspaces","management","completions","chat","llm","meeting-notes","tts","stt","text-to-speech","speech-to-text","voice","authentication","login","categories"],"author":{"name":"60db.ai"},"license":"MIT","_id":"60db-cli@1.2.0","maintainers":[{"name":"60db-owns","email":"devendra.vishwkarma@engineermaster.in"}],"homepage":"https://github.com/60db-ai/60db-cli#readme","bugs":{"url":"https://github.com/60db-ai/60db-cli/issues"},"os":["darwin","linux","win32"],"bin":{"60db":"index.js"},"dist":{"shasum":"c7cd3678d6e35384be7e5b91f7292944ad6cb031","tarball":"https://registry.npmjs.org/60db-cli/-/60db-cli-1.2.0.tgz","fileCount":13,"integrity":"sha512-+gcVo+KqVfL83ugoP/HR3GEid0J/LwO41gcexV8ZUjLOJ8FC3rAYCIFMAbH/0w2QWOH6KgqLuaRwcpfi4WEXfg==","signatures":[{"sig":"MEQCIEzynUquBDG7dh1Dh6fLZfgBiSUXoeUAGsm3df5IsnJRAiBaDbDIWGc2vU4cFAO/r0znQrN9dG0kjKQFshKHIk2T9w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":79486},"main":"index.js","engines":{"node":">=16.0.0"},"gitHead":"1f4bba2cabce928aeec1f65674c5236cea473b47","scripts":{"test":"node test/test.js","start":"node index.js","prepublishOnly":"npm test"},"_npmUser":{"name":"60db-owns","email":"devendra.vishwkarma@engineermaster.in"},"repository":{"url":"git+https://github.com/60db-ai/60db-cli.git","type":"git"},"_npmVersion":"10.5.0","description":"60db.ai CLI - Complete CLI with auth, AI completions, TTS, STT, categories, user management, credits, billing, and workspaces","directories":{},"_nodeVersion":"18.20.2","dependencies":{"axios":"^1.6.2","chalk":"^4.1.2","dotenv":"^16.3.1","commander":"^11.1.0","form-data":"^4.0.0","cli-table3":"^0.6.3"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/60db-cli_1.2.0_1774521984778_0.4396622557244969","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"60db-cli","version":"1.2.1","keywords":["cli","60db","60db.ai","api","agent","ai","billing","credits","workspaces","management","completions","chat","llm","meeting-notes","tts","stt","text-to-speech","speech-to-text","voice","authentication","login","categories"],"author":{"name":"60db.ai"},"license":"MIT","_id":"60db-cli@1.2.1","maintainers":[{"name":"60db-owns","email":"devendra.vishwkarma@engineermaster.in"}],"homepage":"https://github.com/60db-ai/60db-cli#readme","bugs":{"url":"https://github.com/60db-ai/60db-cli/issues"},"os":["darwin","linux","win32"],"bin":{"60db":"index.js"},"dist":{"shasum":"82709c13a0ad3f98842978aac2364fb9db43e6fb","tarball":"https://registry.npmjs.org/60db-cli/-/60db-cli-1.2.1.tgz","fileCount":13,"integrity":"sha512-bGs3E/sJOGCV7pnM9CLuztSWwMnzn9tZee91JJJJonEW8KFacRMuUgE15PasAe/VdVf99eBDFV/ilbkAdNdGYg==","signatures":[{"sig":"MEUCIGf7iOdl9EeeGnyd/ndlH1fxVkXgzj1r9EH8rHTzAPNTAiEAhcjKnyJzV6LXd+aTWDEUtmwO1G5wK7zDvi7hboWxrks=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":82248},"main":"index.js","engines":{"node":">=16.0.0"},"gitHead":"1f4bba2cabce928aeec1f65674c5236cea473b47","scripts":{"test":"node test/test.js","start":"node index.js","prepublishOnly":"npm test"},"_npmUser":{"name":"60db-owns","email":"devendra.vishwkarma@engineermaster.in"},"repository":{"url":"git+https://github.com/60db-ai/60db-cli.git","type":"git"},"_npmVersion":"10.5.0","description":"60db.ai CLI - Complete CLI with auth, AI completions, TTS, STT, categories, user management, credits, billing, and workspaces","directories":{},"_nodeVersion":"18.20.2","dependencies":{"axios":"^1.6.2","chalk":"^4.1.2","dotenv":"^16.3.1","commander":"^11.1.0","form-data":"^4.0.0","cli-table3":"^0.6.3"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/60db-cli_1.2.1_1774522705671_0.9434899232840008","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"60db-cli","version":"1.2.2","description":"60db.ai CLI - Complete CLI with auth, AI completions, TTS, STT, categories, user management, credits, billing, and workspaces","main":"index.js","bin":{"60db":"index.js"},"scripts":{"start":"node index.js","test":"node test/test.js","prepublishOnly":"npm test"},"keywords":["cli","60db","60db.ai","api","agent","ai","billing","credits","workspaces","management","completions","chat","llm","meeting-notes","tts","stt","text-to-speech","speech-to-text","voice","authentication","login","categories"],"author":{"name":"60db.ai"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/60db-ai/60db-cli.git"},"homepage":"https://github.com/60db-ai/60db-cli#readme","bugs":{"url":"https://github.com/60db-ai/60db-cli/issues"},"dependencies":{"commander":"^11.1.0","chalk":"^4.1.2","cli-table3":"^0.6.3","axios":"^1.6.2","dotenv":"^16.3.1","form-data":"^4.0.0"},"engines":{"node":">=16.0.0"},"os":["darwin","linux","win32"],"_id":"60db-cli@1.2.2","gitHead":"1f4bba2cabce928aeec1f65674c5236cea473b47","_nodeVersion":"18.20.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-QWqDQdY/rya+98XZqaVwYK+XLAgMZDybTvST3W+AguNh//makTW7nuJggKdXoFKY/vv15btICel/q7IgvWsCXg==","shasum":"7a07a9121dd493a077d12d09d55e3bedfcc87da5","tarball":"https://registry.npmjs.org/60db-cli/-/60db-cli-1.2.2.tgz","fileCount":13,"unpackedSize":82390,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDssWDqZjTsXLQyopNGvX2NV6K1tusw+ox8Gajv4N+WygIhAP8KLn2PIgP5ItZiIkwCYxkYx36xwF9TZ1i/+aWP13tn"}]},"_npmUser":{"name":"60db-owns","email":"devendra.vishwkarma@engineermaster.in"},"directories":{},"maintainers":[{"name":"60db-owns","email":"devendra.vishwkarma@engineermaster.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/60db-cli_1.2.2_1774531608470_0.36974006024987793"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-26T10:00:42.155Z","modified":"2026-03-26T13:26:48.710Z","1.0.1":"2026-03-26T10:00:42.429Z","1.2.0":"2026-03-26T10:46:24.916Z","1.2.1":"2026-03-26T10:58:25.814Z","1.2.2":"2026-03-26T13:26:48.601Z"},"bugs":{"url":"https://github.com/60db-ai/60db-cli/issues"},"author":{"name":"60db.ai"},"license":"MIT","homepage":"https://github.com/60db-ai/60db-cli#readme","keywords":["cli","60db","60db.ai","api","agent","ai","billing","credits","workspaces","management","completions","chat","llm","meeting-notes","tts","stt","text-to-speech","speech-to-text","voice","authentication","login","categories"],"repository":{"type":"git","url":"git+https://github.com/60db-ai/60db-cli.git"},"description":"60db.ai CLI - Complete CLI with auth, AI completions, TTS, STT, categories, user management, credits, billing, and workspaces","maintainers":[{"name":"60db-owns","email":"devendra.vishwkarma@engineermaster.in"}],"readme":"# 60db CLI\n\nAgent-native command-line interface for 60db.ai API - AI completions, TTS, STT, user management, credits, billing, and workspaces with structured JSON output.\n\n## Features\n\n- **Dual Mode**: Interactive REPL + subcommand interface\n- **Agent-Native**: Structured JSON output with `--json` flag\n- **AI Completions**: Chat, meeting notes analysis, and text completion\n- **TTS (Text-to-Speech)**: Generate speech from text with multiple voices\n- **STT (Speech-to-Text)**: Transcribe audio files with multiple languages\n- **Authentication**: Secure login and token management\n- **Complete Coverage**: Users, Credits, Billing, Workspaces, Categories\n- **Configuration**: Persistent config with `60db config`\n\n## Installation\n\n### Global Installation\n\n```bash\nnpm install -g 60db-cli\n```\n\n### Local Installation\n\n```bash\nnpm install 60db-cli\n```\n\n## Quick Start\n\n### Interactive Mode (REPL)\n\n```bash\n60db\n60db --version\n```\n\nEnter the interactive shell with tab completion and persistent session:\n\n```\n60db> users\n60db> credits:add --user-id 123 --amount 50\n60db> config --list\n60db> exit\n```\n\n### Command Mode\n\n```bash\n# List all users\n60db users --list\n\n# Add credits to user\n60db credits:add --user-id 123 --amount 50 --currency USD\n\n# Get JSON output for agent consumption\n60db --json users --list\n```\n\n## Commands\n\n### Authentication\n\n```bash\n# Login with email and password (recommended)\n60db auth:login --email your@email.com --password yourpassword\n\n# Show current session info\n60db auth:session\n\n# Get current authentication token\n60db auth:token\n\n# Logout and clear token\n60db auth:logout\n```\n\n### Configuration\n\n```bash\n# Show current configuration\n60db config\n\n# Set API URL\n60db config --set apiBaseUrl=https://api.60db.ai\n\n# Set API key\n60db config --set apiKey=your_api_key_here\n\n# List all config\n60db config --list\n\n# Clear config\n60db config --clear\n```\n\n### Users\n\n```bash\n# List all users\n60db users --list --page 1 --limit 10\n\n# Get user details\n60db users --get 123\n\n# Search users\n60db users --search \"john@example.com\"\n\n# Create new user\n60db user:create --email user@example.com --name \"John Doe\" --password secret123\n\n# Update user\n60db user:update --id 123 --name \"Jane Doe\" --active true\n\n# Delete user\n60db user:delete --id 123\n```\n\n### Credits\n\n```bash\n# Add bonus credits\n60db credits:add --user-id 123 --tts 1000 --stt 60 --voice 10\n\n# Add wallet amount\n60db credits:add --user-id 123 --amount 50.00 --currency USD --description \"Refund\"\n\n# Add both bonus credits and amount\n60db credits:add --user-id 123 --tts 1000 --amount 25.00\n\n# Get user balance\n60db credits:balance --user-id 123\n\n# Get transaction history\n60db credits:history --user-id 123 --limit 20\n```\n\n### Billing\n\n```bash\n# List invoices\n60db billing:invoices --limit 20\n\n# Filter by user\n60db billing:invoices --user-id 123\n\n# Filter by status\n60db billing:invoices --status paid\n\n# List payment transactions\n60db billing:transactions --limit 20\n\n# Filter by type\n60db billing:transactions --type one_time\n```\n\n### Workspaces\n\n```bash\n# List all workspaces\n60db workspaces --list\n\n# Get workspace details\n60db workspaces --get 456\n\n# Filter by user\n60db workspaces --list --user-id 123\n\n# Create workspace\n60db workspace:create --name \"My Workspace\" --owner-id 123 --description \"Project workspace\"\n```\n\n### AI Completions\n\n```bash\n# AI Chat Completions\n60db ai:chat --prompt \"Hello, how are you?\"\n\n# With custom system prompt\n60db ai:chat --prompt \"Summarize this text\" --system \"You are a helpful assistant.\"\n\n# With specific model\n60db ai:chat --prompt \"Generate code\" --model \"qcall/slm-3b-int4\" --temperature 0.7\n\n# AI Meeting Notes Analysis\n60db ai:meeting --transcript \"Meeting transcript here...\" --title \"Weekly Standup\"\n\n# AI Text Completion\n60db ai:complete --prompt \"Once upon a time\" --max-tokens 100\n\n# With JSON output for agents\n60db --json ai:chat --prompt \"Analyze this data\"\n```\n\n**AI Chat Options:**\n- `-p, --prompt <text>` - User prompt/message\n- `-m, --model <name>` - Model name (default: qcall/slm-3b-int4)\n- `-s, --system <text>` - System prompt\n- `--messages <json>` - Messages as JSON array\n- `--max-tokens <number>` - Max tokens (default: 2048)\n- `--temperature <number>` - Temperature (default: 0.1)\n- `--top-k <number>` - Top K (default: 5)\n- `--top-p <number>` - Top P (default: 0.9)\n- `--stream <boolean>` - Enable streaming (default: false)\n- `--enable-thinking <boolean>` - Enable thinking (default: false)\n\n**AI Meeting Notes Options:**\n- `-p, --prompt <text>` or `-t, --transcript <text>` - Meeting transcript\n- `--title <text>` - Meeting title\n- `-m, --model <name>` - Model name\n- `-s, --system <text>` - Custom system prompt\n- All other AI options supported\n\n### TTS (Text-to-Speech)\n\n```bash\n# Synthesize speech from text\n60db tts:synthesize --text \"Hello this is devendra\" --voice-id \"voice_id_here\"\n\n# Specify output file\n60db tts:synthesize --text \"Hello world\" --voice-id \"abc123\" --output speech.mp3\n\n# Adjust speech parameters\n60db tts:synthesize --text \"Hello\" --voice-id \"abc123\" --speed 1.2 --pitch 0.5 --stability 0.8\n\n# List available voices\n60db tts:voices\n```\n\n**TTS Options:**\n- `-t, --text <text>` - Text to synthesize (required)\n- `-v, --voice-id <id>` - Voice ID to use (required)\n- `-o, --output <file>` - Output audio file path (default: tts_<timestamp>.mp3)\n- `--speed <number>` - Speech speed (default: 1)\n- `--pitch <number>` - Speech pitch (default: 0)\n- `--stability <number>` - Speech stability (default: 1)\n- `--boost-volume <boolean>` - Boost volume (default: false)\n\n### STT (Speech-to-Text)\n\n```bash\n# Transcribe audio file\n60db stt:transcribe --file audio.wav\n\n# Specify language\n60db stt:transcribe --file audio.wav --language hi\n\n# Include segments in output\n60db stt:transcribe --file recording.wav --include-segments true --confidence-threshold 0.5\n\n# List available languages\n60db stt:languages\n```\n\n**STT Options:**\n- `-f, --file <path>` - Audio file path (required)\n- `-l, --language <code>` - Language code (default: en)\n- `--include-segments <boolean>` - Include segments (default: false)\n- `--confidence-threshold <number>` - Confidence threshold (default: 0.3)\n\n### Categories\n\n```bash\n# List available categories\n60db categories\n```\n\n## JSON Output (for AI Agents)\n\nAll commands support `--json` flag for structured output:\n\n```bash\n60db --json users --list\n```\n\nResponse:\n```json\n{\n  \"success\": true,\n  \"users\": [\n    {\n      \"id\": 123,\n      \"email\": \"user@example.com\",\n      \"full_name\": \"John Doe\",\n      \"system_role\": \"user\",\n      \"is_active\": true,\n      \"is_verify_email\": true,\n      \"created_at\": \"2024-01-15T10:30:00Z\"\n    }\n  ],\n  \"pagination\": {\n    \"total_users\": 1,\n    \"total_pages\": 1,\n    \"current_page\": 1,\n    \"limit\": 10\n  }\n}\n```\n\n## Environment Variables\n\n```bash\n# Set API URL\nexport X60DB_API_URL=https://api.60db.ai\n\n# Set API Key\nexport X60DB_API_KEY=your_api_key_here\n```\n\n## Examples\n\n### Authentication & Setup\n\n```bash\n# Login to get token\n60db auth:login --email your@email.com --password yourpassword\n\n# Check session\n60db auth:session\n\n# Or manually set API key\n60db config --set apiKey=your_token_here\n```\n\n### AI Chat Completion\n\n```bash\n# Simple chat\n60db ai:chat --prompt \"Explain quantum computing\"\n\n# With system prompt for specific behavior\n60db ai:chat --prompt \"Review this code\" --system \"You are an expert code reviewer. Be concise and actionable.\"\n\n# Higher temperature for creative responses\n60db ai:chat --prompt \"Write a poem about AI\" --temperature 0.9\n```\n\n### TTS - Generate Speech\n\n```bash\n# Generate speech from text\n60db tts:synthesize --text \"Hello, this is devendra\" --voice-id \"1a8c6331-c79b-47d3-9893-09160a245a3e\"\n\n# List available voices first\n60db tts:voices\n\n# Save to specific file\n60db tts:synthesize --text \"Welcome to our service\" --voice-id \"abc123\" --output welcome.mp3\n```\n\n### STT - Transcribe Audio\n\n```bash\n# Transcribe audio file\n60db stt:transcribe --file meeting.wav\n\n# Transcribe Hindi audio\n60db stt:transcribe --file recording.wav --language hi\n\n# List available languages\n60db stt:languages\n```\n\n### AI Meeting Notes Analysis\n\n```bash\n# Analyze meeting transcript\n60db ai:meeting --transcript \"John: We need to finish by Friday. Jane: I'll handle frontend.\" --title \"Sprint Planning\"\n\n# Get structured JSON output\n60db --json ai:meeting --transcript \"$TRANSCRIPT\" > meeting-notes.json\n```\n\n### Add credits to multiple users\n\n```bash\nfor user_id in 123 456 789; do\n  60db credits:add --user-id $user_id --amount 10 --description \"Monthly bonus\"\ndone\n```\n\n### Export user data to JSON\n\n```bash\n60db --json users --list > users.json\n```\n\n### Monitor transactions in real-time\n\n```bash\nwatch -n 5 '60db --json billing:transactions --limit 5'\n```\n\n## Error Handling\n\nAll commands return structured error responses:\n\n```json\n{\n  \"success\": false,\n  \"error\": \"User not found\"\n}\n```\n\n## Requirements\n\n- Node.js >= 16.0.0\n- npm or yarn\n\n## Support\n\nFor issues or questions, please visit:\n- GitHub: https://github.com/60db-ai/60db-cli\n- Issues: https://github.com/60db-ai/60db-cli/issues\n\n## License\n\nMIT\n","readmeFilename":"README.md"}