Elements CLI
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.
macOS / Linux
Windows PowerShell
NodeJS curl -fsSL https://nvidia.github.io/elements/install.sh | bash
curl -fsSL https://nvidia.github.io/elements/install.sh | bash
irm https://nvidia.github.io/elements/install.ps1 | iex
irm https://nvidia.github.io/elements/install.ps1 | iex
# install the CLI
npm install -g @nvidia-elements/cli
# install the CLI
npm install -g @nvidia-elements/cli
Usage
Project Creation
Use the CLI to quickly bootstrap frontend UIs pre-configured with Elements.
# generate a vite/typescript project and start dev server once created
nve project.create --type=typescript --start
# generate a vite/typescript project and start dev server once created
nve project.create --type=typescript --start
API Search
The CLI also can provide API search results withing the terminal.
nve api.search "badge"
nve api.search "badge"
Search result output:
## nve-badge
A visual indicator that communicates a status description of an associated component. Status badges use short text, color, and icons for quick recognition .
### Example
<nve-badge>badge</nve-badge>
### Import
import '@nvidia-elements/core/badge/define.js';
### Slots
┌─────────────┬──────────────────────────┐
│ name │ description │
├─────────────┼──────────────────────────┤
│ │ default slot for content │
├─────────────┼──────────────────────────┤
│ prefix-icon │ slot for prefix icon │
├─────────────┼──────────────────────────┤
│ suffix-icon │ slot for suffix icon │
└─────────────┴──────────────────────────┘
...
## nve-badge
A visual indicator that communicates a status description of an associated component. Status badges use short text, color, and icons for quick recognition .
### Example
<nve-badge>badge</nve-badge>
### Import
import '@nvidia-elements/core/badge/define.js';
### Slots
┌─────────────┬──────────────────────────┐
│ name │ description │
├─────────────┼──────────────────────────┤
│ │ default slot for content │
├─────────────┼──────────────────────────┤
│ prefix-icon │ slot for prefix icon │
├─────────────┼──────────────────────────┤
│ suffix-icon │ slot for suffix icon │
└─────────────┴──────────────────────────┘
...
Skills
Use skills to give AI agents persistent Elements workflow context. The CLI and MCP server expose the same default skill set.
nve skills.list
nve skills.get elements
nve skills.list
nve skills.get elements
Commands
Command Description nve --upgrade Upgrade to the latest CLI release. nve api.list [format] Get list of all available Elements (nve-*) APIs and components. nve api.search <query> [format] Search and retrieve a list of Elements (nve-*) components and APIs using keywords or natural language. nve api.get <names..> [--format <format>] Get documentation for one to five known components or attributes (nve-*). nve api.template.validate <template> Validates HTML templates using Elements APIs and components (nve-*). nve api.imports.get <template> Get esm imports for a given HTML template using Elements APIs (nve-*). nve api.tokens.list [format] Get available semantic CSS custom properties / design tokens for theming. nve packages.list Get latest published versions of all Elements packages. nve packages.get <name> Get details for a specific Elements package. nve packages.changelogs.get <name> [format] Retrieve changelog details by package name. nve examples.list [format] Get list of available Elements (nve-*) patterns and examples. nve skills.list [format] Get available bundled Elements agent skills and context. nve skills.get <name> [format] Get a bundled Elements agent skill by name. nve playground.validate <template> Validates HTML templates specifically for playground examples. nve playground.create <template> [type] [name] [author] Create a shareable playground URL from an HTML template. nve project.create <type> [cwd] [start] Create a new starter project. nve project.validate <type> [cwd] Check project for configuration issues and dependencies. nve project.setup [cwd] Setup or update a project to use Elements. Troubleshooting
403 Forbidden
A 403 Forbidden error means your token has expired. Re-authenticate to resolve it.
npm config set registry https://registry.npmjs.org && npm login --auth-type=legacy
npm config set registry https://registry.npmjs.org && npm login --auth-type=legacy
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.