< Back

Initialize-PasswordStateRepository

Sat Jan 18, 2020 6:39 pm

NAME Initialize-PasswordStateRepository



SYNOPSIS

Creates PasswordState configuration repository under $env:USERNAME\\.passwordstate





SYNTAX

Initialize-PasswordStateRepository [-ApiEndpoint] <String> [[-CredentialRepository] <String>] [<CommonParameters>]





DESCRIPTION

Creates PasswordState configuration repository under $env:USERNAME\\.passwordstate and options.json file to store

default values used by other PasswordState cmdlets.





PARAMETERS

-ApiEndpoint <String>

The Uri of your PasswordState site. (i.e. https://passwordstate.local/api)



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-CredentialRepository <String>

Path to credential repository. Default is $env:USERPROFILE\\.passwordstate



Required? false

Position? 2

Default value (Join-Path -path $env:USERPROFILE -ChildPath '.passwordstate' -Verbose:$false)

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES









-------------------------- EXAMPLE 1 --------------------------



Initialize-PasswordStateRepository -ApiEndpoint 'https://passwordstate.local/api'



Initialize the PasswordState repository with default value of 'https://passwordstate.local/api' for endpoint.

-------------------------- EXAMPLE 2 --------------------------



Initialize-PasswordStateRepository -ApiEndpoint 'https://passwordstate.local/api' -ConfigurationRepository

'C:\\PasswordStateCreds'



Initialize the PasswordState repository with default value of 'https://passwordstate.local/api' for endpoint and

'C:\\PasswordStateCreds' for the repository location.



RELATED LINKS