Skip to content

Commit cead6c6

Browse files
Karl BishopKarl Bishop
authored andcommitted
doc cleanup
1 parent cd749a2 commit cead6c6

2 files changed

Lines changed: 47 additions & 26 deletions

File tree

windows-installer/README.md

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
* [Uninstall](#uninstall)
1111
* [Pre-Requisites](#pre-requisites)
1212
* [Usage](#usage)
13-
* [Platform specific concerns](#platforms)
14-
* [MacOS](#macos)
15-
* [Linux](#linux)
16-
* [Windows](#windows)
1713
* [Internal IBM users](#internal-ibm-users)
1814

1915

@@ -25,14 +21,22 @@ PowerShell script that downloads and installs the IBM Cloud Developer Tools (IDT
2521
## Installation
2622

2723
### Single-line Running
24+
This action will install (or update) the IBM Cloud Developer Toolsto your windows system in a single command.
2825

2926
1. Open Windows PowerShell by right-clicking and select "Run as Administrator".
3027
2. Run this command:
3128
```
3229
Set-ExecutionPolicy Unrestricted; iex(New-Object Net.WebClient).DownloadString('http://ibm.biz/idt-win-installer')
3330
```
3431

32+
Once the installation has completed, and you have rebooted your system (as needed), there will be three added shortcuts defined to access the IDT:
33+
- `idt` : Main command line tool for IBM cloud native development (shortcut to 'bx dev' command)
34+
- `idt update` : Update your IDT environment to the latest versions
35+
- `idt uninstall` : Uninstall the IBM Developer Tools
36+
37+
3538
### Running from Download
39+
Alternatively, you can use the following approach to perform an installation. This will give you an opportunity to better inspect the activities performed, especially if you are having any issues during installation (shown below).
3640

3741
1. Download the `idt-win-installer.ps1` file, or clone this repository.
3842
2. Open Windows PowerShell by right-clicking and selecting "Run as administrator".
@@ -43,12 +47,6 @@ Set-ExecutionPolicy Unrestricted
4347
.\idt-win-installer.ps1
4448
```
4549

46-
Once completed, and you have rebooted your system (as needed), there will be three added shortcuts defined to access the IDT:
47-
- `idt` : Main command line tool for IBM cloud native development (shortcut to 'bx dev' command)
48-
- `idt update` : Update your IDT environment to the latest versions
49-
- `idt uninstall` : Uninstall the IBM Developer Tools
50-
51-
5250
### Debugging
5351

5452
If you have any issues with the installer, try running with the `--trace` argument which will produce verbose output to assist us in diagnosing your problem:
@@ -66,20 +64,32 @@ idt update --trace
6664

6765
## Updating
6866

69-
If you wish to update the IBM Developer Tools CLI, run `idt update`. There is also a `--force` argument that will force update to all dependencies too.
67+
If you wish to update the IBM Developer Tools CLI, run:
7068

71-
This command is simply an alias defined during initial install that runs the installer (in admin mode) as shown here:
69+
```
70+
idt update [--force] [--trace]
71+
```
72+
73+
The `--force` argument that will force update to all dependencies too.
74+
75+
This command is simply a shortcut defined during initial install that runs (in admin mode) the installer as shown here:
7276

7377
```
74-
PowerShell -NoProfile -ExecutionPolicy Unrestricted -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Unrestricted """"iex(New-Object Net.WebClient).DownloadString('http://ibm.biz/idt-win-installer')"""" """"update"""" """"%2"""" ' -Verb RunAs}"
78+
PowerShell -NoProfile -ExecutionPolicy Unrestricted -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Unrestricted ""iex(New-Object Net.WebClient).DownloadString(""""http://ibm.biz/idt-win-installer"""")"" ""%2"" ""%3"" ' -Verb RunAs}"
7579
```
7680

7781
## Uninstall
7882

79-
If you wish to remove the IBM Developer Tools CLI, run `idt uninstall`. This command is simply an alias defined during install that runs the following:
83+
If you wish to remove the IBM Developer Tools CLI, run:
8084

8185
```
82-
PowerShell -NoProfile -ExecutionPolicy Unrestricted -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Unrestricted """"iex(New-Object Net.WebClient).DownloadString('http://ibm.biz/idt-win-installer')"""" """"uninstall"""" """"%2"""" ' -Verb RunAs}"
86+
idt uninstall [--trace]
87+
```
88+
89+
This command is simply a shortcut defined during install that runs (in admin mode) the installer's uninstall action as shown here:
90+
91+
```
92+
PowerShell -NoProfile -ExecutionPolicy Unrestricted -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Unrestricted ""iex(New-Object Net.WebClient).DownloadString(""""http://ibm.biz/idt-win-installer"""")"" ""uninstall"" ""%2"" ' -Verb RunAs}"
8393
```
8494

8595

@@ -97,7 +107,7 @@ The script will check for the following prereqs, and attempt to install them if
97107
Usage: idt-win-installer [<args>]
98108
99109
Where <args> is:
100-
install [Default] Perform full install (or update) of all needed CLIs and Plugins
110+
install | unpdate [Default] Perform full install (or update) of all needed CLIs and Plugins
101111
uninstall Uninstall full IBM Cloud CLI env, including 'bx', and plugins
102112
help | -h | -? Show this help
103113
--force Force updates of dependencies and other settings during update
@@ -127,6 +137,3 @@ Submit any issues to : https://github.com/IBM-Cloud/ibm-cloud-developer-tools/is
127137
IBM users can use pre-release versions of the IDT (bx and all plugins). The installer will check if you have the internal "stage1" plugin repo defined, and ask if you want to use it for updates. Note: Since during initial install of the bx CLI does not have extra plugin repos defined, it only applies during subsequent updates.
128138

129139

130-
### MacOS &amp; Linux Installation
131-
132-
**WARNING**: MacOS and Linux are not supported by this installer. See the [MacOS &amp; Linux installation](../linux-installer/README.md) for additional information.

windows-installer/idt-win-installer.ps1

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ function help {
2626
Usage: idt-win-installer [<args>]
2727
2828
Where <args> is:
29-
install [Default] Perform full install (or update) of all needed CLIs and Plugins
30-
uninstall Uninstall full IBM Cloud CLI env, including 'bx', and plugins
31-
help Show this help
32-
--force | -f Force updates of dependencies and other settings during update
33-
--trace Eanble verbose tracing of all activity
29+
install | update [Default] Perform install (or update) of all needed CLIs and Plugins
30+
uninstall Uninstall full IBM Cloud CLI env, including 'bx', and plugins
31+
help Show this help
32+
--force | -f Force updates of dependencies and other settings during update
33+
--trace Eanble verbose tracing of all activity
3434
35-
If "install" (or no action provided), a full CLI installation (or update) will occur:
35+
If "install", "update", or no action, a full CLI installation (or update) will occur:
3636
1. Pre-req check for 'git', 'docker', 'kubectl', and 'helm'
3737
2. Install latest IBM Cloud 'bx' CLI
3838
3. Install all required plugins
@@ -79,7 +79,18 @@ function quit() {
7979
#------------------------------------------------------------------------------
8080
function uninstall() {
8181
warn "Starting Uninstall..."
82-
82+
Write-Output
83+
$reply = Read-Host -Prompt "Are you sure you want to remove IDT and IBM Cloud CLI (Y/n)?"
84+
Write-Output
85+
if($reply -match "[Yy]*") {
86+
log "Deleting: C:\Program Files\IBM\Bluemix"
87+
Remove-Item -Recurse -Force "C:\Program Files\IBM\Bluemix"
88+
log "Deleting: ~/.bluemix"
89+
Remove-Item -Recurse -Force ~/.bluemix
90+
log "Uninstall complete."
91+
} else {
92+
log "Uninstall cancelled at user request"
93+
}
8394
}
8495

8596
#------------------------------------------------------------------------------
@@ -298,7 +309,10 @@ function main {
298309
$FORCE=1
299310
warn "Forcing updates for all dependencies and other settings"
300311
}
312+
"update" { $ACTION = "install" }
313+
"install" { $ACTION = "install" }
301314
"uninstall" { $ACTION = "uninstall" }
315+
default { $ACTION = "help" }
302316
}
303317
}
304318

0 commit comments

Comments
 (0)