The module provides commands for the following scenarios:
-
Data persistence via PowerShell data (psd1) files:
ConvertTo-Psd
- Converts objects to psd1 strings.Import-Psd
- Imports objects from a psd1 file.
-
Updates of psd1 files preserving comments and structure:
Convert-PsdToXml
- Converts a psd1 string to PSD-XML.Convert-XmlToPsd
- Converts PSD-XML to a psd1 string.Export-PsdXml
- Exports PSD-XML to a psd1 file.Import-PsdXml
- Imports a psd1 file as PSD-XML.Get-Psd
- Gets node PowerShell data.Set-Psd
- Sets node PowerShell data.
For more details, see about_PsdKit.help.txt.
See also Examples:
- Build-Manifest.ps1 - Builds the module manifest automatically.
- StronglyTypedData.ps1 - Export/import using PowerShell classes.
- Update-PsdWebData.ps1 - Updates "web data islands" in psd1 files.
Install PsdKit from PSGallery:
Install-Module PsdKit
Import the module and get the conceptual help:
Import-Module PsdKit
help about_PsdKit
Get help for individual commands:
help ConvertTo-Psd -Full