Skip to content

Initialize-HarborConfig

Harbor OnboardNo sign-in neededGenerated from the codeDescribes Onboard 0.59.0

First-run setup wizard. Captures tenant details and writes a gitignored environment.local.json so a new client install reaches “ready” without hand-editing JSON.

Terminal window
Initialize-HarborConfig [[-ProfileName] <string>] [[-TenantName] <string>] [[-TenantId] <string>] [[-PvwaUrl] <string>] [[-IdentityUrl] <string>] [[-OAuthClientId] <string>] [[-ManagingCpm] <string>] [[-ConfigPath] <string>] [[-SetDefault] <string>] [-NoPrompt] [-RunDoctor] [-WhatIf] [-Confirm]

Interactive by default (prompts for anything not supplied). Pass every value plus -NoPrompt for an unattended/scripted setup. Merges into an existing environment.local.json (adds/replaces just the named profile). Nothing secret is written – the OAuth secret is still supplied at runtime. Run Test-HarborSetup afterwards (or pass -RunDoctor).

Terminal window
Initialize-HarborConfig
Terminal window
Initialize-HarborConfig -ProfileName prod -TenantName contoso -TenantId ABC1234 `
-OAuthClientId svc@cyberark.cloud.NNNN -NoPrompt
Terminal window
# Self-hosted / non-standard URLs: pass them explicitly (overrides the tenant derivation)
Initialize-HarborConfig -PvwaUrl https://pvwa.corp/PasswordVault -IdentityUrl https://id.corp -OAuthClientId svc -NoPrompt

Not described in the module help.

Type Required Position Pipeline input
String No 7 No

Asks for confirmation before the command changes anything.

Type Required Position Pipeline input
SwitchParameter No Named No

Aliases: cf.

Advanced override (self-hosted / non-standard)

Type Required Position Pipeline input
String No 4 No

Not described in the module help.

Type Required Position Pipeline input
String No 6 No

Default: PasswordManager.

Not described in the module help.

Type Required Position Pipeline input
SwitchParameter No Named No

Advanced override

Type Required Position Pipeline input
String No 5 No

Not described in the module help.

Type Required Position Pipeline input
String No 0 No

Default: prod.

E.g. ‘ABC1234’ -> Identity URL

Type Required Position Pipeline input
String No 3 No

Not described in the module help.

Type Required Position Pipeline input
SwitchParameter No Named No

When does this profile become the suite DEFAULT (the profile a plain launch boots)? IfUnset (CLI default, as before: only when no default exists yet) / Always (the operator ticked “make this the default”) / Never (the console’s tenant save unless asked – it used to switch the suite’s default silently).

Type Required Position Pipeline input
String No 8 No

Accepted values: IfUnset, Always, Never. Default: IfUnset.

Subdomain, e.g. ‘contoso’ -> PVWA URL

Type Required Position Pipeline input
String No 2 No

Not described in the module help.

Type Required Position Pipeline input
String No 1 No

Shows what the command would do, without doing it.

Type Required Position Pipeline input
SwitchParameter No Named No

Aliases: wi.

This command also accepts the PowerShell common parameters (-Verbose, -ErrorAction, and so on).

Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.