Skip to main content

Profile

Documentation for the slv profile command.

Aliases: profile, profiles

Commands Available:


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)

List Profiles

Shows all the SLV profiles available on local

General Usage:

slv profile list [flags]

Flags:

FlagArgumentsRequiredDefaultDescription
--helpNoneNANAHelp text for slv profile list

Usage:

slv profile list

Example:

$ slv profile list
my_org_slv_profile
my_local_slv_profile

The active profile is shown in a different color.


Set Active Profile

Set an already added SLV profile as the active profile.

General usage:

slv profile activate [flags]

Flags:

FlagArgumentsRequiredDefaultDescription
--nameStringTrueNAName of the profile to set
--helpNoneNANAHelp text for slv profile activate

Usage:

slv profile activate --name <SLV_PROFILE_NAME>

Example:

$ slv profile activate --name my_other_profile
Successfully set my_other_profile as active profile

Sync Profile with Remote

Sync the local cache of your profile with the remote profile (git/http). SLV automatically syncs periodically as specified by the --sync-interval flag. You can use this command to manually sync profiles.

General Usage:

slv profile sync [flags]

Flags:

FlagArgumentsRequiredDefaultDescription
--helpNoneNANAHelp text for slv profile sync

Usage:

slv profile sync

Example:

$ slv profile sync
Profile test is updated from remote successfully

Delete a profile

Deletes an existing profile. Note that you cannot delete the active profile.

General Usage:

slv profile rm [flags]

Flags:

FlagArgumentsRequiredDefaultDescription
--nameStringTrueNAName of the profile to delete
--helpNoneNANAHelp text for slv profile delete

Usage:

slv profile rm --name <PROFILE_NAME>

Example:

$ slv profile rm --name my_org
Deleted profile: my_org