Crates.io | blogr-cli |
lib.rs | blogr-cli |
version | 0.3.0 |
created_at | 2025-09-20 14:36:45.98574+00 |
updated_at | 2025-09-25 14:55:59.258433+00 |
description | A CLI static site generator for blogs |
homepage | |
repository | https://github.com/bahdotsh/blogr |
max_upload_size | |
id | 1847827 |
size | 683,883 |
A modern, fast, and developer-friendly static site generator specifically designed for blogs.
Blogr CLI is the command-line interface for the Blogr static site generator. It provides a complete toolkit for creating, managing, and deploying blog sites with ease. Built in Rust for performance and reliability.
cargo install blogr-cli
git clone https://github.com/bahdotsh/blogr.git
cd blogr
cargo install --path blogr-cli
blogr init my-blog
cd my-blog
blogr new "My First Post"
blogr serve
Your blog will be available at http://localhost:3000
blogr build
blogr init [name]
- Initialize a new blog projectblogr new <title>
- Create a new blog postblogr build
- Build the static siteblogr serve
- Start development server with live reloadblogr deploy
- Deploy to configured hostingblogr list
- List all postsblogr edit <slug>
- Edit an existing postblogr delete <slug>
- Delete a postblogr config
- Interactive configuration editor (TUI)blogr theme list
- List available themesblogr theme set <name>
- Change themeblogr project info
- Show project informationblogr project clean
- Clean build artifactsBlogr uses a blogr.toml
configuration file in your project root:
[blog]
title = "My Blog"
description = "A blog about my thoughts"
author = "Your Name"
base_url = "https://yourblog.com"
[theme]
name = "minimal_retro"
[build]
output_dir = "dist"
[github]
username = "yourusername"
repository = "yourblog"
Blogr comes with built-in themes:
Each theme can be customized through the [theme.config]
section:
[theme.config]
color_mode = "auto" # auto, light, dark
accent_color = "#7c3aed"
my-blog/
├── blogr.toml # Configuration
├── content/ # Blog posts
│ └── posts/
│ └── my-post.md
├── static/ # Static assets
│ ├── images/
│ └── css/
└── dist/ # Generated site
Blogr supports enhanced Markdown with:
---
title: "My Post Title"
date: 2024-01-15
author: "Your Name"
description: "Post description for SEO"
tags: ["rust", "web", "blogging"]
draft: false
---
Your content here...
The development server includes:
blogr serve --port 3000 --host 0.0.0.0
# Configure GitHub Pages
blogr config github.username yourusername
blogr config github.repository yourblog
# Deploy
blogr deploy
Build your site and upload the dist/
folder to your web server:
blogr build
# Upload dist/ folder to your hosting provider
Blogr includes an interactive terminal interface for configuration:
blogr config
The TUI provides:
We welcome contributions! Please see the main CONTRIBUTING.md for guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ by bahdotsh