litestar-assets-cli

Manage Litestar frontend assets via the litestar assets CLI.

15|4|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/cofin/flow --skill litestar-assets-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: litestar-assets-cli
Source: https://github.com/cofin/flow/tree/main/skills/litestar-assets-cli
Command: npx skills add https://github.com/cofin/flow --skill litestar-assets-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill standardizes frontend asset operations for Litestar projects, ensuring Python and Vite stay synchronized and simplifying development, build, and diagnostic workflows.

Core Features & Use Cases

  • Unified CLI: Access Litestar's integrated asset commands (install, serve, build, generate-types, export-routes, status, doctor) without direct npm or Vite commands.
  • Workflow Standardization: Ensures consistent handling of frontend assets across development, production, and testing environments.
  • Use Case: When starting a new Litestar project or troubleshooting frontend issues, use litestar assets serve for the development server and litestar assets build for production builds.

Quick Start

Use the litestar assets CLI to start the development server for your Litestar project.

Frequently Asked Questions about litestar-assets-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage frontend assets in a Litestar project without using npm or Vite directly?

Use the `litestar assets` CLI to manage frontend assets in a Litestar project, replacing direct npm or Vite commands to keep Python and Vite synchronized during development and production builds.

What is the best way to build Litestar frontend assets for production?

The best way to build Litestar frontend assets for production is running the `litestar assets build` command, which standardizes the workflow and ensures Vite integration stays synchronized.

How do I start the Vite development server for a Litestar application?

Start the Vite development server for a Litestar application by executing the `litestar assets serve` command, which manages the integrated dev server workflow without requiring direct Vite calls.

Can I generate TypeScript types from my Litestar backend routes?

Yes, you can generate TypeScript types from Litestar backend routes using the `litestar assets generate-types` command, which synchronizes Python backend definitions with frontend type definitions.

Why does my Litestar Vite integration layer need validation, and how do I check it?

Validate your Litestar Vite integration layer to ensure proper synchronization by running the `litestar assets doctor` or `litestar assets status` diagnostic commands to identify and troubleshoot frontend issues.

Do I need npm installed to use the litestar assets CLI for frontend development?

The litestar assets CLI wraps and replaces direct npm commands to standardize Litestar asset operations, but the underlying Vite integration still requires a functional Node.js environment for dependency resolution.