< Back

Install-Composer

Sat Jan 18, 2020 6:48 pm

NAME Install-Composer



SYNOPSIS

Installs Composer.





SYNTAX

Install-Composer [[-Path] <String>] [[-PhpPath] <String>] [[-Scope] <String>] [-NoAddToPath] [-NoCache]

[<CommonParameters>]





DESCRIPTION

Download and install Composer, the PHP dependency manager.





PARAMETERS

-Path <String>

Specify where Composer will be installed.

If not specified, we'll install it in C:\\ProgramData\\ComposerBin for system-wide installations, or in

C:\\Users\\<user>\\AppData\\Local\\ComposerBin for user-specific installations.



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-PhpPath <String>

The path of PHP (if not specified, we'll detect it).



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Scope <String>

Install Composer the current user only ('User' - default), or at system-level ('System').



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-NoAddToPath [<SwitchParameter>]

Specify this option to don't add the Composer install path to the PATH environment variable.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-NoCache [<SwitchParameter>]

Specify this option to don't use a previously downloaded Composer installer.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS





RELATED LINKS