Installing Packages

Install packages from ForgeBox, Git, a URL or a folder, then list and remove them.

On this page

In this lesson you will install packages with install, see where they land and how that is recorded in box.json, then list and remove them. Run these commands inside a folder that has a box.json.

From ForgeBox

ForgeBox is the default package registry. Give install a slug:

box install coldbox

Add @version to install a specific version:

box install coldbox@7.0.0

From other sources

install also accepts a Git repository, a URL, a zip file or a local folder:

box install git://site.com/user/repo.git
box install git://site.com/user/repo.git#v2.1.0
box install http://site.com/package.zip
box install C:/myUnzippedPackages/package/
box install myuser/myproject

The last form is a shortcut for a GitHub user and repository.

Saving dependencies

By default the package is saved to dependencies in box.json. Two flags change that:

box install cbdebugger --saveDev
box install feeds --!save

--saveDev records it under devDependencies, and --!save installs without recording anything. Running install with no slug installs everything already listed in box.json:

box install

Where packages go

The package lands in a folder named after its slug. Override the location for one package with installPaths in box.json:

box package set installPaths.logbox=../logbox/
box package show installPaths

List and uninstall

box list
box uninstall coldbox

Recap

  • install accepts a ForgeBox slug, Git URL, HTTP URL, zip or folder.
  • Dependencies are saved by default, --saveDev and --!save change that.
  • installPaths sets the folder, list shows what you have and uninstall removes it.
Edit this page Download Markdown Last updated Nov 30, 2026, 8:08:15 PM Report an issue
Lesson 4 of 15 - Learn CommandBox