Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/richardszalay/sitecore-commerce-configuration

Tools for configuring and boostrapping Sitecore Commerce Engine configuration
https://github.com/richardszalay/sitecore-commerce-configuration

Last synced: 24 days ago
JSON representation

Tools for configuring and boostrapping Sitecore Commerce Engine configuration

Awesome Lists containing this project

README

        

PowerShell Cmdlets (and later VSTS Tasks) for configuring and boostrapping Commerce Engine environment policy configuration files.

## PowerShell Cmdlets

```PowerShell

# Update a single policy
Set-SitecoreCommercePolicy -Path "path\to\policy.json" -PolicyType "Fully.Qualified, Type" `
-Properties @{ "Property1" = "Value1"; "Property2" = "Value2" }

# Use -Force to add a policy that may not exist
Set-SitecoreCommercePolicy -Path "path\to\policy.json" -PolicyType "Fully.Qualified, Type" `
-Properties @{ "Property1" = "Value1"; "Property2" = "Value2" } -Force

# Update multiple policies
Set-SitecoreCommercePolicy -Path "path\to\policy.json" -SourcePolicies @(
@{
'$type' = "Fully.Qualified.Type, Note.The.SingleQuotes.On.$type",
"Property1" = "Value1";
"Property2" = "Value2";
},
@{
'$type' = "Another.Type, Qualified",
"Etc" = "Etc"
}
)

```