CLI Quickstart
Get a site live from the command line.
If you prefer a browser-based flow, see the Web App Quickstart.
Install the CLI
npm install -g micropage
Login
micropage login
This will open your browser and authenticate your account.
Create a Project
micropage projects create mysite
This command will:
- create a project remotely
- initialize a local project folder
- create the
.micropageconfiguration directory
Edit Your Page
Open the generated page file (for example landing.page) and add content.
Example:
[site]
title: My Site
[Home -> /]
/// hero
h1: Hello world
p: My first Micropage site
Add an image (optional)
Add an img: line to any section. Use a keyword for a quick Unsplash image, a filename for an uploaded file, or a full URL:
/// section
img: <- coffee
See Images for all three forms.
Publish
micropage publish
Your site will now be deployed.
Open Your Site
micropage preview
This will open your live site in your browser.