CLI Reference
The @servly/cli package provides all the tools you need to scan, sync, and distribute Servly components.
Installation
npm install -g @servly/cli
Or use it locally in your project:
npm install --save-dev @servly/cli
Commands
servly scan
Analyze your project and detect design tokens, components, and framework configuration.
servly scan [directory] [options]
| Option | Description |
|---|---|
--config | Path to servly config file |
--output | Output directory for scan results |
--format | Output format (json, yaml) |
servly distribute
Generate framework-specific component code from your CIF manifests.
servly distribute [options]
| Option | Description |
|---|---|
--framework | Target framework (react, vue, svelte, angular, solid) |
--output | Output directory |
--typescript | Generate TypeScript (default: true) |
servly watch
Watch for changes and regenerate on save.
servly watch [options]
servly validate
Validate CIF manifests against the specification.
servly validate [files...]