{"_id":"@codeforward/cli","_rev":"2-5988db973817dc478db83f626e0727e3","name":"@codeforward/cli","dist-tags":{"latest":"2.1.0"},"versions":{"2.0.0":{"name":"@codeforward/cli","version":"2.0.0","keywords":["cli","component-library","code-generator","react","tailwindcss","design-system","codeward"],"author":{"name":"Vitor Medina"},"license":"MIT","_id":"@codeforward/cli@2.0.0","maintainers":[{"name":"codeforward","email":"codeward.dev@gmail.com"}],"homepage":"https://github.com/Codeward-Enterprise/Codeward-library#readme","bugs":{"url":"https://github.com/Codeward-Enterprise/Codeward-library/issues"},"bin":{"codeward":"dist/index.js"},"dist":{"shasum":"b9dae0fa8e4ce35799210c5a613085db08150dfa","tarball":"https://registry.npmjs.org/@codeforward/cli/-/cli-2.0.0.tgz","fileCount":21,"integrity":"sha512-bu0/ESMNEo0waCeLtEx1FcYh0LvejcmLWOB0jVjXovOsOCTlGm3NGEwDZ5vMODgBuY6FQIc94f3PP9M4uLEJ3w==","signatures":[{"sig":"MEYCIQDOUBVpJ1FCvS/w9zujfUs872hhYEuW0dp42BfrdTGZ2wIhAMMHqO25Hcism+ad8BBv/F43dxx4gB+zcCFFgqYo5wEG","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@codeforward%2fcli@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":84842},"main":"./dist/index.js","_from":"file:codeforward-cli-2.0.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=20"},"private":false,"scripts":{"dev":"tsup --watch","lint":"biome check .","test":"vitest run","build":"tsup"},"_npmUser":{"name":"codeforward","email":"codeward.dev@gmail.com"},"_resolved":"/tmp/54f2db11258a9c8c9d8bd872344bc1af/codeforward-cli-2.0.0.tgz","_integrity":"sha512-bu0/ESMNEo0waCeLtEx1FcYh0LvejcmLWOB0jVjXovOsOCTlGm3NGEwDZ5vMODgBuY6FQIc94f3PP9M4uLEJ3w==","repository":{"url":"git+https://github.com/Codeward-Enterprise/Codeward-library.git","type":"git","directory":"packages/cli"},"_npmVersion":"10.8.2","description":"CLI for adding Codeward UI components to your project","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"ora":"^8.1.1","fs-extra":"^11.3.0","commander":"^12.1.0","picocolors":"^1.1.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"@types/fs-extra":"^11.0.4"},"_npmOperationalInternal":{"tmp":"tmp/cli_2.0.0_1779329825731_0.12325649191743149","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"@codeforward/cli","version":"2.1.0","description":"CLI for adding Codeward UI components to your project","license":"MIT","author":{"name":"Vitor Medina"},"keywords":["cli","component-library","code-generator","react","tailwindcss","design-system","codeward"],"repository":{"type":"git","url":"git+https://github.com/Codeward-Enterprise/Codeward-library.git","directory":"packages/cli"},"homepage":"https://github.com/Codeward-Enterprise/Codeward-library#readme","bugs":{"url":"https://github.com/Codeward-Enterprise/Codeward-library/issues"},"engines":{"node":">=20"},"private":false,"sideEffects":false,"main":"./dist/index.js","types":"./dist/index.d.ts","bin":{"codeward":"dist/index.js"},"dependencies":{"commander":"^12.1.0","fs-extra":"^11.3.0","ora":"^8.1.1","picocolors":"^1.1.1"},"devDependencies":{"@types/fs-extra":"^11.0.4"},"publishConfig":{"registry":"https://registry.npmjs.org","access":"public"},"scripts":{"build":"tsup","dev":"tsup --watch","lint":"biome check .","test":"vitest run"},"_id":"@codeforward/cli@2.1.0","_integrity":"sha512-oU2/UDwRZsnuU46+tTOQDLhIUsBiMkLZ7pKOdbdsHXQXkPQ3P5EWGZnxIzdq/LtmhF53dahq+wJsdNfGYyc1zw==","_resolved":"/tmp/a36dca416cbbafe58486497c9a14164c/codeforward-cli-2.1.0.tgz","_from":"file:codeforward-cli-2.1.0.tgz","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-oU2/UDwRZsnuU46+tTOQDLhIUsBiMkLZ7pKOdbdsHXQXkPQ3P5EWGZnxIzdq/LtmhF53dahq+wJsdNfGYyc1zw==","shasum":"a1db62122329b14c75bec6eb0e3a682120d4b97c","tarball":"https://registry.npmjs.org/@codeforward/cli/-/cli-2.1.0.tgz","fileCount":21,"unpackedSize":97913,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@codeforward%2fcli@2.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC6otNLf1YP5oHmV4An12/SH0XSxx442oaxJXfXFkyaewIhAKvK78wJeSFjGDAmpUAFqBab+9fvjkp2EsMTRUi79j+n"}]},"_npmUser":{"name":"codeforward","email":"codeward.dev@gmail.com"},"directories":{},"maintainers":[{"name":"codeforward","email":"codeward.dev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cli_2.1.0_1779335468931_0.45791600389410814"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-21T02:17:05.572Z","modified":"2026-05-21T03:51:09.402Z","2.0.0":"2026-05-21T02:17:05.876Z","2.1.0":"2026-05-21T03:51:09.086Z"},"bugs":{"url":"https://github.com/Codeward-Enterprise/Codeward-library/issues"},"author":{"name":"Vitor Medina"},"license":"MIT","homepage":"https://github.com/Codeward-Enterprise/Codeward-library#readme","keywords":["cli","component-library","code-generator","react","tailwindcss","design-system","codeward"],"repository":{"type":"git","url":"git+https://github.com/Codeward-Enterprise/Codeward-library.git","directory":"packages/cli"},"description":"CLI for adding Codeward UI components to your project","maintainers":[{"name":"codeforward","email":"codeward.dev@gmail.com"}],"readme":"# @codeforward/cli\n\nThe official CLI for adding Codeward UI components to your project.\n\nComponents are copied as `.tsx` source files directly into your codebase — you own the code and can modify it freely (shadcn-style).\n\n## Usage\n\nNo installation needed. Run with `npx` or `pnpm dlx`:\n\n```sh\nnpx codeward add button\npnpm dlx @codeforward/cli add button card input\n```\n\nOr install globally:\n\n```sh\nnpm install -g @codeforward/cli\ncodeward add button\n```\n\n## Commands\n\n### `codeward list`\n\nLists all available components:\n\n```sh\ncodeward list\n# alias: codeward ls\n```\n\n### `codeward add <component...>`\n\nCopies one or more components into your project:\n\n```sh\ncodeward add button\ncodeward add card input badge dialog\n```\n\nThe CLI auto-detects your project structure:\n- If `src/` exists → copies to `src/components/ui/`\n- Otherwise → copies to `components/ui/`\n\nAfter adding a component, the CLI prints the peer dependencies you need to install.\n\n## Available components\n\n| Component | Description |\n|---|---|\n| `button` | Accessible button with 7 variants and 8 sizes |\n| `input` | Form input with label, hint, error state and icon slot |\n| `card` | Card container with header, content and footer |\n| `badge` | Inline status badge with semantic variants |\n| `dialog` | Accessible modal dialog via Radix UI |\n| `checkbox` | Accessible checkbox with optional label |\n| `switch` | Toggle switch with Mint 500 active state |\n| `tooltip` | Accessible tooltip via Radix UI |\n| `select` | Accessible select dropdown via Radix UI |\n| `avatar` | Avatar with initials fallback and AvatarGroup |\n| `tabs` | Tab navigation via Radix UI |\n| `accordion` | Collapsible sections via Radix UI |\n| `table` | Semantic table for data listings |\n| `toast` | Temporary notification via Radix UI |\n\n## Prerequisites\n\nYour project needs:\n- React 19\n- Tailwind CSS 4\n- `@codeforward/tokens` with the CSS variables imported\n\n## License\n\nMIT © Vitor Medina\n","readmeFilename":"README.md"}