Create Aether CMS projects with no build configuration and seamless update capabilities.
npx create-aether-cms my-cms-site cd my-cms-site npm startThen open http://localhost:8080 to see your site.
When you're ready to deploy to production, create a static build with npm run build.
npx create-aether-cms my-cms-siteInstall a specific version, tag, or commit:
# Install specific version npx create-aether-cms my-blog --version v1.0.0 # Install specific git tag npx create-aether-cms my-blog --tag stable # Install specific commit npx create-aether-cms my-blog --hash abc1234 # Show all available options npx create-aether-cms --help# Using npm init npm init aether-cms my-cms-site # Using yarn create yarn create aether-cms my-cms-siteThis will create a directory called my-cms-site inside the current folder.
Inside that directory, it will generate the initial project structure and install the dependencies.
my-cms-site/ βββ README.md βββ node_modules/ βββ package.json βββ package-lock.json βββ .gitignore βββ .gitattributes # β NEW: Conflict-free updates βββ .env βββ index.js βββ core/ β βββ admin/ β βββ api/ β βββ lib/ β βββ routes/ β βββ utils/ βββ assets/ β βββ css/ β βββ js/ # β CONTAINS: New Update utilities βββ content/ βββ data/ β βββ settings.json # β Enhanced with update preferences βββ themes/ βββ uploads/No configuration or complicated folder structures. Just the files you need to build your site.
- Node.js 18.0.0 or later
- npm 8.6.0 or later
- Git (for version targeting and updates)
- macOS, Windows, and Linux are supported
Using create-aether-cms offers several key benefits:
- Direct Code Access: All CMS code is directly in your project directory (not in node_modules)
- Easier Customization: Modify any file without ejecting or complex overrides
- Seamless Updates: Automated conflict-free updates with your customizations preserved
- Version Control: Install any specific version, tag, or commit
- Complete Application: Creates a fully functional project in one command
- Modern Defaults: Follows modern JavaScript practices with ESM support
When you run create-aether-cms, it:
- Clones the Repository: Downloads the complete Aether CMS codebase
- Version Targeting: Switches to your specified version (if provided)
- Git Configuration: Sets up remotes and conflict-free update system:
upstreampoints to the original Aether CMS repo (for updates)origincan be set to your own repository (optional)
- Project Customization: Updates package.json with your project details
- Update System: Creates helper scripts and configuration for seamless updates
- Dependency Installation: Installs all required npm packages
- Initialization Commit: Creates a commit marking your project start
Your project includes a powerful update system that preserves your customizations while applying upstream improvements.
# Using npm script (recommended) npm run check-updates # Using CLI directly node assets/js/check-updates.js # Using git directly git fetch upstream git log HEAD..upstream/main --oneline # See what's new# Automated update (preserves your settings) npm run update-aether # Manual git approach git merge upstream/main # Or apply specific updates git cherry-pick <commit-hash>If you've customized core files, you may encounter merge conflicts:
# After running git merge upstream/main # Edit files to resolve conflicts, then: git add . git commit -m "Resolve merge conflicts"Note: The upstream remote is automatically configured during project creation, so you don't need to add it manually.
If for some reason the upstream remote is missing, you can add it:
# Check existing remotes git remote -v # Add upstream if it doesn't exist git remote add upstream https://github.com/LebCit/aether-cms.gitThe update system automatically preserves your customizations:
β Always Protected:
- Your project name and version
- Environment variables (
.env) - Content and uploads (
/content/) - Custom settings (
settings.json) - Git ignore rules (
.gitignore)
β Intelligently Merged:
- New features and bug fixes
- Security updates
- Performance improvements
- New dependencies
- Core files you've modified (will show merge conflicts)
- Changes to the default theme
| Option | Description | Example |
|---|---|---|
--version | Install specific version tag | --version v1.2.0 |
--tag | Install specific git tag | --tag stable |
--hash | Install specific commit | --hash abc1234 |
Each installation stores metadata for better update management:
{ "aetherCMS": { "templateName": "aether-cms", "installedVersion": "v1.0.0", "installedAt": "2025-01-15T10:30:00.000Z", "installOptions": { "version": "v1.0.0", "tag": null, "hash": null } } }During installation, you can optionally connect to your own Git repository:
# During installation, when prompted: # "Connect to your own Git repository? (y/n): y" # "Repository URL: https://github.com/YOUR_USERNAME/your-project.git" # Or add it later: git remote add origin https://github.com/YOUR_USERNAME/your-project.git git push -u origin mainThe installer automatically configures Git for optimal update handling:
- Conflict Resolution: Uses
.gitattributesto prevent conflicts on user files - Remote Management: Properly configured upstream for updates
- Branch Strategy: Creates a clean main branch for your project
# Basic usage npx create-aether-cms <project-name> [options] # Options --version, -v <version> Install specific version (e.g., v1.2.0) --tag, -t <tag> Install specific git tag (e.g., stable) --hash, --commit <hash> Install specific commit hash --help, -h Show help message # Examples npx create-aether-cms my-blog npx create-aether-cms my-blog --version v1.0.0 npx create-aether-cms my-blog --tag stable npx create-aether-cms my-blog --hash abc1234If updates fail, the system automatically creates a backup:
# Check available branches git branch -a # Restore from backup if needed git checkout backup-[timestamp] git checkout main git reset --hard backup-[timestamp]# Reset to clean state git fetch upstream git reset --hard upstream/main # Restore your settings git checkout HEAD~1 -- .env package.json content/data/settings.json# Re-add upstream remote git remote add upstream https://github.com/LebCit/aether-cms.git git fetch upstreamFor maximum control, you can also fork the repository:
- Fork https://github.com/LebCit/aether-cms on GitHub
- Use create-aether-cms with your fork:
git clone https://github.com/YOUR_USERNAME/aether-cms.git my-site cd my-site git remote add upstream https://github.com/LebCit/aether-cms.git
Create Aether CMS is open source software licensed under the GNU General Public License version 3.0 or later (GPL-3.0-or-later).
See the LICENSE file for full license details.