mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 07:58:59 +00:00
Update cheatsheets
This commit is contained in:
37
phpenv
Normal file
37
phpenv
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# phpenv
|
||||
|
||||
> A PHP version manager for development purposes.
|
||||
> More information: <https://github.com/phpenv/phpenv>.
|
||||
|
||||
- Install a PHP version globally:
|
||||
|
||||
`phpenv install {{version}}`
|
||||
|
||||
- Refresh shim files for all PHP binaries known to `phpenv`:
|
||||
|
||||
`phpenv rehash`
|
||||
|
||||
- List all installed PHP versions:
|
||||
|
||||
`phpenv versions`
|
||||
|
||||
- Display the currently active PHP version:
|
||||
|
||||
`phpenv version`
|
||||
|
||||
- Set the global PHP version:
|
||||
|
||||
`phpenv global {{version}}`
|
||||
|
||||
- Set the local PHP version, which overrides the global version:
|
||||
|
||||
`phpenv local {{version}}`
|
||||
|
||||
- Unset the local PHP version:
|
||||
|
||||
`phpenv local --unset`
|
||||
Reference in New Issue
Block a user