{"_id":"@10kbwiki/cli","_rev":"3-8260a62cdbad1b4413c03af641ece735","name":"@10kbwiki/cli","dist-tags":{"latest":"1.2.0"},"versions":{"0.1.0":{"name":"@10kbwiki/cli","version":"0.1.0","keywords":["10kb","wiki","cli","documentation"],"license":"MIT","_id":"@10kbwiki/cli@0.1.0","maintainers":[{"name":"timiliris","email":"timothydetournay@gmail.com"}],"homepage":"https://10kbwiki.com","bugs":{"url":"https://github.com/axmusic/10KBWikiSass/issues"},"bin":{"10kb":"bin/10kb.mjs"},"dist":{"shasum":"5c97456b6ab5ad5014d93714fd2b88877a6777cb","tarball":"https://registry.npmjs.org/@10kbwiki/cli/-/cli-0.1.0.tgz","fileCount":17,"integrity":"sha512-kUjNkBlwkEStFBkgU9xHQ8yFv3IjddYOI403qwtK99zWrRjHelYVw29JQ6hxreZ0vEIGr3mPlPhFc2vg39tipg==","signatures":[{"sig":"MEYCIQCWH0az16qYG2BKWGToTmz3OHnY79dpdspv69IVWLqK8QIhAIbcp/c8opO3KcDFj89HRyXMbRaikekgiohkluPSQqXK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":31310},"type":"module","engines":{"node":">=18.0.0"},"gitHead":"1ed2ea0c7777ead7764d88521f167711fe9eb5fd","scripts":{"dev":"node --watch bin/10kb.mjs","start":"node bin/10kb.mjs"},"_npmUser":{"name":"timiliris","email":"timothydetournay@gmail.com"},"repository":{"url":"git+https://github.com/axmusic/10KBWikiSass.git","type":"git","directory":"cli"},"_npmVersion":"11.6.2","description":"CLI for 10KB Wiki — manage your wikis from the terminal","directories":{},"_nodeVersion":"24.11.1","dependencies":{"ora":"^8.2.0","chalk":"^5.4.1","chokidar":"^4.0.3","commander":"^13.1.0","gray-matter":"^4.0.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli_0.1.0_1772135952823_0.33725437590581886","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@10kbwiki/cli","version":"0.1.1","keywords":["10kb","wiki","cli","documentation"],"license":"MIT","_id":"@10kbwiki/cli@0.1.1","maintainers":[{"name":"timiliris","email":"timothydetournay@gmail.com"}],"homepage":"https://10kbwiki.com","bugs":{"url":"https://github.com/axmusic/10KBWikiSass/issues"},"bin":{"tkb":"bin/10kb.mjs"},"dist":{"shasum":"c792ae90f2afa2eb79df3df2bcfc3c6533a73459","tarball":"https://registry.npmjs.org/@10kbwiki/cli/-/cli-0.1.1.tgz","fileCount":17,"integrity":"sha512-SbVLfp1cgptxeLOLgpkwSgG1cai0+cJPvuiYgWW4IkqIwukhHA+ZKxHtmimH9KBAGl/EQYOMiUZBX7HgFX0qQg==","signatures":[{"sig":"MEQCIG7K71j42MhSuzFCYlI4S5j9yodb6NlDgpvvDan+GXDVAiBMYkwgulmGT6CiJCImDw8tzWnH2a6VLFO2deqXhpWZqw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":31294},"type":"module","engines":{"node":">=18.0.0"},"gitHead":"1ed2ea0c7777ead7764d88521f167711fe9eb5fd","scripts":{"dev":"node --watch bin/10kb.mjs","start":"node bin/10kb.mjs"},"_npmUser":{"name":"timiliris","email":"timothydetournay@gmail.com"},"repository":{"url":"git+https://github.com/axmusic/10KBWikiSass.git","type":"git","directory":"cli"},"_npmVersion":"11.6.2","description":"CLI for 10KB Wiki — manage your wikis from the terminal","directories":{},"_nodeVersion":"24.11.1","dependencies":{"ora":"^8.2.0","chalk":"^5.4.1","chokidar":"^4.0.3","commander":"^13.1.0","gray-matter":"^4.0.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli_0.1.1_1772136478424_0.8692605027576807","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@10kbwiki/cli","version":"1.2.0","description":"CLI for 10KB Wiki — manage your wikis from the terminal","type":"module","bin":{"tkb":"bin/10kb.mjs"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/axmusic/10KBWikiSass.git","directory":"cli"},"homepage":"https://10kbwiki.com","bugs":{"url":"https://github.com/axmusic/10KBWikiSass/issues"},"engines":{"node":">=18.0.0"},"scripts":{"start":"node bin/10kb.mjs","dev":"node --watch bin/10kb.mjs"},"dependencies":{"chalk":"^5.4.1","chokidar":"^4.0.3","commander":"^13.1.0","gray-matter":"^4.0.3","ora":"^8.2.0"},"keywords":["10kb","wiki","cli","documentation"],"license":"MIT","gitHead":"1ed2ea0c7777ead7764d88521f167711fe9eb5fd","_id":"@10kbwiki/cli@1.2.0","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-SWFGmLcpVKxn1D44Ot1IoDlhF3mLkX18obDSNE0glaWU7ALOgEuwhAYasN6P8+C9OyoOtgnuFI/pz5aLjQKS8w==","shasum":"0fd7b56a914bc6df00288e4a752d4458b494a717","tarball":"https://registry.npmjs.org/@10kbwiki/cli/-/cli-1.2.0.tgz","fileCount":17,"unpackedSize":31623,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDyQowuHIofSsveWpu5x2Ud4jBxUnKbYyGezDWxq2xQeQIhAIm0Jx6XV5babqTd81Ei/j8mvEMSWxbpRAa91mlxbNY5"}]},"_npmUser":{"name":"timiliris","email":"timothydetournay@gmail.com"},"directories":{},"maintainers":[{"name":"timiliris","email":"timothydetournay@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cli_1.2.0_1772137519426_0.5826665571442782"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-26T19:59:12.764Z","modified":"2026-02-26T20:25:19.691Z","0.1.0":"2026-02-26T19:59:12.943Z","0.1.1":"2026-02-26T20:07:58.578Z","1.2.0":"2026-02-26T20:25:19.571Z"},"bugs":{"url":"https://github.com/axmusic/10KBWikiSass/issues"},"license":"MIT","homepage":"https://10kbwiki.com","keywords":["10kb","wiki","cli","documentation"],"repository":{"type":"git","url":"git+https://github.com/axmusic/10KBWikiSass.git","directory":"cli"},"description":"CLI for 10KB Wiki — manage your wikis from the terminal","maintainers":[{"name":"timiliris","email":"timothydetournay@gmail.com"}],"readme":"# 10KB Wiki CLI\n\nThe **10KB Wiki CLI** lets you manage your wikis from the terminal. Write documentation as local markdown files and sync them to your wiki with a single command.\n\n## Installation\n\n```bash\nnpm install -g @10kbwiki/cli\n```\n\nRequires **Node.js 18+**.\n\n## Quick Start\n\n```bash\n# 1. Authenticate\ntkb login\n\n# 2. Create a wiki and local docs/ folder\ntkb init my-project\n\n# 3. Edit markdown files in docs/\n# 4. Push to your wiki\ntkb push\n\n# 5. Open in browser\ntkb open\n```\n\n## How It Works\n\nThe CLI follows a **docs-as-code** workflow:\n\n1. You write markdown files (`.md`) in a local `docs/` folder\n2. Each file uses YAML **frontmatter** for metadata (`title`, `sort`)\n3. The CLI syncs these files to your 10KB Wiki via the API\n4. The server builds everything into a single HTML file (under 10 KB)\n\n### File Format\n\n```markdown\n---\ntitle: Getting Started\nsort: 1\n---\n\n# Getting Started\n\nYour content here...\n```\n\n- **`title`** — Page title displayed in the wiki sidebar\n- **`sort`** — Controls page ordering (lower = first)\n\n### Folder Structure\n\nFiles can be nested in subdirectories to create hierarchical navigation:\n\n```\ndocs/\n  index.md              → /index\n  getting-started.md    → /getting-started\n  guides/\n    setup.md            → /guides/setup\n    deployment.md       → /guides/deployment\n  api/\n    reference.md        → /api/reference\n```\n\n## Commands\n\n| Command | Alias | Description |\n|---------|-------|-------------|\n| `tkb login` | — | Authenticate with your account |\n| `tkb whoami` | — | Show account info and plan |\n| `tkb init <name>` | — | Initialize a wiki project |\n| `tkb push` | — | Push local docs to your wiki |\n| `tkb pull` | — | Pull wiki pages to local files |\n| `tkb status` | `s` | Show wiki sync status |\n| `tkb build` | `b` | Trigger a wiki build |\n| `tkb watch` | `w` | Watch for changes and auto-push |\n| `tkb open` | `o` | Open wiki in the browser |\n| `tkb generate` | `gen` | Generate docs with an AI agent |\n\n## Configuration\n\nThe CLI uses two config files:\n\n| File | Location | Purpose |\n|------|----------|---------|\n| `~/.10kb/config.json` | Home directory | API token (global, shared across projects) |\n| `.10kb.json` | Project root | Wiki slug, docs directory, auto-build setting |\n\n### `.10kb.json` Example\n\n```json\n{\n  \"wiki\": \"my-project\",\n  \"docs\": \"docs\",\n  \"auto_build\": true\n}\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}