--- sidebar_position: 8 --- # hub Manage skill hubs — saved hub sources for organization-wide skill discovery. ## When to Use - Set up your organization's skill catalog for `search` to query - Switch between multiple hubs (e.g., company-wide vs team-specific) - List or remove saved hub sources ## hub add Save a hub source to config for reuse in [`search --hub`](./search.md). ```bash skillshare hub add [options] ``` | Flag | Description | |------|-------------| | `--label`, `-l` | Custom label (default: derived from URL hostname) | | `--project`, `-p` | Save to project config | | `--global`, `-g` | Save to global config | The first hub added is automatically set as the default. Labels are case-insensitive. A hub URL can be an HTTP(S) URL, a local file path, or an SSH URL — scp-style (`git@host:org/repo.git`) or scheme-style (`ssh://git@host/org/repo.git`). For SSH sources the index file is read from the repo via the `//path` suffix, defaulting to `skillshare-hub.json` at the repo root. SSH sources are cloned using your SSH agent/keys, which works for private and GitHub Enterprise hosts. When an SSH hub contains same-host GitHub or GitHub Enterprise domain-prefixed entries, Skillshare installs them through the hub's SSH identity. For example, a hub added as `acme@acme.ghe.com:Org/skills.git//hubs/team.json` can contain `acme.ghe.com/Org/skills/skills/reviewer`, and search results install it as `acme@acme.ghe.com:Org/skills.git//skills/reviewer`. Outside an SSH hub, domain-prefixed sources still mean HTTPS. ```bash skillshare hub add https://internal.corp/hub.json --label team skillshare hub add ./local-hub.json # label derived: "local-hub" skillshare hub add git@ghe.corp.com:team/skills.git --label ghe skillshare hub add git@ghe.corp.com:team/skills.git//hubs/team.json --label ghe-team ``` ## hub list List saved hubs. `*` marks the default hub. ```bash skillshare hub list [options] ``` | Flag | Description | |------|-------------| | `--project`, `-p` | Show project hubs | | `--global`, `-g` | Show global hubs | ``` $ skillshare hub list * team https://internal.corp/hub.json local ./local-hub.json ``` Alias: `hub ls` ## hub remove Remove a saved hub by label. ```bash skillshare hub remove