Elements CLI
The Elements CLI provides command-line access to the Elements design system. Use it to scaffold new projects pre-configured with Elements, look up component APIs and design tokens, validate templates, and generate shareable playgrounds -- all without leaving your terminal
Install CLI
Install the Elements CLI to your system. This creates a canonical executable path and adds the nve command to your path when possible.
Usage
Project Creation
Use the CLI to quickly bootstrap frontend UIs pre-configured with Elements.
API Search
The CLI also can provide API search results withing the terminal.
API Validation
Check paths or glob patterns, or pass one typed document through standard input. Supplied content defaults to HTML; use --lang json with --filename for JSON.
Markdown is the default format. JSON returns ok, complete summary counts, and diagnostics with locations, severity, rule, suggestion, and whether a fix is available. Errors produce a nonzero exit code; warnings do not. The command always uses the recommended Elements rules. Use --max-diagnostics to limit returned findings, and use --fix only with path inputs. It respects .gitignore, skips node_modules, and by default reads at most 200 files, 5 MiB total, and returns 100 diagnostics. It also refuses paths outside the current directory.
Search result output:
Skills
Use the Elements skill to give AI agents persistent workflow context. Install its complete directory in the current project, or install it for the current user:
Commands
nve --upgradenve api.list [format]nve api.search <query> [format]nve api.get <names..> [--format <format>]nve api.validate [paths..]nve api.imports.get <template>nve api.tokens.list [format]nve packages.listnve packages.get <name>nve packages.changelogs.get <name> [format]nve examples.list [format]nve skills.install [--global]nve playground.validate <template>nve playground.create <template> [type] [name] [author]nve project.create <type> [cwd] [start]nve project.validate <type> [cwd]nve project.setup [cwd]Troubleshooting
403 Forbidden
A 403 Forbidden error means your token has expired. Re-authenticate to resolve it.
Unsupported Engine
An Unsupported engine warning means your Node.js version is out of date. The CLI requires Node.js v20 or later. Update Node.js and try again.