| title | Install |
|---|---|
| description | Install an extension into a running Fleetbase instance using `flb install`. |
Install a Fleetbase extension into a running self-hosted Fleetbase instance. The CLI looks up the npm and Composer package names for the extension and runs both pnpm install (in console/) and composer require (in api/).
flb install <packageName>The package name can be either:
- A slug in the form
fleetbase/<slug>(e.g.fleetbase/storefront) - An extension ID (e.g.
ext_a1b2c3d4)
Both forms come from flb search.
| Option | Description |
|---|---|
[packageName] |
Slug or ID of the extension to install |
-p, --path <path> |
Path to the Fleetbase instance (default: current directory) |
cd /path/to/fleetbase
flb install fleetbase/storefrontflb install fleetbase/storefront --path /path/to/fleetbaseflb install ext_a1b2c3d4 --path /path/to/fleetbaseAfter install completes you need to restart your containers so the new code is loaded:
docker compose restart…and run any pending migrations the extension ships:
docker compose exec application php artisan migrateSome extensions also need a settings/seeding step — check the extension's docs.
For public free extensions, no auth is needed.
For paid or private extensions, you need a registry token configured on the instance via flb set-auth before installing. Without it, both pnpm install and composer require fail with a 401 from the registry.
--path accepts a ~-prefixed home directory shortcut (e.g. --path ~/projects/fleetbase). It's resolved to an absolute path before checking for console/ and api/.
Invalid Fleetbase instance path: … — the --path (or current directory) doesn't contain both console/ and api/. Pass the correct path.
Invalid package data received from registry — the registry returned malformed data for that package name. Verify the slug or ID via flb search.
Installation failed: … — the underlying pnpm install or composer require failed. Check the printed error for missing dependencies or auth issues.