Skip to content

Get started ​

Use Node.js 20.18.1 or newer and run commands against the intended project directory.

Run the CLI ​

Run the published CLI without installing it, or add it to the project as a development dependency:

sh
pnpm dlx @anvia/cli --help
pnpm add -D @anvia/cli

The guides use anvia as shorthand for either form. For example:

sh
pnpm dlx @anvia/cli skills init --cwd /path/to/my-project --codex

These guides describe CLI 1.6.0; at review time npm's published tag was 1.5.8, so check anvia --version. If memory is unknown, you are running a release older than 1.6.0. If ui or --apply is unknown, you are running a release older than 1.4.0; see Troubleshooting.

Install knowledge for your coding agent ​

sh
anvia skills list
anvia skills init --codex

This creates skills/<name>/ and an Anvia section in AGENTS.md. For Claude Code or Cursor:

sh
anvia skills init --claude
anvia skills init --cursor

Target flags can be combined. They add integrations alongside the canonical skills/ copy. Use --cwd <path> for another project and --dir <path> for another canonical directory:

sh
anvia skills init --codex --cursor --dir agent-skills --cwd ./my-project

Skills installation needs no React application, shadcn configuration, or provider API key. Read Agent Skills for the catalog and output paths. Later updates detect the Claude Code, Cursor, and AGENTS.md integrations already installed, so only --dir and --cwd need repeating.

In an interactive terminal, skills init without target flags asks which integrations to configure and where the canonical directory lives. Pass --yes (or target flags and --dir) in scripts and CI.

Prepare an existing React application ​

UI installation requires an existing Next.js or Vite application with Tailwind styling and resolvable component aliases. Initialize shadcn from the application's root:

sh
anvia ui init vite
sh
anvia ui init next

ui init prepares shadcn and components.json. Use --cwd <path> for another directory. ui init --force lets shadcn replace existing configuration. Install a complete chat composition:

sh
anvia ui add chat

Follow the component guide to connect Chat to a controller and server.

Set up session memory ​

From a project that already has a package.json:

sh
anvia memory list
anvia memory init sqlite
anvia memory check

memory init installs @anvia/core and the backend package with your package manager and writes a helper file. Read Memory for each backend's files, flags, and next steps.

Preview and apply updates ​

Both update commands write nothing by default, including selected agent integrations:

sh
anvia ui update composer
anvia skills update

Review the listed paths, then repeat the command with --apply:

sh
anvia ui update composer --apply
anvia skills update --apply

Applying changes replaces differing files without merging local edits. Read the skill update rules and component update rules before applying.

Built for Anvia.