{"_id":"@adityakul0314/wacli","_rev":"6-7f3f86633229240aa3d1079b3bfb22be","name":"@adityakul0314/wacli","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"@adityakul0314/wacli","version":"1.0.0","keywords":["whatsapp","cli","whatsapp-web","messaging","terminal","automation"],"author":"","license":"MIT","_id":"@adityakul0314/wacli@1.0.0","maintainers":[{"name":"adityakul0314","email":"adityakul0314@gmail.com"}],"homepage":"https://github.com/Ad1tya-007/whatsapp-cli#readme","bugs":{"url":"https://github.com/Ad1tya-007/whatsapp-cli/issues"},"bin":{"wacli":"dist/index.js"},"dist":{"shasum":"f0dc7e0575c5673814de0d3f7147942cdc88b1d3","tarball":"https://registry.npmjs.org/@adityakul0314/wacli/-/wacli-1.0.0.tgz","fileCount":15,"integrity":"sha512-DzMrZIf+Ie2AKcXk6MLXrbRQmq9Md0P/Z+ImNgu0emgNH14zOGe4QRY6560RrWgkQKVrGjc91QIq6UzyDS55ZA==","signatures":[{"sig":"MEUCIQClU8O7c8tOXEjRDQwe+YYKGLQQIJ7Hdne+YAZuMOCvvAIgaZBVmafJ3sDkoO79FDVMbunQqok45RrzGITz0IdEIAE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":31256},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=16.0.0"},"gitHead":"15ed1d0d29c40e800b2c547bbcb4519500ab0474","scripts":{"dev":"ts-node src/index.ts","build":"tsc","start":"ts-node src/index.ts","prepare":"npm run build","prepublishOnly":"npm run build"},"_npmUser":{"name":"adityakul0314","email":"adityakul0314@gmail.com"},"repository":{"url":"git+https://github.com/Ad1tya-007/whatsapp-cli.git","type":"git"},"_npmVersion":"11.4.2","description":"A CLI tool to send WhatsApp messages from the terminal","directories":{},"_nodeVersion":"24.4.1","dependencies":{"commander":"^11.1.0","qrcode-terminal":"^0.12.0","whatsapp-web.js":"^1.23.0"},"_hasShrinkwrap":false,"devDependencies":{"ts-node":"^10.9.2","typescript":"^5.3.3","@types/node":"^20.10.6","@types/qrcode-terminal":"^0.12.2"},"_npmOperationalInternal":{"tmp":"tmp/wacli_1.0.0_1771357997763_0.6933144091661494","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@adityakul0314/wacli","version":"1.0.1","keywords":["whatsapp","cli","whatsapp-web","messaging","terminal","automation"],"author":"","license":"MIT","_id":"@adityakul0314/wacli@1.0.1","maintainers":[{"name":"adityakul0314","email":"adityakul0314@gmail.com"}],"homepage":"https://github.com/Ad1tya-007/whatsapp-cli#readme","bugs":{"url":"https://github.com/Ad1tya-007/whatsapp-cli/issues"},"bin":{"wacli":"dist/index.js"},"dist":{"shasum":"16892e0905414db2bae03c614b18641c850b5eb6","tarball":"https://registry.npmjs.org/@adityakul0314/wacli/-/wacli-1.0.1.tgz","fileCount":15,"integrity":"sha512-9Lxtnvi+2qgw9D0KWAPTn1RnKHARVI1cnAuF0rtGkfeNeO/D5gJ3ObdGC7CBSZBoHrLrRToP2+5NdUOon1Q63g==","signatures":[{"sig":"MEUCIQDycccp0ilDwgw/jkThULUACezRx40mzRIVADF6LdRhZAIgKgEnWjOMd6A0YI59NIQqBzmS3mQgq4A0/vm/zeCn8N4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":31262},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=16.0.0"},"gitHead":"c5e5ac9c9be990568ddf626254ae05d9b3710974","scripts":{"dev":"ts-node src/index.ts","build":"tsc","start":"ts-node src/index.ts","prepare":"npm run build","prepublishOnly":"npm run build"},"_npmUser":{"name":"adityakul0314","email":"adityakul0314@gmail.com"},"repository":{"url":"git+https://github.com/Ad1tya-007/whatsapp-cli.git","type":"git"},"_npmVersion":"11.4.2","description":"A CLI tool to send WhatsApp messages from the terminal","directories":{},"_nodeVersion":"24.4.1","dependencies":{"commander":"^11.1.0","qrcode-terminal":"^0.12.0","whatsapp-web.js":"^1.23.0"},"_hasShrinkwrap":false,"devDependencies":{"ts-node":"^10.9.2","typescript":"^5.3.3","@types/node":"^20.10.6","@types/qrcode-terminal":"^0.12.2"},"_npmOperationalInternal":{"tmp":"tmp/wacli_1.0.1_1771358823365_0.9581352971163906","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@adityakul0314/wacli","version":"1.0.2","keywords":["whatsapp","cli","whatsapp-web","messaging","terminal","automation"],"author":"","license":"MIT","_id":"@adityakul0314/wacli@1.0.2","maintainers":[{"name":"adityakul0314","email":"adityakul0314@gmail.com"}],"homepage":"https://github.com/Ad1tya-007/whatsapp-cli#readme","bugs":{"url":"https://github.com/Ad1tya-007/whatsapp-cli/issues"},"bin":{"wacli":"dist/index.js"},"dist":{"shasum":"e6a722f09e050ec53b8e11656dcf6ab58c9fc2b2","tarball":"https://registry.npmjs.org/@adityakul0314/wacli/-/wacli-1.0.2.tgz","fileCount":15,"integrity":"sha512-Vg0syY5zqSgiABj47FWt6ruk1Z/uto+DOQEoVJAnOVsmGIVNP5D8QAz4cNkXC2QblB1/tPJdTcUcOyOWVj0kww==","signatures":[{"sig":"MEUCIQDFs2Edk6GGJCzx30VT20uVbi6PemJ9wGYeweCUtrqBdAIgXBKdcK9m4leolZU5KlKsMr0rrBUHhYOxA9FktV9PoLw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42338},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=16.0.0"},"gitHead":"9c7edfb081ad9933b490ae6558d01290eb16f21b","scripts":{"dev":"ts-node src/index.ts","build":"tsc","start":"ts-node src/index.ts","prepare":"npm run build","prepublishOnly":"npm run build"},"_npmUser":{"name":"adityakul0314","email":"adityakul0314@gmail.com"},"repository":{"url":"git+https://github.com/Ad1tya-007/whatsapp-cli.git","type":"git"},"_npmVersion":"11.11.0","description":"A CLI tool to send WhatsApp messages from the terminal","directories":{},"_nodeVersion":"25.8.0","dependencies":{"commander":"^11.1.0","qrcode-terminal":"^0.12.0","whatsapp-web.js":"github:lindionez/whatsapp-web.js#feat/fix-_serialized-id-fallback"},"_hasShrinkwrap":false,"devDependencies":{"ts-node":"^10.9.2","typescript":"^5.3.3","@types/node":"^20.10.6","@types/qrcode-terminal":"^0.12.2"},"_npmOperationalInternal":{"tmp":"tmp/wacli_1.0.2_1784669571552_0.2320982627783228","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@adityakul0314/wacli","version":"1.0.3","keywords":["whatsapp","cli","whatsapp-web","messaging","terminal","automation"],"author":"","license":"MIT","_id":"@adityakul0314/wacli@1.0.3","maintainers":[{"name":"adityakul0314","email":"adityakul0314@gmail.com"}],"homepage":"https://github.com/Ad1tya-007/whatsapp-cli#readme","bugs":{"url":"https://github.com/Ad1tya-007/whatsapp-cli/issues"},"bin":{"wacli":"dist/index.js"},"dist":{"shasum":"7a342f082a55b6c3df25ce4738ebeebddb855aeb","tarball":"https://registry.npmjs.org/@adityakul0314/wacli/-/wacli-1.0.3.tgz","fileCount":15,"integrity":"sha512-KFAS22JkJ5pOpeRWQPD9+ObYm2Z6IilAAm4Qg1nDSuhc2Z2J/7QDNCKY34Vf9InnReyVrE75nZdfyeYnOzigGg==","signatures":[{"sig":"MEUCIH5EU+3D5efKk0fv7c/nrBcYvDd2hWoRhn5fkbYsXQQIAiEAgSinNleKUyuz2SnhBBqVKQ2rZ6BQUIcjelvrSIA2RW4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":53191},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=16.0.0"},"gitHead":"37afb7cab367a0504b71970203881801a05b556f","scripts":{"dev":"ts-node src/index.ts","build":"tsc","start":"ts-node src/index.ts","prepare":"npm run build","prepublishOnly":"npm run build"},"_npmUser":{"name":"adityakul0314","email":"adityakul0314@gmail.com"},"repository":{"url":"git+https://github.com/Ad1tya-007/whatsapp-cli.git","type":"git"},"_npmVersion":"11.11.0","description":"A CLI tool to send WhatsApp messages from the terminal","directories":{},"_nodeVersion":"25.8.0","dependencies":{"commander":"^11.1.0","qrcode-terminal":"^0.12.0","whatsapp-web.js":"github:lindionez/whatsapp-web.js#feat/fix-_serialized-id-fallback"},"_hasShrinkwrap":false,"devDependencies":{"ts-node":"^10.9.2","typescript":"^7.0.2","@types/node":"^26.1.1","@types/qrcode-terminal":"^0.12.2"},"_npmOperationalInternal":{"tmp":"tmp/wacli_1.0.3_1784851997038_0.47995960169542595","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@adityakul0314/wacli","version":"1.0.4","keywords":["whatsapp","cli","whatsapp-web","messaging","terminal","automation"],"author":"","license":"MIT","_id":"@adityakul0314/wacli@1.0.4","maintainers":[{"name":"adityakul0314","email":"adityakul0314@gmail.com"}],"homepage":"https://github.com/Ad1tya-007/whatsapp-cli#readme","bugs":{"url":"https://github.com/Ad1tya-007/whatsapp-cli/issues"},"bin":{"wacli":"dist/index.js"},"dist":{"shasum":"38afacb29d03a22a70e6234152a2228632f8a7d9","tarball":"https://registry.npmjs.org/@adityakul0314/wacli/-/wacli-1.0.4.tgz","fileCount":79,"integrity":"sha512-gDj8cyeUJaBtswXiMrx6wxJM5m7iCYKb2+nnoV6U6ofVgWQzT0IXYYoxKcWLmOrZuIOrxvxB629jNXKf+30YnQ==","signatures":[{"sig":"MEUCIQCe5wOJBS6jHV4mEpV/UTHuVaySeYEGG5QsLrjmp7z6XgIga4luD0F3X8BAtvyuEneliN0Cwc93bETJKR3ezTPd4Us=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":86898},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=16.0.0"},"gitHead":"36b1cfecbc2ce8e029510aa3474d233246a64234","scripts":{"dev":"ts-node src/index.ts","build":"tsc","start":"ts-node src/index.ts","prepare":"npm run build","postbuild":"node -e \"require('fs').chmodSync('dist/index.js', 0o755)\"","prepublishOnly":"npm run build"},"_npmUser":{"name":"adityakul0314","email":"adityakul0314@gmail.com"},"repository":{"url":"git+https://github.com/Ad1tya-007/whatsapp-cli.git","type":"git"},"_npmVersion":"11.11.0","description":"A CLI tool to send WhatsApp messages from the terminal","directories":{},"_nodeVersion":"25.8.0","dependencies":{"commander":"^11.1.0","qrcode-terminal":"^0.12.0","whatsapp-web.js":"github:lindionez/whatsapp-web.js#feat/fix-_serialized-id-fallback","@inquirer/select":"^1.3.3"},"_hasShrinkwrap":false,"devDependencies":{"ts-node":"^10.9.2","typescript":"^7.0.2","@types/node":"^26.1.1","@types/qrcode-terminal":"^0.12.2"},"_npmOperationalInternal":{"tmp":"tmp/wacli_1.0.4_1785369228798_0.15842878803621963","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@adityakul0314/wacli","version":"1.0.5","description":"A CLI tool to send WhatsApp messages from the terminal","main":"dist/index.js","bin":{"wacli":"dist/index.js"},"scripts":{"build":"tsc","postbuild":"node -e \"require('fs').chmodSync('dist/index.js', 0o755)\"","start":"tsx src/index.ts","dev":"tsx src/index.ts","prepublishOnly":"npm run build","prepare":"npm run build"},"keywords":["whatsapp","cli","whatsapp-web","messaging","terminal","automation"],"author":"","license":"MIT","repository":{"type":"git","url":"git+https://github.com/Ad1tya-007/whatsapp-cli.git"},"bugs":{"url":"https://github.com/Ad1tya-007/whatsapp-cli/issues"},"homepage":"https://github.com/Ad1tya-007/whatsapp-cli#readme","engines":{"node":">=16.0.0"},"dependencies":{"@inquirer/select":"^5.2.1","commander":"^11.1.0","qrcode-terminal":"^0.12.0","whatsapp-web.js":"github:lindionez/whatsapp-web.js#feat/fix-_serialized-id-fallback"},"devDependencies":{"@types/node":"^26.1.1","@types/qrcode-terminal":"^0.12.2","tsx":"^4.23.12","typescript":"^7.0.2"},"gitHead":"410fefaa5426929d3ae2bade7f17449833d206db","types":"./dist/index.d.ts","_id":"@adityakul0314/wacli@1.0.5","_nodeVersion":"25.8.0","_npmVersion":"11.11.0","dist":{"integrity":"sha512-cMY50Svd6kD0qNByx0Eueha4J32j53W2afr3hwzFslxI3EUR12y7ASbWYx3g0NR/KVs5nm+DD25kZytwIlssYw==","shasum":"3eff45c056fbeb8959e6337bbaaa0b48ee151d3c","tarball":"https://registry.npmjs.org/@adityakul0314/wacli/-/wacli-1.0.5.tgz","fileCount":87,"unpackedSize":106190,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDZ/Ed9RER9ATG0mvkz2Dig7rs7j99Uox0pmnsn1zjyaAiAqGNJSbNCgWPga0A/3Zr3JA4SMfl+bFDfj5F/Mcs+TnQ=="}]},"_npmUser":{"name":"adityakul0314","email":"adityakul0314@gmail.com"},"directories":{},"maintainers":[{"name":"adityakul0314","email":"adityakul0314@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/wacli_1.0.5_1786746010408_0.12359734598221772"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-17T19:53:17.494Z","modified":"2026-08-14T22:20:10.722Z","1.0.0":"2026-02-17T19:53:17.907Z","1.0.1":"2026-02-17T20:07:03.515Z","1.0.2":"2026-07-21T21:32:51.697Z","1.0.3":"2026-07-24T00:13:17.175Z","1.0.4":"2026-07-29T23:53:48.941Z","1.0.5":"2026-08-14T22:20:10.546Z"},"bugs":{"url":"https://github.com/Ad1tya-007/whatsapp-cli/issues"},"license":"MIT","homepage":"https://github.com/Ad1tya-007/whatsapp-cli#readme","keywords":["whatsapp","cli","whatsapp-web","messaging","terminal","automation"],"repository":{"type":"git","url":"git+https://github.com/Ad1tya-007/whatsapp-cli.git"},"description":"A CLI tool to send WhatsApp messages from the terminal","maintainers":[{"name":"adityakul0314","email":"adityakul0314@gmail.com"}],"readme":"# WhatsApp CLI (`wacli`)\n\nSend WhatsApp messages from your terminal using your personal WhatsApp account.\n\nDevelopers: see [DEVELOPER_README.md](DEVELOPER_README.md).\n\n## Install\n\nYou need [Node.js](https://nodejs.org/) (v16 or newer).\n\n```bash\nnpm install -g @adityakul0314/wacli\n```\n\nCheck that it works:\n\n```bash\nwacli --help\n```\n\n## First-time setup\n\nThe first time you run a command, a QR code appears in the terminal.\n\n1. Open WhatsApp on your phone\n2. Go to **Settings → Linked Devices → Link a Device**\n3. Scan the QR code\n4. Wait until you see that WhatsApp is ready\n\nYou only need to do this once. Your login is saved on this computer until you log out.\n\n## Commands\n\n### Send a text message\n\n```bash\nwacli send -n 14165551234 -m \"Hello from CLI\"\n```\n\nUse a saved contact name instead of a number:\n\n```bash\nwacli send -c \"Mom\" -m \"Love you!\"\n```\n\n`-c` looks in your **saved contacts** first. If nothing matches, you get an interactive list of up to 5 matches (name + number) — use the arrow keys and Enter to choose.\n\n### Send a file\n\nSend a supported file such as an image or document:\n\n```bash\nwacli send -n 14165551234 -f ./photo.jpg\n```\n\nOptional caption with `-m` when sending a file:\n\n```bash\nwacli send -c \"Mom\" -f ./photo.jpg -m \"From today\"\n```\n\n**Videos are not supported.** `wacli` rejects video files and will not send them as playable media or as documents.\n\n### List recent chats\n\n```bash\nwacli list\n```\n\nShow more chats:\n\n```bash\nwacli list -l 10\n```\n\n### List contacts\n\n```bash\nwacli contacts\n```\n\n### Check a number\n\nSee if a phone number is on WhatsApp (does not send a message):\n\n```bash\nwacli check -n 14165551234\n```\n\n### Log in / who am I?\n\nThe first WhatsApp command prints a QR code if you are not logged in. `me` and `login` do the same thing:\n\n```bash\nwacli me\nwacli login\n```\n\n### Log out\n\n```bash\nwacli logout\n```\n\nAfter logout, you will need to scan the QR code again next time.\n\n## Phone numbers\n\nAlways include the country code, with no `+`, spaces, or dashes:\n\n- US: `14165551234`\n- UK: `447700900123`\n- India: `919876543210`\n\n## Troubleshooting\n\n**QR code hard to scan** — Make the terminal window larger and try again.\n\n**“Number not registered”** — Double-check the country code and remove spaces or punctuation.\n\n**Video file rejected** — Video sending is intentionally unsupported, including sending a video as a document.\n\n**Session problems** — Log out and run any command again to re-scan:\n\n```bash\nwacli logout\nwacli me\n```\n\n**Your phone must stay online** — This uses WhatsApp Web, so your phone needs internet.\n\n## License\n\nMIT\n\n## Disclaimer\n\nThis project is not affiliated with WhatsApp or Meta. Use responsibly and in accordance with WhatsApp’s Terms of Service.\n","readmeFilename":"README.md"}