CLI
The Notefig CLI converts markdown files into static websites. It handles building, theming, and deployment.
Installation
npm install -g notefigOr use npx without installing:
npx notefig <command>Commands
init: Create a new project
notefig initwatch: Start development server
notefig watchbuild: Generate static site
notefig buildpublish: Deploy to hosting platform
notefig publish vercel
notefig publish netlify
notefig publish s3Configuration
The CLI reads .metristsrc for settings:
{
"theme": "default",
"output": "dist",
"title": "My Book"
}CI/CD Integration
The CLI works in any CI environment. Example GitHub Actions workflow:
- name: Build book
run: npx notefig build
- name: Deploy
run: npx notefig publish vercelGlobal Options
--config <path>: Specify config file location--theme <name>: Override theme--output <dir>: Override output directory--verbose: Detailed logging