Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
// To display all the parameters that come in the template mode by default. 
wum check-update --default-template
wum check-update wso2sp-4.3.0 --default-template

// To display the product list that has updates.
wum check-update  --template {{.ProductList}}

// To display the channel of the product that has updates.
wum check-update wso2sp-4.3.0 --template {{.Channel}}


// To define your own output.
wum check-update wso2sp-4.3.0 --template '{{.Channel}} has {{.AllUpdates}} number of updates'

wum update

Code Block
// To update the product via the default channel.
wum update wso2mb-3.2.0

// To update the product via the 'full' channel.
wum update wso2mb-3.2.0 full

// To update the product (via the default channel) with the updates available upto a given timestamp (epoch timestamp in milliseconds).
wum update wso2mb-3.2.0 -t 1543434669328 

// To update the product (via the 'full' channel) with the updates available upto a given timestamp (epoch timestamp in milliseconds).
wum update wso2mb-3.2.0 full -t 1543434669328

...

Code Block
// To display all the parameters that come in the template mode by default. 
wum update --default-template
wum update wso2sp-4.3.0 --default-template

// To display the product list that has updates.
wum update  --template {{.ProductList}}

// To display the number of updates that was done to a given product.
wum update wso2sp-4.3.0 --template {{.AllUpdates}}


// To define your own output.
wum update wso2sp-4.3.0 --template '{{.Channel}} has {{.AllUpdates}} number of updates'

wum diff

Code Block
// To get the updates between two packs.
wum diff <distribution-1.zip> <distribution-2.zip>

In the template mode, you can get a script-friendly output as follows. The template parameters of this command are Updates are Updates and Location.

Code Block
// To display all the parameters that come in the template mode by default.
wum diff <distribution-1.zip> <distribution-2.zip> --default-template

// To display the location of the ZIP file with the difference of the two distributions.
wum diff <distribution-1.zip> <distribution-2.zip> --template {{.Location}}


// To define your own output.
wum diff <distribution-1.zip> <distribution-2.zip> --template '{{.Location}} and {{.Updates}}'

wum version

Code Block
// To get the version of the wum-client
wum version

...

Code Block
// To display all the parameters that come in the template mode by default.
wum version --default template

// To get the version of the wum-client.
wum version --template {{.WumVersion}}


// To define your own output.
wum version --template '{{.WumVersion}} is released on {{.ReleaseDate}}'

wum describe

Code Block
// To describe all the products in wum-home.
wum describe  

// To describe wso2mb products in wum-home.
wum describe wso2mb

// To describe wso2mb-3.2.0 products in wum-home.
wum describe wso2mb-3.2.0

// To describe wso2mb products that are subscribed via the 'full' channel.
wum describe wso2mb full 

// To describe wso2mb-3.2.0 products that are subscribed via the 'full' channel.
wum describe wso2mb-3.2.0 full

// To describe a specified product in the repo.
wum describe <distribution-1.zip>

...

Code Block
// To display all the parameters that come in the template mode by default. In this case, it is just ProductList.
wum list wso2mb-3.2.0 --default-template

// To display a selected parameter in the output.
wum list wso2mb-3.2.0 --template {{.ProductList}}


// To define your own output.
list wso2mb-3.2.0 --template 'The product list is {{.ProductList}}'

wum delete

Code Block
// Prompt to delete all the products in wum-home.
wum delete
  
// Prompt to delete wso2mb products in wum-home.
wum delete wso2mb

// Prompt to delete wso2mb-3.2.0 products in wum-home.
wum delete wso2mb-3.2.0

// Prompt to delete wso2mb products that are subscribed via the 'full' channel.
wum delete wso2mb full

// Prompt to delete wso2mb-3.2.0 products that are subscribed via the 'full' channel.
wum delete wso2mb-3.2.0 full

// Prompt to delete a specified product in the repo.
wum delete <distribution-1.zip>

...