Skip to content

Commit adbcd3a

Browse files
Karl BishopKarl Bishop
authored andcommitted
Rebranding
1 parent 833d41c commit adbcd3a

3 files changed

Lines changed: 60 additions & 51 deletions

File tree

README.md

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
1-
# IBM Developer Tools
2-
These scripts perform an installation of the IBM Developer Tools CLI environment. The IDT is a plugin to the IBM Bluemix CLI. Our general target environment is the IBM Cloud, including public, dedicated, and local hybrid.
1+
# IBM Cloud Developer Tools
32

3+
These scripts perform an installation of the IBM Cloud Developer Tools CLI environment. The IDT is a plugin to the IBM Bluemix CLI. Our general target environment is the IBM Cloud, including public, dedicated, and private.
44

55
[![](https://img.shields.io/badge/bluemix-powered-blue.svg)](https://bluemix.net)
66
![Platform](https://img.shields.io/badge/platform-BASH-lightgrey.svg?style=flat)
7-
![Platform](https://img.shields.io/badge/platform-PowerShell-lightgrey.svg?style=flat)
87

98

109
The following are platform specific concerns and notes you should be aware of.
1110

1211
## MacOS & Linux Installation
1312

14-
The following command can install the IBM Developer tools in a single invocation. Open up a terminal and run the following command:
13+
The following command can install the IBM Cloud Developer Tools in a single invocation. Open up a terminal and run the following command:
1514

1615
```
17-
curl -sL https://ibm.biz/idt-installer | bash
16+
$ curl -sL https://ibm.biz/idt-installer | bash
1817
```
1918

2019
By default, this installer will use the 'brew' installer on MacOS, if available. If you explicitly do not want to use brew, execute the following command with `--nobrew` option:
@@ -23,10 +22,10 @@ By default, this installer will use the 'brew' installer on MacOS, if available.
2322
curl -sL https://ibm.biz/idt-installer | bash -s -- --nobrew
2423
```
2524

26-
Once complete, there will be three aliases defined to access the IDT:
25+
Once complete, there will be three aliases defined to access the IBM Cloud Developer Tools:
2726
- `idt` : Main command line tool for IBM cloud native development (shortcut to 'bx dev')
2827
- `idt-update` : Update your IDT environment to the latest versions
29-
- `idt-uninstall` : Uninstall the IBM Developer Tools
28+
- `idt-uninstall` : Uninstall the IBM Cloud Developer Tools
3029

3130
Access the [platform-specific readme](./linux-installer/README.md) for additional details.
3231

@@ -35,31 +34,20 @@ This script has only been tested on Ubuntu Linux systems, although it should beh
3534

3635

3736
## Windows Installation
38-
To install the IBM Developer Tools CLI on Windows 10 or newer:
37+
38+
To install the IBM Cloud Developer Tools CLI on Windows 10 or newer:
3939

4040
1. Open Windows PowerShell by right-clicking and select "Run as Administrator".
4141
2. Run this command:
4242
```
4343
Set-ExecutionPolicy Unrestricted; iex(New-Object Net.WebClient).DownloadString('http://ibm.biz/idt-win-installer')
4444
```
4545

46-
Access the [Windows-specific readme](./windows-installer/README.md) for additional details.
46+
Access the [Widnows-specific readme](./windows-installer/README.md) for additional details.
4747

4848

4949

5050
## Feedback
5151

5252
We can be reached on [Slack](https://ibm.biz/IBMCloudNativeSlack) or file an issue on our [GitHub repo](https://github.com/ibm-cloud-tools/idt-installer).
5353

54-
55-
## Internal IBM users
56-
57-
IBM user can utilize this installer pulling the Bluemix cLI and plugins from pre-release internal servers. In order to have the installer utilize internal servers, set the following environment variables (eg in `~/.bashrc`), using the proper actual values:
58-
59-
```
60-
export IDT_INSTALL_BMX_URL="https://clis.<internal_bluemix_staging_url>/install"
61-
export IDT_INSTALL_BMX_REPO_NAME="stage"
62-
export IDT_INSTALL_BMX_REPO_URL="https://plugins.<internal_bluemix_staging_url>"
63-
```
64-
65-
If you need assistance on the proper values, just ask in any of the internal slack channels.

linux-installer/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* [MacOS](#macos)
1313
* [Linux](#linux)
1414
* [Windows](#windows)
15+
* [Internal IBM users](#internal-ibm-users)
1516

1617

1718
## Summary
@@ -109,3 +110,17 @@ This script has only been tested on Ubuntu Linux systems, although it should beh
109110

110111
**WARNING**: Windows is not supported by this installer. See the [Windows installation](../windows-installer/README.md) for additional information.
111112

113+
114+
115+
## Internal IBM users
116+
117+
IBM users can utilize this installer pulling the Bluemix CLI and plugins from pre-release internal servers. In order to have the installer utilize internal servers, set the following environment variables (eg in `~/.bashrc`), substituting the proper internal URLs. Shown below are the default public URLs:
118+
119+
```
120+
export IDT_INSTALL_USE_PROD=true
121+
export IDT_INSTALL_BMX_URL="https://clis.ng.bluemix.net/install"
122+
export IDT_INSTALL_BMX_REPO_NAME="internal"
123+
export IDT_INSTALL_BMX_REPO_URL="https://plugins.ng.bluemix.net"
124+
```
125+
126+
If you need assistance on the proper values, just ask in any of the IBM internal slack channels.

linux-installer/idt-installer

Lines changed: 36 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
#!/bin/bash
22
#------------------------------------------------------------------------------
3-
# Script: idt-installer - IBM Cloud Developer Tools CLI installer
3+
# Script: idt-installer
44
#------------------------------------------------------------------------------
5-
# Bluemix Developer CLI Installer script for MacOS / Linux / Win10 systems
5+
# IBM Cloud Developer Tools - CLI installer script for MacOS and Linux systems
66
#------------------------------------------------------------------------------
77
# Copyright (c) 2017, International Business Machines. All Rights Reserved.
88
#------------------------------------------------------------------------------
99

1010
VERSION="0.8"
11-
PROG="IBM Developer Tools - Installer"
11+
PROG="IBM Cloud Developer Tools - Installer"
1212
INSTALLER_URL="https://ibm.biz/idt-installer"
1313
GIT_URL="https://github.com/ibm-cloud-tools/idt-installer"
1414
SLACK_URL="https://ibm.biz/IBMCloudNativeSlack"
15-
IDT_INSTALL_BMX_URL="${IDT_INSTALL_BMX_URL:=https://clis.ng.bluemix.net/install}"
15+
DEFAULT_BMX_URL="https://clis.ng.bluemix.net/install"
16+
17+
if [[ "$IDT_INSTALL_USE_PROD" != false ]]; then
18+
unset IDT_INSTALL_BMX_URL IDT_INSTALL_BMX_REPO_NAME IDT_INSTALL_BMX_REPO_URL
19+
fi
20+
IDT_INSTALL_BMX_URL="${IDT_INSTALL_BMX_URL:=$DEFAULT_BMX_URL}"
1621
IDT_INSTALL_BMX_REPO_NAME="${IDT_INSTALL_BMX_REPO_NAME:=Bluemix}"
1722
IDT_INSTALL_BMX_REPO_URL="${IDT_INSTALL_BMX_REPO_URL:=https://plugins.ng.bluemix.net}"
1823

@@ -120,30 +125,30 @@ function uninstall {
120125
log "Removing Bluemix CLI..."
121126
if [[ "${PLATFORM}" == "Darwin" && "$USEBREW" == true ]]; then
122127
brew cask uninstall "bluemix-cli"
123-
else
124-
sudo rm -f /usr/local/bin/bluemix
125-
sudo rm -f /usr/local/bin/bx
126-
sudo rm -f /usr/local/bin/bluemix-analytics
127-
sudo rm -rf /usr/local/Bluemix
128-
#-- Taken from bluemix CLI brew uninstaller
129-
if [[ -f /etc/profile ]]; then
130-
sudo sed -E -i ".bluemix_uninstall_bak" \
131-
-e '/^### Added by the Bluemix CLI$/d' \
132-
-e '/^source \/usr\/local\/Bluemix\/bx\/bash_autocomplete$/d' \
133-
/etc/profile
134-
fi
135-
if [[ -f ~/.bashrc ]]; then
136-
sed -E -i ".bluemix_uninstall_bak" \
137-
-e '/^### Added by the Bluemix CLI$/d' \
138-
-e '/^source \/usr\/local\/Bluemix\/bx\/bash_autocomplete$/d' \
139-
~/.bashrc
140-
fi
141-
if [[ -f ~/.zshrc ]]; then
142-
sed -E -i ".bluemix_uninstall_bak" \
143-
-e '/^### Added by the Bluemix CLI$/d' \
144-
-e '/^source \/usr\/local\/Bluemix\/bx\/zsh_autocomplete$/d' \
145-
~/.zshrc
146-
fi
128+
fi
129+
#-- Run the following regardless
130+
sudo rm -f /usr/local/bin/bluemix
131+
sudo rm -f /usr/local/bin/bx
132+
sudo rm -f /usr/local/bin/bluemix-analytics
133+
sudo rm -rf /usr/local/Bluemix
134+
#-- Taken from bluemix CLI brew uninstaller
135+
if [[ -f /etc/profile ]]; then
136+
sudo sed -E -i ".bluemix_uninstall_bak" \
137+
-e '/^### Added by the Bluemix CLI$/d' \
138+
-e '/^source \/usr\/local\/Bluemix\/bx\/bash_autocomplete$/d' \
139+
/etc/profile
140+
fi
141+
if [[ -f ~/.bashrc ]]; then
142+
sed -E -i ".bluemix_uninstall_bak" \
143+
-e '/^### Added by the Bluemix CLI$/d' \
144+
-e '/^source \/usr\/local\/Bluemix\/bx\/bash_autocomplete$/d' \
145+
~/.bashrc
146+
fi
147+
if [[ -f ~/.zshrc ]]; then
148+
sed -E -i ".bluemix_uninstall_bak" \
149+
-e '/^### Added by the Bluemix CLI$/d' \
150+
-e '/^source \/usr\/local\/Bluemix\/bx\/zsh_autocomplete$/d' \
151+
~/.zshrc
147152
fi
148153
env_setup remove
149154

@@ -201,7 +206,8 @@ function install_bx {
201206
log "Installing IBM Cloud 'Bluemix' CLI for platform '${PLATFORM}'..."
202207
case "$PLATFORM" in
203208
"Darwin")
204-
if [[ "$USEBREW" == true ]]; then
209+
#-- Only use BREW if using default bluemix URL (not an internal url)
210+
if [[ "$USEBREW" == true && "$IDT_INSTALL_BMX_REPO_NAME" == "Bluemix" ]]; then
205211
brew cask reinstall "caskroom/cask/bluemix-cli"
206212
else
207213
log "Downloading and installing Bluemix CLI from: ${IDT_INSTALL_BMX_URL}/osx"
@@ -278,7 +284,7 @@ function env_setup {
278284
log "The following aliases are defined to access the 'idt' tool:"
279285
log " ${GRN}idt${NRM} : Main command line tool for IBM Cloud Native development"
280286
log " ${GRN}idt-update${NRM} : Update your IDT tools to the latest version"
281-
log " ${GRN}idt-uninstall${NRM} : Uninstall the IBM Developer Tools"
287+
log " ${GRN}idt-uninstall${NRM} : Uninstall the IBM Cloud Developer Tools"
282288
;;
283289
"remove")
284290
if [[ -n "$(grep 'alias idt="bluemix dev"' "$env_file")" ]]; then

0 commit comments

Comments
 (0)