Forrest logo
back to the phpenv tool

phpenv:tldr:2247c

phpenv: Unset the local PHP version.
$ phpenv local --unset
try on your machine

The command "phpenv local --unset" is used to unset or remove the local PHP version configuration from the current directory.

When using phpenv, you can set a specific PHP version to be used within a particular directory or project. This allows you to have different PHP versions for different projects or directories.

However, if you want to remove the previously set local PHP version and use the default system version or a global version instead, you can use the "phpenv local --unset" command. This command removes the .php-version file in the current directory that specifies the local PHP version to be used. After running this command, the default or global PHP version will be used when executing PHP commands in that directory.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the phpenv tool