Skip to main content

Builds & publish

These commands apply to the current local project (directory with .micropage/).

push​

Merge local .page files and save the result as a draft build. Does not deploy the site.

micropage push
OptionDescription
--strictExit with an error, without saving, when the parser reports errors or warnings. See Diagnostics.

publish​

Push local content and publish (build the site and deploy it live). micropage projects publish does the same.

micropage publish
OptionDescription
-w, --watchAfter triggering publish, stream build/deploy events until finished or failed
--strictExit with an error, without saving or publishing, when the parser reports errors or warnings

Diagnostics and --strict​

push, publish, projects publish and projects deploy print the parser's diagnostics to stderr, one per line, pointing at the .page file and line:

landing.page:56:1: warning: This image has no alt text. Write a short description before <- (img: Team photo <- team.jpg), or use alt: "" if the image is decorative. [missing-alt]
about.page:12:1: hint: buton: is not a tag, so this line is plain text. Did you mean button:? [unknown-tag]
suggested: button: Contact us -> /contact
Parser reported 1 warning, 1 hint.

The format is file:line:column: severity: message [code]. An indented suggested: line under a diagnostic is the full replacement for that line. A problem that belongs to no single line starts with micropage: instead of a location.

Diagnostics never stop a push or a publish. Add --strict to make the command exit with status 1 when there is at least one error or warning, before the build is saved or published (Build not saved: --strict found 1 warning.). Hints never fail it. Use it in CI:

cd my-site
micropage publish --strict

If the parser doesn't return diagnostics, --strict prints a note and the command carries on.

To see diagnostics without saving a build, or to apply the suggested fixes, use micropage check and micropage fix.

builds list​

List builds for the current project.

micropage builds list
OptionDescription
--jsonPrint JSON

builds redeploy​

Set the active build to a given version and republish without creating a new build row.

micropage builds redeploy
micropage builds redeploy 42

If you omit the version, the CLI uses interactive selection when available.

builds download​

Download a build archive (zip) to your machine. Zip download is a Pro feature (Pro and Pro+).

micropage builds download
micropage builds download 42
OptionDescription
-o, --output <file>Output file path