SubPointSolutions / MetaPack

A NuGet platform for packaging, delivering and deploying SharePoint customization with PnP/SPMeta2 support.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement metapack install command

SubPointSupport opened this issue · comments

MetaPack CLI should support 'install' command to install packages. Similar to NuGet, the following spec should be followed:

metapack install

  • [+] prerelease
  • [-] NonInteractive
  • [-] verbose
  • [-] debug
  • [+] url
  • [+] username
  • [+] userpassword
  • [+] spversion
  • [+] source
  • [+] id
  • [+] version

Examples:

Write-Host "Testing list command on local SharePoint" -fore green
.\metapack install --url 'http://dev13:31415' --source 'https://www.myget.org/F/subpointsolutions-ci/api/v2' --id 'SPMeta2.CI' --version '1.2016.1015.0557'

Write-Host "Testing list command on O365" -fore green
.\metapack install --url 'https://contoso.sharepoint.com/sites/intranet' --source 'https://www.myget.org/F/subpointsolutions-ci/api/v2' --id 'SPMeta2.CI' --version '1.2016.1015.0557' --username 'meme@meme' --userpassword 'meme' --spversion 'o365'