Start-HarborWeb
Launches the local Harbor Onboard web UI – a zero-dependency HttpListener server (bound to 127.0.0.1 only) over the module’s functions.
Syntax
Section titled “Syntax”Start-HarborWeb [[-Port] <int>] [[-AllowedHostname] <string[]>] [[-ConfigProfile] <string>] [-NoBrowser] [-Https] [-Http] [-AllowRemote]Description
Section titled “Description”Serves the SPA from WebUI/wwwroot and dispatches /api/* to the module via Invoke-HarborApiRoute. No external modules. The OAuth secret is supplied in the browser (or via HARBOR_OAUTH_SECRET) and held only in module memory. Blocks until Ctrl-C, the window closes, or POST /api/_stop. The explicit 127.0.0.1 prefix normally needs no admin rights.
Phase 2: the edge itself – the Host/Origin guard, the CSRF token, the operator gate, role enforcement, cookie flags, the static sandbox, the CSP and the authenticated /api/_stop – lives ONCE in the vendored platform (Platform/Web/Start-HarborModuleWeb.ps1, canonical in harbor-platform). What stays here is only what genuinely differs between Harbor consoles; WHICH routes exist – and which are long-running, admin-only or destructive – is declared once in Private/Web/HarborRoutes.ps1.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Start-HarborWebExample 2
Section titled “Example 2”Start-HarborWeb -Port 9000 -NoBrowserParameters
Section titled “Parameters”-AllowedHostname
Section titled “-AllowedHostname”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String[] |
No | 1 | No |
Default: @().
-AllowRemote
Section titled “-AllowRemote”Opt-in bind beyond loopback (‘+’ prefix; needs a urlacl – see Install-HarborService). Default stays 127.0.0.1.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
-ConfigProfile
Section titled “-ConfigProfile”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 2 | No |
Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
-Https
Section titled “-Https”HTTPS is the default whenever a certificate is bound to the port (Initialize-HarborTls, elevated, once per machine – Install-HarborService does it too); without one the console falls back to plain http on loopback with a warning. -Https requires TLS (refuses to start without it); -Http serves plain http on purpose.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
-NoBrowser
Section titled “-NoBrowser”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
Int32 |
No | 0 | No |
Default: 8787.
This command also accepts the PowerShell common parameters (-Verbose, -ErrorAction, and so on).
See also
Section titled “See also”- All Harbor Onboard cmdlets
- In PowerShell:
Get-Help Start-HarborWeb -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
