@qodly/cli
v0.5.1
Published
Qodly CLI
Readme
@qodly/cli
Command-line interface for creating and managing Qodly custom component projects.
Installation
npm install -g @qodly/cliOr using bun:
bun install -g @qodly/cliUsage
qodly <command> [options]Commands
| Command | Alias | Description |
| ---------- | -------------------------- | -------------------------------------------------------- |
| init | | Initialize a new custom component project |
| project | | Initialize a new Qodly project |
| generate | g, new, create, gen| Generate a new component |
| build | b | Build the project |
| migrate | m | Migrate a project to the latest CLI version |
| doc | d | Generate documentation for the current project |
| version | -v, --version | Show the CLI version |
| help | | Show help information |
Examples
Create a new project
qodly initGenerate a new component
qodly generate
# or
qodly gBuild the project
qodly build
# or
qodly bGenerate documentation
qodly doc
# or with custom input/output
qodly doc -f "src/**/*.tsx" -o "docs/api.mdx"Check CLI version
qodly version
# or
qodly -vDevelopment
Prerequisites
- Bun (recommended) or Node.js
Setup
bun installScripts
| Script | Description |
| -------------- | ------------------------------------ |
| bun run build| Build the CLI |
| bun run lint | Run linter |
| bun run format | Format code |
| bun run check| Run all checks (lint + format) |
License
ISC
