Skip to main content

Module install

Module install 

Source
Expand description

memstead install — two accepted input shapes:

  • memstead install <path/to/file.mem> — local-file install.
  • memstead install <scope>/<name> — registry install. Downloads the archive from <registry>/api/mem/<scope>/<name>.mem into a tempfile, then funnels through the same mem_cache::install_read_mem helper the local path uses. No authentication required — registry downloads are public.

Both shapes:

  1. Copy (or re-validate) the archive into the global mem cache (<data_dir>/memstead/mems/<name>-<key>.mem) via the engine helper.
  2. Add a readMems entry to the target mem’s config.json if the name isn’t already declared. Local installs write source: { type: "local" }; registry installs write source: { type: "url", url: "<registry>/api/mem/..." }.

Structs§

Args
Install a sealed mem archive into the global mem cache and register it in the current project’s readMems. Archives with non-slug-form body wiki-links refuse with INVALID_WIKI_LINK_TARGET — convert via search-and-replace before installing.

Functions§

run