Skip to main content

New Profile

Used to create a new SLV profile or add an existing one from a git repository.

General Usage:

slv profile new [command]

Commands Available:

Creating a Git Based Profile

Use a remote git reposioty to maintain the profile.

Usage:

slv profile new git [flags] 

Flags:

FlagArgumentsRequiredDefaultDescription
--repoStringFalseNoneGit URI to clone the profile from
--branchStringFalsemainGit branch corresponding to the git URI
--tokenStringFalseNoneThe token to authenticate with the git repository over HTTP
--usernameStringFalseNoneThe username to authenticate with the git repository over HTTP
--nameStringTrueNAName of the profile (Scoped Locally)
--ssh-keyStringFalseNoneThe Path to private key to use for SSH
--read-onlyNoneNANASet profile as read-only
--sync-intervalDurationFalse1h0m0sProfile sync interval
--helpNoneNANAHelp text for slv profile new git

Example:

$ slv profile new git --name test --repo git@github.com:username/reponame.git
Created profile test from remote (git)

Creating a HTTP URL based Profile

  • Syncs the profile info with a remote HTTP URL
  • Much faster than Git based profiles

Usage:

slv profile new http [flags]

Flags:

FlagArgumentsRequiredDefaultDescription
--auth-headerStringFalseNoneThe header to be used for HTTP URLs protected by authentication
--nameStringTrueNAName of the profile (Scoped Locally)
--urlStringTrueNAThe HTTP base URL of the remote profile
--sync-intervalDurationFalse1h0m0sProfile sync interval
--helpNoneNANAHelp text for slv profile new http

Example:

$ slv profile new http -n test --url https://example.com/slvprofile/
Created profile test from remote (http)