create-vlang-appone command · any stack
TemplatesExtensionsDocs
Get started
No results found.
Navigation
Home
Docs
Templates
Extensions
Docs
Docs — Introduction
Docs — Installation
Docs — AGENTS.md
Docs — Templates
Docs — Template Customization
Docs — Extensions
Docs — Contributing
Docs — Advanced Usage
System
Enable Performance Mode
Press Esc to close
Ctrl+K
7 templates·6 extensions·9 categories·MIT licensed·V-native
create-vlang-app

One command. Any stack. Compose templates and extensions into production-ready V apps.

© 2026 Create Vlang App.

Resources

TemplatesExtensionsDocumentationContributing GuideChangelog

Community

GitHub OrganizationVPM ModuleReport an issueRequest a feature

Ecosystem

V languagelivePythonbetaNode.jssibling

Documentation

Back to home

Getting Started

IntroductionInstallationAGENTS.mdNEW

Templates

OverviewCustomization

Extensions

Overview

Contributing & Reference

ContributingAdvanced Usage
View on GitHub
  1. Docs
  2. Advanced
  3. Usage

Advanced Usage

Flags, catalog cache, and environment variables for create-vlang-app

Working with V in Generated Projects

Every CVA template is V-native: dependencies live in v.mod, formatting uses v fmt, static checks use v vet, and tests run with v test.

# Scaffold (v install runs unless --no-install)
create-vlang-app my-app --template web-server

# Refresh module deps later
cd my-app
v install
Skip automatic install
Use --no-install when scaffolding if you want to review v.mod before running v install yourself.

CLI flags

FlagDescription
-v, --verbosePrint additional logs
-i, --infoPrint environment debug info
--no-installSkip v install after scaffolding
-t, --template <slug>Template from cva-templates
--addons / --extendExtensions to merge into the project
-f, --forceOverwrite non-empty target directory
--interactive / --no-interactivePrompt for options or run headless
--list-templates / --list-addonsPrint catalog entries
--set key=valueOverride template variables
--keep-on-failurePreserve partial output on error
--strict-versionRequire exact CLI/catalog versions (see CVA_STRICT_VERSION)
--offlineDo not reach network for catalog refresh
--no-cacheBypass ~/.cache/cva (see CVA_NO_CATALOG_CACHE)
--cache-dirOverride catalog cache location
--pin <ref>Pin cva-templates git ref
--refresh always|stale|manualCatalog refresh policy (CVA_REFRESH)

Catalog cache

The CLI caches Create-Vlang-App/cva-templates under ~/.cache/cva by default. Manage it with subcommands:

create-vlang-app cache dir
create-vlang-app cache list
create-vlang-app cache clean
create-vlang-app cache verify
create-vlang-app cache outdated
create-vlang-app cache update
create-vlang-app cache doctor

Environment variables

  • CVA_CACHE_DIR — catalog cache path (default ~/.cache/cva)
  • CVA_STRICT_VERSION — fail when CLI and catalog versions mismatch
  • CVA_NO_CATALOG_CACHE — disable catalog caching
  • CVA_REFRESH — always, stale, or manual
  • CVA_SKIP_GIT — skip git init after scaffolding

CI/CD Integration

Use the github-setup extension for workflows powered by vlang/setup-v:

create-vlang-app my-app --template web-server --addons github-setup --no-interactive

Deployment Workflow

Troubleshooting

Catalog or module issues

  • Run create-vlang-app cache doctor to validate cache integrity
  • Set CVA_REFRESH=always to force-refresh cva-templates
  • Ensure ~/.vmodules is writable when running v install
Back to Documentation