Export-PokeAPIModuleSettings
SYNOPSIS
Exports the PokeAPI BaseURI configuration information to file.
SYNTAX
Set (Default)
Export-PokeAPIModuleSettings [-PokeAPIConfigPath <string>] [-PokeAPIConfigFile <string>] [-WhatIf]
[-Confirm]
ALIASES
This cmdlet has the following aliases,
- Export-PokeModuleSettings
DESCRIPTION
The Export-PokeAPIModuleSettings cmdlet exports the PokeAPI BaseURI information to file.
EXAMPLES
EXAMPLE 1
Export-PokeAPIModuleSettings
Validates that the BaseURI is set then exports their values to the current user’s PokeAPI configuration file located at: $env:USERPROFILE\PokeAPI\config.psd1
EXAMPLE 2
Export-PokeAPIModuleSettings -PokeAPIConfigPath C:\PokeAPI -PokeAPIConfigFile MyConfig.psd1
Validates that the BaseURI is set then exports their values to the current user’s PokeAPI configuration file located at: C:\PokeAPI\MyConfig.psd1
PARAMETERS
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- cf
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-PokeAPIConfigFile
Define the name of the PokeAPI configuration file.
By default the configuration file is named: config.psd1
Type: System.String
DefaultValue: config.psd1
SupportsWildcards: false
Aliases:
- PokeConfFile
ParameterSets:
- Name: Set
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-PokeAPIConfigPath
Define the location to store the PokeAPI configuration file.
By default the configuration file is stored in the following location: $env:USERPROFILE\PokeAPI
Type: System.String
DefaultValue: $(Join-Path -Path $HOME -ChildPath $(if ($IsWindows -or $PSEdition -eq 'Desktop'){'PokeAPI'}else{'.PokeAPI'}) )
SupportsWildcards: false
Aliases:
- PokeConfPath
ParameterSets:
- Name: Set
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-WhatIf
Runs the command in a mode that only reports what would happen without performing the actions.
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- wi
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
NOTES
The Export-PokeModuleSettings alias is kept for older scripts.