Import-APITCGModuleSettings
SYNOPSIS
Imports the APITCG BaseURI, API key, & JSON configuration information to the current session
SYNTAX
Set (Default)
Import-APITCGModuleSettings [[-APITCGConfigPath] <string>] [[-APITCGConfigFile] <string>]
ALIASES
This cmdlet has the following aliases,
- None
DESCRIPTION
The Import-APITCGModuleSettings cmdlet imports the APITCG BaseURI, API key, & JSON configuration information stored in the APITCG configuration file to the users current session
By default the configuration file is stored in the following location: $env:USERPROFILE\Celerium.APITCG
The settings are applied in the following order, later values replace earlier values: 1. Defaults (the base URI https://api.apitcg.com, user agent, & JSON depth) 2. The configuration file 3. The APITCG_BASE_URI & APITCG_API_KEY environment variables
No API request is made when the settings are imported
EXAMPLES
EXAMPLE 1
Import-APITCGModuleSettings
Validates that the configuration file created with the Export-APITCGModuleSettings cmdlet exists then imports the stored data into the current users session
The default location of the APITCG configuration file is: $env:USERPROFILE\Celerium.APITCG\config.psd1
EXAMPLE 2
Import-APITCGModuleSettings -APITCGConfigPath C:\Celerium.APITCG -APITCGConfigFile MyConfig.psd1
Validates that the configuration file created with the Export-APITCGModuleSettings cmdlet exists then imports the stored data into the current users session
The location of the APITCG configuration file in this example is: C:\Celerium.APITCG\MyConfig.psd1
PARAMETERS
-APITCGConfigFile
Define the name of the APITCG configuration file
By default the configuration file is named: config.psd1
Type: System.String
DefaultValue: config.psd1
SupportsWildcards: false
Aliases:
- APITCGConfFile
ParameterSets:
- Name: (All)
Position: 1
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-APITCGConfigPath
Define the location to store the APITCG configuration file
By default the configuration file is stored in the following location: $env:USERPROFILE\Celerium.APITCG
Type: System.String
DefaultValue: $(Join-Path -Path $home -ChildPath $(if ($IsWindows -or $PSEdition -eq 'Desktop') {"Celerium.APITCG"}else{".Celerium.APITCG"}) )
SupportsWildcards: false
Aliases:
- APITCGConfPath
ParameterSets:
- Name: (All)
Position: 0
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
N/A