en-US/about_spec.module.management.help.txt

TOPIC
    about_spec.module.management
 
SHORT DESCRIPTION
    Provides advanced functions for installing, importing, checking, and uninstalling PowerShell modules.
 
LONG DESCRIPTION
    This module streamlines PowerShell module management, offering the following key features:
 
    * Get-specModule:
    - Determines if specified modules are installed.
    - Optionally filters by version. Supports single names, arrays, and pipeline input.
 
    * Install-specModule:
        - Installs modules from the PowerShell Gallery or other registered repositories.
        - Manages installation for the current user or system-wide (if administrative permissions are available).
        - Automates license acceptance.
 
    * Import-specModule:
        - Imports modules and dynamically handles specific version requests.
        - Intelligently unloads mismatched versions to ensure correct loading.
 
    * Uninstall-specModule:
        - Uninstalls all versions of specified PowerShell modules.
        - Confirms actions to prevent accidental uninstallations.
 
EXAMPLES
    See the comment-based help within each function for detailed examples:
    Get-Help <function-name> -Examples
 
    # Installing then importing the modules
    $modules = @(
        [pscustomobject]@{moduleName = 'spec.base.utilities'; Version = '1.2.1' }
        [pscustomobject]@{moduleName = 'spec.azure.tables'; Version = '1.0.5' }
    )
 
    $modules | get-specmodule | ? { $_.isinstalled -eq $false } | Install-specModule -AcceptLicense
 
    $modules | Import-specModule
 
 
    # uninstall all versions of a module
    "spec.azure.tables","madeup2" | Uninstall-specModule
 
KEYWORDS
 
 
SEE ALSO