Skip to content

Commit 9205b4a

Browse files
Updated readme.md reflecting operation of the new feature
1 parent 8d594a0 commit 9205b4a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ WampServer PHP CLI Version Changer is a Microsoft Windows batch script that allo
1414
* [How To Use](#how-to-use)
1515
* [Text Based User Interface (TUI)](#text-based-user-interface-tui)
1616
* [Command Line Interface (CLI)](#command-line-interface-cli)
17+
* [Session Mode](#command-line-interface-cli---session-mode)
1718
* [FAQ's](#faqs)
1819

1920
## Minimum Requirements
@@ -62,6 +63,7 @@ There are two ways you can use the CLI Changer script.
6263

6364
* Text based user interface (TUI).
6465
* Command line interface (CLI).
66+
* Session mode
6567

6668
### Text Based User Interface (TUI)
6769

@@ -128,6 +130,31 @@ Following execution, an exit code will be given:
128130

129131
**Tip:** Calling scripts via the command line is common during (automated) development, testing and deployment. EG: Incorporate it into your build files...
130132

133+
### Command Line Interface (CLI) - Session Mode
134+
135+
Should you have the need to temporarily change the PHP version number within the open command window (session) only and not across the whole system (multiple sessions) then you should use the `--temp` option.
136+
137+
From a CMD prompt:
138+
```
139+
C:\>: "C:\path\to\cli_changer.bat" php7.2.3 --temp
140+
```
141+
142+
From a Bash or Powershell prompt:
143+
```
144+
$ start "C:\path\to\cli_changer.bat" php7.2.3 --temp
145+
```
146+
147+
The short command line option `-t` can also be used in place of `--temp`.
148+
149+
**Note:** Enclosing the script path in quotes if it contains spaces and knowing the available PHP CLI version(s) in advance is still required.
150+
151+
Following execution, an exit code will be given:
152+
153+
- `0` - Success
154+
- `1` - Failure
155+
156+
**Tip:** Calling scripts via the command line is common during (automated) development, testing and deployment. EG: Incorporate it into your build files...
157+
131158
## FAQ's
132159

133160
### What are environment path variables and how do they work?

0 commit comments

Comments
 (0)