Moving the PowerShellGet.ps1 into Demos\PowerShellGet folder.

Moving the PowerShellGet.ps1 into Demos\PowerShellGet folder.
This commit is contained in:
Manikyam Bavandla committed 2016-07-26 15:54:31 -07:00
1 parent 52569380c7
commit 1a2c8a650c
4 files changed
+57 -96

No files matched your search

+52
View File
@@ -0,0 +1,52 @@
#region find, install, update, uninstall the PowerShell scripts from an online repository.
# Value: equivalent of pypi
# List of PowerShellGet commands
Get-Command -Module PowerShellGet
# Discover PowerShell Scripts
Find-Script
Find-Script -Name Start-Demo
# Save scripts to a specified location
Save-Script Start-Demo -Repository PSGallery -Path /tmp
Get-ChildItem -Path /tmp/Start-Demo.ps1
# Install a script to the common scripts location
Find-Script -Name Start-Demo -Repository PSGallery | Install-Script
Get-InstalledScript
# Install another script to show the update functionality
Install-Script Fabrikam-Script -RequiredVersion 1.0
Get-InstalledScript
Get-InstalledScript Fabrikam-Script | Format-List *
# Update the installed scripts
Update-Script -WhatIf
Update-Script
Get-InstalledScript
# Uninstall a script file
Uninstall-Script Fabrikam-Script -Verbose
#endregion
#region Using PowerShellGet find and install other demos
# Value: equivalent of pypi
# Look for all the modules we'll be demoing today
Find-Module -Tag 'PowerShellCore_Demo'
# Pipe this to Install-Module to install them
Find-Module -Tag 'PowerShellCore_Demo' | Install-Module -Verbose
Get-InstalledModule
# Look for all the scripts we'll be demoing today
Find-Script -Tag 'PowerShellCore_Demo'
# Pipe this to Install-Script to install them
Find-Script -Tag 'PowerShellCore_Demo' | Install-Script -Verbose
Get-InstalledScript
#endregion
+5
View File
@@ -0,0 +1,5 @@
## PowerShellGet demo
PowerShellGet is a PowerShell module with the commands for discovering, installing, updating and publishing the PowerShell artifacts like Modules, DSC Resources, Role Capabilities and Scripts.
This demo shows discovering, installing, updating, uninstalling the PowerShell scripts from an online repository.