Skip to content

Add -Force parameter to: Update-PSModuleManifest #1747

Open
@iRon7

Description

@iRon7

Summary of the new feature / enhancement

In case the manifest doesn't (yet) exist, I would like to be able to create it with a single command.
Currently the Update-PSModuleManifest generates an error if the manifest doesn't yet exist:

Update-PSModuleManifest: Cannot find path '.\Test.psd1' because it does not exist.

Rather than doing something like:

if (Test-Path .\Test.psd1) { Update-PSModuleManifest -Path .\Test.psd1 @Settings }
else { New-ModuleManifest -Path .\Test.psd1 @Settings }

Proposed technical implementation details (optional)

I would like to simply do:

Update-PSModuleManifest -Path .\Test.psd1 @Settings -Force

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions