< Back
Add-PhpToSwitcher
Post
NAME Add-PhpToSwitcher
SYNOPSIS
Adds a PHP installation to the PHP Switcher.
SYNTAX
Add-PhpToSwitcher [-Name] <String> [-Path] <String> [-Force] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-Name <String>
The symbolic name to give to the PHP installation.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Path <String>
The path to an existing PHP installation to be added to the PHP Switcher.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Force [<SwitchParameter>]
Force adding the PHP installation to the PHP Switcher even if another installation is already defined with the
specified name.
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
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Initialize-PhpSwitcher C:\\PHP
Add-PhpToSwitcher 5.6 C:\\PHP5.6
Add-PhpToSwitcher 7.2 C:\\PHP7.2
Switch-Php 5.6
RELATED LINKS
SYNOPSIS
Adds a PHP installation to the PHP Switcher.
SYNTAX
Add-PhpToSwitcher [-Name] <String> [-Path] <String> [-Force] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-Name <String>
The symbolic name to give to the PHP installation.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Path <String>
The path to an existing PHP installation to be added to the PHP Switcher.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Force [<SwitchParameter>]
Force adding the PHP installation to the PHP Switcher even if another installation is already defined with the
specified name.
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
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Initialize-PhpSwitcher C:\\PHP
Add-PhpToSwitcher 5.6 C:\\PHP5.6
Add-PhpToSwitcher 7.2 C:\\PHP7.2
Switch-Php 5.6
RELATED LINKS