Installation
Vault CMS is designed to be installed directly into your Astro project’s content directory. But it can work at the project’s root level, too.
Prerequisites
Section titled “Prerequisites”- Node.js 22.x
- Astro project (supports most themes)
- Obsidian
- Git
CLI Installation (Recommended)
Section titled “CLI Installation (Recommended)”The fastest way to install Vault CMS is using our dedicated CLI tool. Run this command in the root of your Astro project:
# Using pnpmpnpm create vaultcms
# Using npmnpm create vaultcms
# Using yarnyarn create vaultcmsInstallation Path
Section titled “Installation Path”When you run the command, it will ask you where to install the vault.
- Default:
src/content(Recommended for Astro projects) - Root: You can also install it in the root of your project if you prefer.
The CLI will automatically:
- Download the latest Vault CMS configuration.
- Extract the
_basesand.obsidianfolders. - Update your
.gitignorewith the recommended excludes.
Preset Templates
Section titled “Preset Templates”If you are using a specific Astro theme like Starlight, Slate, or Chiri, you can install a preconfigured preset:
# Using pnpmpnpm create vaultcms -- --template starlight
# Using npmnpm create vaultcms -- --template starlight
# Using yarnyarn create vaultcms --template starlightAvailable templates are listed in the Vault CMS Presets repository.
Manual Installation
Section titled “Manual Installation”If you prefer to install manually without the CLI:
- Download the latest release ZIP.
- Extract the contents.
- Copy the
_basesand.obsidianfolders into your Astro project (e.g.,src/content).
Post-Installation
Section titled “Post-Installation”Once installed, open and initialize with Obsidian:
- Open Obsidian and select Open folder as vault.
- Select the folder where you placed the
.obsidiandirectory. - The Vault CMS Plugin will automatically detect your Astro project.
- A setup wizard will guide you through configuring your content types and properties.
- You’re ready to start writing!