Skip to content

uSync.Commands

Kevin Jump edited this page Oct 20, 2022 · 1 revision

The remote uSync commands give you the ability to run usync import/export and report actions remotely from the command line.

Common Parameters

option note
-set the 'handler set' to use for the operation (as defined in the config) the default is 'default' and is something you will probibly never need to change
-groups the 'groups' to use these are 'settings', 'content' and if you have additional uSync tools might include 'forms' and 'vendr' - default is 'all'
-folder the folder to run the command against, this usually is usync/v9 but you can change it here if you want to import/export to a diffrent location
-verbose return the verbose output (a json object with all the actions in it) vs a summary which is used when not verbose

uSync-Import

Runs an import command

usync run uSync-import -s https://my-server.com/umbraco -user [email protected] -pass somepassword 

if for example you wanted to import only settings from another location on disk

usync run uSync-import -p folder=uSync/CustomFolder groups=settings -s https://my-server.com/umbraco -user [email protected] -pass somepassword 

uSync-Export

usync run uSync-import -s https://my-server.com/umbraco -user [email protected] -pass somepassword 

uSync-Report

usync run uSync-import -s https://my-server.com/umbraco -user [email protected] -pass somepassword 
Clone this wiki locally