| external help file | StreamXRef-help.xml |
|---|---|
| Module Name | StreamXRef |
| online version | https://github.com/awsr/PS-StreamXRef/blob/master/docs/Export-XRefData.md |
| schema | 2.0.0 |
Export the contents of the lookup data cache to a file.
Export-XRefData [-Path] <String> [-ExcludeApiKey] [-ExcludeClipMapping] [-Force] [-NoClobber] [-Compress]
[-WhatIf] [-Confirm] [<CommonParameters>]
The Export-XRefData cmdlet exports the contents of the lookup data cache as JSON to a specified file.
The files created by this cmdlet can be used with Import-XRefData.
PS > Export-XRefData -Path XRefData.json
This will export the contents of the lookup data cache to a file.
PS > Register-EngineEvent -SourceIdentifier XRefNewDataAdded -Action {Export-XRefData -Path /full/path/to/datacache.json}
Automatically export the data cache whenever new data is added.
Removes unnecessary whitespace from the JSON string. This results in smaller files at the expense of readability.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseExcludes the cached API key from the export.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: NoKey, EAK
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseExcludes the cached Clip to Username results from the export.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: NoMapping, ECM
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseForces cmdlet to run and overwrite read-only files.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalsePrevents overwriting an existing file.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies the path to the file where the JSON formatted data will be stored.
Type: String
Parameter Sets: (All)
Aliases: PSPath
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: FalsePrompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseShows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
You can pipeline a value for Path either as a string or by property name.