Skip to content

Latest commit

 

History

History
164 lines (113 loc) · 2.93 KB

Add-DOKDscModule.md

File metadata and controls

164 lines (113 loc) · 2.93 KB
external help file Module Name online version schema
DevOpsKitDsc-help.xml
DevOpsKitDsc
2.0.0

Add-DOKDscModule

SYNOPSIS

Add a module dependency to the workspace.

SYNTAX

Module (Default)

Add-DOKDscModule [-WorkspacePath <String>] -ModuleName <String> -ModuleVersion <String> [-Repository <String>]
 [-Type <String>] [<CommonParameters>]

Path

Add-DOKDscModule [-WorkspacePath <String>] -Path <String> [-Type <String>] [<CommonParameters>]

DESCRIPTION

Add a module dependency to the workspace.

EXAMPLES

Example 1

PS C:\> Add-DOKDscModule -ModuleName 'SharePointDsc' -ModuleVersion '1.8.0.0';

Add version 1.8.0.0 of the SharePointDsc module to the workspace.

PARAMETERS

-ModuleName

The name of the module.

Type: String
Parameter Sets: Module
Aliases: Name

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ModuleVersion

The version of the module.

Type: String
Parameter Sets: Module
Aliases: Version

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Path

The path to the module.

Type: String
Parameter Sets: Path
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Repository

The name of the repository to use when restoring the module.

Type: String
Parameter Sets: Module
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Type

If the module is from this workspace or a repository.

When Workspace type is used no attempt will be made to download the module from an external repository.

Type: String
Parameter Sets: (All)
Aliases:
Accepted values: Workspace, Repository

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WorkspacePath

The path to an existing workspace. If no value is specified the current working path is used.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

None

OUTPUTS

System.Object

NOTES

RELATED LINKS

Get-DOKDscModule

Restore-DOKDscModule

Publish-DOKDscModule