### Install PowerShell Scripts Source: https://context7.com/powershell/powershellget/llms.txt Demonstrates the installation of PowerShell scripts from a repository to the local system. ```powershell # Install a script for current user Install-Script -Name "Install-VSCode" -Scope CurrentUser ``` -------------------------------- ### Install PowerShell Scripts Source: https://context7.com/powershell/powershellget/llms.txt Demonstrates how to install scripts from the PowerShell Gallery or other repositories. Supports installing for all users, specific versions, prerelease versions, and accepting licenses. ```powershell # Install for all users Install-Script -Name "Get-WindowsAutoPilotInfo" -Scope AllUsers # Install specific version with license acceptance Install-Script -Name "PSWindowsUpdate" -RequiredVersion "2.2.0" -AcceptLicense # Install prerelease script Install-Script -Name "Test-Script" -AllowPrerelease # Install from specific repository Install-Script -Name "Deploy-App" -Repository "PSGallery" -PassThru ``` -------------------------------- ### Install-Module Source: https://context7.com/powershell/powershellget/llms.txt Downloads and installs PowerShell modules from a repository to the local system. ```APIDOC ## Install-Module ### Description Downloads and installs PowerShell modules from a repository to the local system with support for scope and dependency handling. ### Method PowerShell Cmdlet ### Parameters #### Query Parameters - **Name** (string) - Required - The name of the module to install. - **Scope** (string) - Optional - Installation scope (CurrentUser or AllUsers). - **RequiredVersion** (string) - Optional - Specific version to install. - **AllowClobber** (switch) - Optional - Overwrite existing commands. - **AcceptLicense** (switch) - Optional - Automatically accept license terms. ### Request Example Install-Module -Name "Az" -Scope CurrentUser ### Response #### Success Response - **PSModule** (Object) - Returns the installed module object if -PassThru is specified. ``` -------------------------------- ### Install PowerShell Modules Source: https://context7.com/powershell/powershellget/llms.txt Covers the installation of modules from repositories, including scope management, version constraints, and handling dependencies. ```powershell # Install a module for current user Install-Module -Name "Az" -Scope CurrentUser # Install for all users (requires admin) Install-Module -Name "SqlServer" -Scope AllUsers # Install specific version Install-Module -Name "Pester" -RequiredVersion "5.3.1" # Install with version range Install-Module -Name "PSReadLine" -MinimumVersion "2.2.0" -MaximumVersion "2.3.0" # Install prerelease version Install-Module -Name "Microsoft.Graph" -AllowPrerelease -Scope CurrentUser # Install and allow clobbering existing commands Install-Module -Name "Az.Accounts" -AllowClobber # Install with license acceptance Install-Module -Name "Az.Storage" -AcceptLicense # Install from specific repository with credentials $cred = Get-Credential Install-Module -Name "PrivateModule" -Repository "InternalRepo" -Credential $cred # Install and skip publisher check Install-Module -Name "UnsignedModule" -SkipPublisherCheck # Install and return the installed module object $module = Install-Module -Name "ImportExcel" -PassThru ``` -------------------------------- ### Module Lifecycle Commands Source: https://context7.com/powershell/powershellget/llms.txt Common commands for finding, installing, publishing, and updating PowerShell modules. ```APIDOC ## Module Lifecycle Operations ### Description Standard commands for managing module dependencies and distribution. ### Commands - **Find-Module (fimo)**: Searches for modules in registered repositories. - **Install-Module (inmo)**: Downloads and installs a module. - **Publish-Module (pumo)**: Uploads a module to a NuGet repository. - **Update-Module (upmo)**: Updates installed modules to the latest version. ### Example # Find a module fimo Az.Accounts # Install a module inmo Pester -Scope CurrentUser # Publish a module pumo -Path .\MyModule -NuGetApiKey "api-key" # Update a module upmo Az ``` -------------------------------- ### Get Installed PowerShell Modules Source: https://context7.com/powershell/powershellget/llms.txt Retrieves information about modules installed on the system. Supports filtering by name, minimum/required version, and including prerelease versions. ```powershell # Get all installed modules Get-InstalledModule # Get specific installed module Get-InstalledModule -Name "Az.Accounts" # Get installed module with version filter Get-InstalledModule -Name "Pester" -MinimumVersion "5.0.0" # Get specific version of installed module Get-InstalledModule -Name "PSReadLine" -RequiredVersion "2.2.6" # Get all installed versions of a module Get-InstalledModule -Name "Az" -AllVersions # Include prerelease versions in results Get-InstalledModule -Name "Microsoft.Graph" -AllowPrerelease ``` -------------------------------- ### Get Installed PowerShell Scripts Source: https://context7.com/powershell/powershellget/llms.txt Retrieves information about scripts installed on the system. Supports filtering by name, version ranges, and including prerelease scripts. ```powershell # Get all installed scripts Get-InstalledScript # Get specific installed script Get-InstalledScript -Name "Install-VSCode" # Get installed script with version constraints Get-InstalledScript -Name "MyScript" -MinimumVersion "1.0" -MaximumVersion "2.0" # Get specific version Get-InstalledScript -Name "Deploy-App" -RequiredVersion "1.5.0" # Include prerelease scripts Get-InstalledScript -Name "Test-Script" -AllowPrerelease ``` -------------------------------- ### Clone PowerShellGet Repository Source: https://github.com/powershell/powershellget/blob/master/README.md This command clones the PowerShellGet repository from GitHub. It requires Git to be installed on the system. This is the first step to obtaining the source code. ```powershell git clone https://github.com/PowerShell/PowerShellGet ``` -------------------------------- ### Register-PSRepository Cmdlet Source: https://context7.com/powershell/powershellget/llms.txt Registers a new PowerShell repository for module discovery and installation, with options for naming, source location, and trust level. ```APIDOC ## Register-PSRepository ### Description Registers a new PowerShell repository for module discovery and installation. ### Method Register-PSRepository ### Endpoint N/A (Cmdlet) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```powershell # Register PSGallery (default) Register-PSRepository -Default # Register custom NuGet repository Register-PSRepository -Name "InternalRepo" -SourceLocation "https://nuget.internal.com/v2" # Register as trusted repository Register-PSRepository -Name "TrustedRepo" -SourceLocation "https://trusted.com/nuget" -InstallationPolicy Trusted # Register with publish location Register-PSRepository -Name "PrivateGallery" ` -SourceLocation "https://private.com/nuget/v2" ` -PublishLocation "https://private.com/nuget/push" ``` ### Response #### Success Response (200) None (Cmdlet output) #### Response Example None ``` -------------------------------- ### Get-PSRepository Cmdlet Source: https://context7.com/powershell/powershellget/llms.txt Retrieves information about registered PowerShell repositories, with options to get all or specific repositories. ```APIDOC ## Get-PSRepository ### Description Returns information about registered PowerShell repositories. ### Method Get-PSRepository ### Endpoint N/A (Cmdlet) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```powershell # Get all registered repositories Get-PSRepository # Get specific repository Get-PSRepository -Name "PSGallery" # Get multiple repositories Get-PSRepository -Name "PSGallery", "InternalRepo" ``` ### Response #### Success Response (200) - **Name** (string) - The name of the repository. - **SourceLocation** (string) - The URL of the repository. - **PublishLocation** (string) - The URL for publishing to the repository. - **InstallationPolicy** (string) - The installation policy for the repository (e.g., Trusted, Untrusted). #### Response Example ```json [ { "Name": "PSGallery", "SourceLocation": "https://www.powershellgallery.com/api/v2", "PublishLocation": "https://www.powershellgallery.com/api/v2/ பொருட்களை", "IsTrusted": true } ] ``` ``` -------------------------------- ### Set-PSRepository Cmdlet Source: https://context7.com/powershell/powershellget/llms.txt Modifies settings for a registered PowerShell repository, such as installation policy or source location. ```APIDOC ## Set-PSRepository ### Description Modifies settings for a registered PowerShell repository. ### Method Set-PSRepository ### Endpoint N/A (Cmdlet) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```powershell # Set repository as trusted Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted # Set repository as untrusted Set-PSRepository -Name "InternalRepo" -InstallationPolicy Untrusted # Update source location Set-PSRepository -Name "PrivateRepo" -SourceLocation "https://new-location.com/nuget/v2" ``` ### Response #### Success Response (200) None (Cmdlet output) #### Response Example None ``` -------------------------------- ### Uninstall PowerShell Scripts Source: https://context7.com/powershell/powershellget/llms.txt Removes installed scripts from the system. Supports uninstalling by name, specific version, and prerelease versions. ```powershell # Uninstall a script Uninstall-Script -Name "Install-VSCode" # Uninstall specific version Uninstall-Script -Name "MyScript" -RequiredVersion "1.0.0" # Uninstall prerelease version Uninstall-Script -Name "Test-Script" -AllowPrerelease ``` -------------------------------- ### Save PowerShell Modules Source: https://context7.com/powershell/powershellget/llms.txt Downloads a module to a specified path without installing it, useful for offline deployment. Supports saving specific versions, version ranges, prerelease versions, from specific repositories, and using literal paths. ```powershell # Save module to specific path Save-Module -Name "Az.Accounts" -Path "C:\Modules" # Save specific version Save-Module -Name "Pester" -RequiredVersion "5.3.1" -Path "C:\Offline\Modules" # Save with version range Save-Module -Name "PSReadLine" -MinimumVersion "2.2.0" -MaximumVersion "2.3.0" -Path ".\Modules" # Save prerelease version Save-Module -Name "Microsoft.Graph" -AllowPrerelease -Path "C:\PreReleaseModules" # Save from specific repository with credentials $cred = Get-Credential Save-Module -Name "InternalModule" -Repository "PrivateRepo" -Path "C:\Modules" -Credential $cred # Save using literal path Save-Module -Name "ImportExcel" -LiteralPath "C:\My Modules\Exports" ``` -------------------------------- ### Save PowerShell Scripts Source: https://context7.com/powershell/powershellget/llms.txt Downloads a script to a specified path without installing it. Supports saving scripts by name, specific versions, and to a specified path. ```powershell # Save script to path Save-Script -Name "Install-VSCode" -Path "C:\Scripts" # Save specific version Save-Script -Name "PSWindowsUpdate" -RequiredVersion "2.2.0" -Path "C:\Offline\Scripts" ``` -------------------------------- ### Uninstall PowerShell Modules Source: https://context7.com/powershell/powershellget/llms.txt Removes installed modules from the system. Supports uninstalling by name, specific version, all versions, version ranges, and prerelease versions. ```powershell # Uninstall a module Uninstall-Module -Name "Az.Accounts" # Uninstall specific version Uninstall-Module -Name "Pester" -RequiredVersion "4.10.1" # Uninstall all versions of a module Uninstall-Module -Name "Az" -AllVersions # Uninstall with version range Uninstall-Module -Name "PSReadLine" -MinimumVersion "2.0.0" -MaximumVersion "2.2.0" # Uninstall prerelease version Uninstall-Module -Name "Microsoft.Graph" -AllowPrerelease ``` -------------------------------- ### Update PowerShell Modules Source: https://context7.com/powershell/powershellget/llms.txt Updates installed modules to the latest version available in the repository. Supports updating all modules, specific modules, to a maximum version, exact version, including prerelease, and for a specific scope. ```powershell # Update all modules Update-Module # Update specific module Update-Module -Name "Az" # Update to specific maximum version Update-Module -Name "Pester" -MaximumVersion "5.4.0" # Update to exact version Update-Module -Name "PSReadLine" -RequiredVersion "2.3.4" # Update including prerelease versions Update-Module -Name "Microsoft.Graph" -AllowPrerelease # Update for specific scope Update-Module -Name "ImportExcel" -Scope CurrentUser # Update with license acceptance Update-Module -Name "Az.Storage" -AcceptLicense # Update and return updated module $updated = Update-Module -Name "SqlServer" -PassThru ``` -------------------------------- ### Update PowerShell Scripts Source: https://context7.com/powershell/powershellget/llms.txt Updates installed scripts to the latest version from the repository. Supports updating all scripts, specific scripts, to a maximum version, and including prerelease versions. ```powershell # Update all scripts Update-Script # Update specific script Update-Script -Name "Install-VSCode" # Update to maximum version Update-Script -Name "PSWindowsUpdate" -MaximumVersion "3.0.0" # Update including prerelease Update-Script -Name "Test-Script" -AllowPrerelease # Update with license acceptance Update-Script -Name "Deploy-App" -AcceptLicense -PassThru ``` -------------------------------- ### Find DSC Resources Source: https://context7.com/powershell/powershellget/llms.txt Explains how to search for Desired State Configuration (DSC) resources across registered repositories. ```powershell # Find a DSC resource by name Find-DscResource -Name "xWebsite" # Find DSC resources with prerelease versions Find-DscResource -Name "SqlServer*" -AllowPrerelease # Find DSC resources in specific repository Find-DscResource -Name "cChoco" -Repository "PSGallery" ``` -------------------------------- ### New-ScriptFileInfo Cmdlet Source: https://context7.com/powershell/powershellget/llms.txt Creates a new script file with the required metadata for publishing to a repository. ```APIDOC ## New-ScriptFileInfo ### Description Creates a new script file with the required metadata for publishing to a repository. ### Method New-ScriptFileInfo ### Endpoint N/A (Cmdlet) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```powershell # Create new script file with required metadata New-ScriptFileInfo -Path ".\MyScript.ps1" ` -Description "A script that performs automated deployment" ` -Author "John Doe" # Create with full metadata New-ScriptFileInfo -Path "C:\\Scripts\\Deploy-Application.ps1" ` -Description "Deploys application to target servers" ` -Author "DevOps Team" ` -Version "1.0.0" ` -Guid ([guid]::NewGuid()) ` -CompanyName "Contoso" ` -Copyright "(c) 2024 Contoso. All rights reserved." ` -Tags @("Deployment", "Automation", "DevOps") ` -ProjectUri "https://github.com/contoso/deploy-app" ` -LicenseUri "https://github.com/contoso/deploy-app/LICENSE" ` -ReleaseNotes @("Initial release", "Added error handling") ` -RequiredModules @("Az.Accounts", "Az.Compute") ``` ### Response #### Success Response (200) None (Cmdlet output) #### Response Example None ``` -------------------------------- ### Import PowerShellGet Module Source: https://github.com/powershell/powershellget/blob/master/README.md This command imports the PowerShellGet module from the source directory. The '-Force' parameter ensures that any existing version of the module is overwritten. This makes the module's cmdlets available for use. ```powershell Import-Module src/PowerShellGet -Force ``` -------------------------------- ### Find PowerShell Modules Source: https://context7.com/powershell/powershellget/llms.txt Demonstrates how to search for PowerShell modules in registered repositories using various filters like name, version, and repository source. ```powershell # Find a module by name Find-Module -Name "Az.Accounts" # Find modules with version constraints Find-Module -Name "Pester" -MinimumVersion "5.0.0" -MaximumVersion "5.5.0" # Find a specific required version Find-Module -Name "PSReadLine" -RequiredVersion "2.2.6" # Find all versions of a module including prereleases Find-Module -Name "Az.Storage" -AllVersions -AllowPrerelease # Find modules in a specific repository Find-Module -Name "dbatools" -Repository "PSGallery" # Find modules with credentials for private repositories $cred = Get-Credential Find-Module -Name "InternalModule" -Repository "PrivateRepo" -Credential $cred ``` -------------------------------- ### Save PowerShell Scripts Source: https://context7.com/powershell/powershellget/llms.txt Demonstrates how to download scripts from a repository to a local path. Supports prerelease versions and specific repository targeting. ```powershell Save-Script -Name "Test-Script" -AllowPrerelease -Path ".\Scripts" Save-Script -Name "Deploy-App" -Repository "PSGallery" -Path "C:\Deployment" ``` -------------------------------- ### Publish Modules and Scripts Source: https://context7.com/powershell/powershellget/llms.txt Commands to upload modules and scripts to NuGet-based repositories. Requires an API key and optional repository or credential parameters. ```powershell Publish-Module -Path "C:\MyModules\MyModule" -NuGetApiKey "your-api-key" Publish-Script -Path ".\Deploy-App.ps1" -Repository "PrivateGallery" -NuGetApiKey "api-key" ``` -------------------------------- ### Find PowerShell Commands Source: https://context7.com/powershell/powershellget/llms.txt Illustrates how to discover which modules contain specific commands or patterns within registered repositories. ```powershell # Find modules containing a specific command Find-Command -Name "Get-AzVM" # Find commands matching a pattern with prerelease modules Find-Command -Name "Invoke-*" -AllowPrerelease # Find commands in a specific repository Find-Command -Name "Test-Connection" -Repository "PSGallery" ``` -------------------------------- ### Navigate to PowerShellGet Directory Source: https://github.com/powershell/powershellget/blob/master/README.md After cloning the repository, this command changes the current directory to the root of the cloned PowerShellGet project. This is necessary to access the module files. ```powershell cd path/to/PowerShellGet ``` -------------------------------- ### PowerShell Command Aliases for Module Management Source: https://context7.com/powershell/powershellget/llms.txt This section showcases command aliases provided by PowerShellGet v3 for common module management tasks, enhancing productivity in interactive sessions. Aliases include Find-Module (fimo), Install-Module (inmo), Publish-Module (pumo), and Update-Module (upmo). ```powershell # fimo - alias for Find-Module fimo Az.Accounts ``` ```powershell # inmo - alias for Install-Module inmo Pester -Scope CurrentUser ``` ```powershell # pumo - alias for Publish-Module pumo -Path .\MyModule -NuGetApiKey "api-key" ``` ```powershell # upmo - alias for Update-Module upmo Az ``` -------------------------------- ### Find PowerShell Scripts Source: https://context7.com/powershell/powershellget/llms.txt Shows how to search for scripts in registered repositories, supporting version filtering and prerelease inclusion. ```powershell # Find a script by name Find-Script -Name "Install-VSCode" # Find scripts with version range Find-Script -Name "Get-WindowsAutoPilotInfo" -MinimumVersion "1.0" -MaximumVersion "3.0" # Find all versions of a script Find-Script -Name "PSWindowsUpdate" -AllVersions # Find prerelease scripts Find-Script -Name "MyScript" -AllowPrerelease # Find scripts in specific repository with dependencies Find-Script -Name "Deploy-Application" -Repository "PSGallery" -IncludeDependencies ``` -------------------------------- ### Manage PowerShell Repositories Source: https://context7.com/powershell/powershellget/llms.txt Operations for registering, modifying, listing, and removing PowerShell repositories. Essential for configuring custom NuGet sources. ```powershell Register-PSRepository -Name "InternalRepo" -SourceLocation "https://nuget.internal.com/v2" Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted Get-PSRepository -Name "PSGallery" Unregister-PSRepository -Name "InternalRepo" ``` -------------------------------- ### Publish-Module Cmdlet Source: https://context7.com/powershell/powershellget/llms.txt Publishes a module to a NuGet-based repository, requiring a path to the module and authentication. ```APIDOC ## Publish-Module ### Description Publishes a module to a NuGet-based repository like the PowerShell Gallery. ### Method Publish-Module ### Endpoint N/A (Cmdlet) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```powershell # Publish module from path with API key Publish-Module -Path "C:\\MyModules\\MyModule" -NuGetApiKey "your-api-key" # Publish to specific repository Publish-Module -Path ".\MyModule" -Repository "PrivateGallery" -NuGetApiKey "api-key" # Publish with credentials $cred = Get-Credential Publish-Module -Path "C:\\Modules\\InternalModule" -Repository "InternalRepo" -Credential $cred -NuGetApiKey "key" ``` ### Response #### Success Response (200) None (Cmdlet output) #### Response Example None ``` -------------------------------- ### Save-Script Cmdlet Source: https://context7.com/powershell/powershellget/llms.txt Saves scripts from a repository to a local path, with options to allow prerelease versions or specify a repository. ```APIDOC ## Save-Script ### Description Saves scripts from a repository to a local path. ### Method Save-Script ### Endpoint N/A (Cmdlet) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```powershell # Save prerelease script Save-Script -Name "Test-Script" -AllowPrerelease -Path ".\Scripts" # Save from specific repository Save-Script -Name "Deploy-App" -Repository "PSGallery" -Path "C:\\Deployment" ``` ### Response #### Success Response (200) None (Cmdlet output) #### Response Example None ``` -------------------------------- ### Publish-Script Cmdlet Source: https://context7.com/powershell/powershellget/llms.txt Publishes a script to a NuGet-based repository, requiring the script path and authentication. ```APIDOC ## Publish-Script ### Description Publishes a script to a NuGet-based repository. ### Method Publish-Script ### Endpoint N/A (Cmdlet) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```powershell # Publish script with API key Publish-Script -Path "C:\\Scripts\\MyScript.ps1" -NuGetApiKey "your-api-key" # Publish to specific repository Publish-Script -Path ".\Deploy-App.ps1" -Repository "PrivateGallery" -NuGetApiKey "api-key" # Publish using literal path Publish-Script -LiteralPath "C:\\My Scripts\\Install-Tool.ps1" -NuGetApiKey "key" ``` ### Response #### Success Response (200) None (Cmdlet output) #### Response Example None ``` -------------------------------- ### Find-Module Source: https://context7.com/powershell/powershellget/llms.txt Searches for PowerShell modules in registered repositories based on name, version, or tags. ```APIDOC ## Find-Module ### Description Searches for PowerShell modules in registered repositories by name, version, tags, or other criteria. ### Method PowerShell Cmdlet ### Parameters #### Query Parameters - **Name** (string) - Required - The name of the module to find. - **MinimumVersion** (string) - Optional - The minimum version to include. - **MaximumVersion** (string) - Optional - The maximum version to include. - **RequiredVersion** (string) - Optional - The exact version to find. - **Repository** (string) - Optional - The name of the registered repository. - **AllowPrerelease** (switch) - Optional - Include prerelease versions. ### Request Example Find-Module -Name "Az.Accounts" ### Response #### Success Response - **PSResource** (Object) - Returns a collection of module objects found in the repository. ``` -------------------------------- ### Update-ScriptFileInfo Cmdlet Source: https://context7.com/powershell/powershellget/llms.txt Updates the metadata in an existing script file, allowing modification of fields like version, author, and description. ```APIDOC ## Update-ScriptFileInfo ### Description Updates the metadata in an existing script file. ### Method Update-ScriptFileInfo ### Endpoint N/A (Cmdlet) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```powershell # Update script version Update-ScriptFileInfo -Path ".\MyScript.ps1" -Version "1.1.0" # Update multiple fields Update-ScriptFileInfo -Path "C:\\Scripts\\Deploy-App.ps1" ` -Version "2.0.0" ` -Author "DevOps Team" ` -Description "Updated deployment script with new features" ` -ReleaseNotes @("Added support for Azure", "Bug fixes") # Update tags and URIs Update-ScriptFileInfo -Path ".\MyScript.ps1" ` -Tags @("PowerShell", "Automation", "v2") ` -ProjectUri "https://github.com/user/project" ` -LicenseUri "https://opensource.org/licenses/MIT" ``` ### Response #### Success Response (200) None (Cmdlet output) #### Response Example None ``` -------------------------------- ### Update Module Manifest with PowerShell Source: https://context7.com/powershell/powershellget/llms.txt This snippet demonstrates how to update a PowerShell module manifest file (.psd1) with new version, author, description, tags, project URI, license URI, and release notes. It utilizes the Update-ModuleManifest cmdlet. ```powershell Update-ModuleManifest -Path "C:\Modules\MyModule\MyModule.psd1" ` -Version "2.0.0" ` -Author "Development Team" ` -Description "Updated module with new cmdlets" ` -Tags @("Automation", "Tools") ` -ProjectUri "https://github.com/org/mymodule" ` -LicenseUri "https://github.com/org/mymodule/LICENSE" ` -ReleaseNotes @("Added new cmdlets", "Performance improvements") ``` -------------------------------- ### Update-ModuleManifest Cmdlet Source: https://context7.com/powershell/powershellget/llms.txt Updates the metadata in an existing module manifest file (.psd1), commonly used for updating the module version. ```APIDOC ## Update-ModuleManifest ### Description Updates the metadata in an existing module manifest file. ### Method Update-ModuleManifest ### Endpoint N/A (Cmdlet) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```powershell # Update module version Update-ModuleManifest -Path ".\MyModule\\MyModule.psd1" -Version "1.1.0" ``` ### Response #### Success Response (200) None (Cmdlet output) #### Response Example None ``` -------------------------------- ### Manage Script Metadata Source: https://context7.com/powershell/powershellget/llms.txt Tools for creating, validating, and updating metadata in PowerShell script files. Ensures scripts are properly documented for repository publishing. ```powershell New-ScriptFileInfo -Path ".\MyScript.ps1" -Description "Automated deployment" -Author "John Doe" Test-ScriptFileInfo -Path ".\MyScript.ps1" Update-ScriptFileInfo -Path ".\MyScript.ps1" -Version "1.1.0" ``` -------------------------------- ### Update Module Manifest Source: https://context7.com/powershell/powershellget/llms.txt Updates metadata fields within an existing .psd1 module manifest file. ```powershell Update-ModuleManifest -Path ".\MyModule\MyModule.psd1" -Version "1.1.0" ``` -------------------------------- ### Update-ModuleManifest Source: https://context7.com/powershell/powershellget/llms.txt Updates the metadata of a PowerShell module manifest file (.psd1). ```APIDOC ## Update-ModuleManifest ### Description Updates the metadata for an existing module manifest file, allowing for versioning, description updates, and tag management. ### Method PowerShell Cmdlet ### Parameters - **Path** (string) - Required - The file path to the .psd1 manifest file. - **Version** (string) - Optional - The new version number for the module. - **Author** (string) - Optional - The author of the module. - **Description** (string) - Optional - A brief description of the module. - **Tags** (string[]) - Optional - A list of tags for categorization. - **ProjectUri** (string) - Optional - The URL for the project repository. - **LicenseUri** (string) - Optional - The URL for the license file. - **ReleaseNotes** (string[]) - Optional - Notes regarding the current release. ### Request Example Update-ModuleManifest -Path "C:\Modules\MyModule\MyModule.psd1" -Version "2.0.0" -Author "Development Team" -Tags @("Automation", "Tools") ``` -------------------------------- ### Test-ScriptFileInfo Cmdlet Source: https://context7.com/powershell/powershellget/llms.txt Validates the metadata comment block in a script file. ```APIDOC ## Test-ScriptFileInfo ### Description Validates the metadata comment block in a script file. ### Method Test-ScriptFileInfo ### Endpoint N/A (Cmdlet) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```powershell # Test script file info Test-ScriptFileInfo -Path ".\MyScript.ps1" # Test using literal path Test-ScriptFileInfo -LiteralPath "C:\\My Scripts\\Deploy-App.ps1" ``` ### Response #### Success Response (200) None (Cmdlet output, typically boolean indicating validity) #### Response Example None ``` -------------------------------- ### Unregister-PSRepository Cmdlet Source: https://context7.com/powershell/powershellget/llms.txt Removes a registered PowerShell repository by its name. ```APIDOC ## Unregister-PSRepository ### Description Removes a registered PowerShell repository. ### Method Unregister-PSRepository ### Endpoint N/A (Cmdlet) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```powershell # Unregister a repository Unregister-PSRepository -Name "InternalRepo" # Unregister multiple repositories Unregister-PSRepository -Name "Repo1", "Repo2" ``` ### Response #### Success Response (200) None (Cmdlet output) #### Response Example None ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.