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]
OptionDescription
--configPath to servly config file
--outputOutput directory for scan results
--formatOutput format (json, yaml)

servly distribute

Generate framework-specific component code from your CIF manifests.

servly distribute [options]
OptionDescription
--frameworkTarget framework (react, vue, svelte, angular, solid)
--outputOutput directory
--typescriptGenerate 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...]