Guides
Install and update packs
Add a pack to a project, keep it on the newest release and remove it.
Add a pack
Run dive pack add from the project's root:
dive pack add github✓ ./.dive/packs/github
note: installed github v1.0.0 from github/ in github.com/loon-rocks/packs (project layer, ref v1)Commit .dive/packs/github/, .dive/packs.lock and .dive/config.toml. The pack's tools are now in the catalog:
dive tool show github__tool__git_logTo install from your own repository, pass its URL and the pack's directory:
dive pack add github.com/acme/packs --path deploysSee what's installed
dive pack listgithub project v1.0.0 ref v1: v1.0.0 newest: v1.0.0Each row shows the layer, the installed release, the newest release the ref allows and the newest release overall. The list also flags local edits, packs shadowed by another layer and release tags that moved since you installed them.
Update
dive pack update✓ ok
note: github: up to date at v1.0.0Every pack moves to the newest release its ref allows. Name packs to update only those. A pack you edited is left alone unless you pass --force, which overwrites your edits.
Move to a new major release
dive pack update --major githubFor each newer major, Dive runs the pack's migration over your plans, agents and tools as a dry run, shows the changes and asks before applying them. It then moves the pack's ref to the new major. Pass --yes to accept every migration without asking, such as in CI.
Remove a pack
dive pack remove githubDive deletes the copy, its config entry and its packs.lock entry, and lists any of your files that still call the pack's items.