Skip to main content

Files

The file store holds assets attached to a project — images, logos, and other uploaded or resolved files.

Files can enter the store in three ways:

  • Uploaded manually via the Files tab or CLI
  • Resolved from a keyword (img: <- coffee) — Micropage fetches a match from Unsplash
  • Downloaded from a URL (img: <- https://...) — Micropage downloads and stores the file

For full details on how images are referenced in markup, see Images.

Using the Web App​

  1. Open the Files tab in the editor.
  2. Click Upload and select a file.
  3. Reference it in markup using img: <- filename.

Files resolved from keywords or URLs during a build are also stored here automatically.

Using the CLI​

List files in a project:

micropage files list

Get the public URL for a file:

micropage files url hero.png

Notes​

  • Files are scoped to a project.
  • Filenames are case-sensitive.
  • Deleting a file that is referenced in markup will cause a broken image after the next build.