Skip to main content
Finds all modified asset files (via content hash comparison), then for each:
  • Existing asset (has an id in frontmatter) — creates a new version on the API and updates version and updated_at in the frontmatter.
  • New file (no id) — creates a brand-new asset, inferring the assetType from the directory name, and writes back id, type, title, version, created_at, and updated_at into the frontmatter.

Arguments

Options

Asset type inference

When pushing a new file (no id), the type is inferred from its parent directory:

Examples

See also