mt packs
Fetch the pack sources .mindtape/packs.lock pins, or move the lock
Only mt packs touches the network, so a source the cache lacks stays refused until mt packs install fetches it, and a source the lock lacks until mt packs update locks it.
mt packs install fetches each pack source that .mindtape/packs.lock pins and your cache lacks. It refuses a lock that disagrees with [pack-sources], so a clone or a CI job gets the packs you reviewed. It writes only the cache, never your project. mt packs update sets each source’s lock entry to the commit its ref points to and rewrites the lock, the one file it writes.
mt packs install
Fetch each source the lock pins that the cache lacks
It refuses a lock that disagrees with [pack-sources], as npm ci does, so run it in CI or after a clone.
Runs on one project and refuses a set.
--json | Print JSON: each source's name, commit, sha256 and whether the run fetched it |
mt packs update
Lock each source at the commit its ref points to
It fetches each source whose commit moved, rewrites its lock entry, and drops the lock entries that name a source the project does not declare.
Runs on one project and refuses a set.
[SOURCES]… | The sources to update. Without one, it updates them all
|
Every command also takes the global flags.