# urbestack-plugin-add

First published 29 Oct 2026 (release 0.2.19) · Unchanged since publication

UrbeStack release 0.2.35 command, run as root in the server shell.

## Usage

```
urbestack-plugin-add --manifest /path/to/manifest.json
```

## Description

Registers and enables a new plugin or updates an existing registration from its manifest. The plugin's installer runs this command as root. --manifest requires an absolute path to a JSON manifest. UrbeStack validates every field, rejects unknown fields, and refuses plugins that require a newer UrbeStack release.

On first registration, UrbeStack creates the plugin's API principal and writes its key to /etc/urbestack/plugins/<name>/key, with access restricted to the daemon's system user. An upgrade applies the manifest with the plugin in its current enabled state. For an enabled plugin, UrbeStack reuses the existing key and updates its API scopes to match the manifest. A change to the key's scopes revokes outstanding viewer tickets.

A customer page adds a switch to each package that lacks one and turns on each new switch. Removing the customer page removes its package switches.

UrbeStack updates nginx and the firewall to serve pages for enabled plugins on the port for plugin pages. If that port is unavailable when adding the first active plugin pages, registration is refused. Set plugins.port to a free port in Settings or run urbestack-setting-set --key plugins.port --value N.

## Command family: plugin

- [urbestack-plugin-catalog](https://urbestack.com/docs/commands/urbestack-plugin-catalog.md): Prints this server's cached catalog of plugins published on the license server.
- [urbestack-plugin-del](https://urbestack.com/docs/commands/urbestack-plugin-del.md): Removes a plugin's registration from this server.
- [urbestack-plugin-get](https://urbestack.com/docs/commands/urbestack-plugin-get.md): Fetches and installs a plugin from the license server this UrbeStack installation uses.
- [urbestack-plugin-key](https://urbestack.com/docs/commands/urbestack-plugin-key.md): Rotates the plugin daemon's API key and revokes the previous key immediately.
- [urbestack-plugin-list](https://urbestack.com/docs/commands/urbestack-plugin-list.md): Lists every registered plugin and the port for plugin pages.
- [urbestack-plugin-set](https://urbestack.com/docs/commands/urbestack-plugin-set.md): Enables or disables a registered plugin.
- [urbestack-plugin-ticket](https://urbestack.com/docs/commands/urbestack-plugin-ticket.md): Issues a one-hour ticket that the UrbeStack web interface passes to a plugin's page in a frame.
