IBM Cloud Code Engine Dev Setup in 6 Easy Steps!
Published: 2021-06-08 20:42:08

#Welcome back to Tutorial Tuesday!

This week we'll cover everything you need to get up and running with IBM Cloud Code Engine from the command line! You'll install the IBM Cloud Developer Tools CLI, the IBM Cloud Object Storage CLI, the IBM Cloud Container Registry plug-in, and the IBM Cloud Code Engine plug-in!


##Steps
1. Sign Up for a Pay-As-You-Go [IBM Cloud Account](https://ibm.biz/cloud-sign-up)
2. Install the [IBM Cloud Developer Tools CLI](https://cloud.ibm.com/docs/cli?topic=cli-getting-started) (command line interface, the commands you type into your Terminal) 
3. Install the [IBM Cloud Object Storage Plug-In](https://cloud.ibm.com/docs/cloud-object-storage-cli-plugin?topic=cloud-object-storage-cli-plugin-ic-cos-cli)
4. Install the [IBM Cloud Container Registry Plug-In](https://cloud.ibm.com/docs/container-registry-cli-plugin?topic=container-registry-cli-plugin-containerregcli) 
5. Install the [IBM Cloud Code Engine Plug-In](https://cloud.ibm.com/docs/codeengine?topic=codeengine-install-cli) 
6. Login to Your IBM Cloud Account via the CLI


#Let's Get Our Dev Env Set-Up! 


## Setup & Installation

###1. Sign Up for a Pay-As-You-Go [IBM Cloud Account](https://ibm.biz/cloud-sign-up)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k7ksegsehz4880i2nauq.png)

IBM Cloud Code Engine requires a pay-as-you-go account, however, the **[Free Tier](https://www.ibm.com/cloud/code-engine/pricing)** allows for plenty of CPU, Memory, and up to 100,000 requests per month! You'll be able to work through all of the Code Engine tutorials and not worry about incurring any charges.


###2. Install the [IBM Cloud Developer Tools CLI](https://cloud.ibm.com/docs/cli?topic=cli-getting-started)

* For Mac and Linux, run the following command in Terminal:
```
$ curl -sL https://raw.githubusercontent.com/IBM-Cloud/ibm-cloud-developer-tools/master/linux-installer/idt-installer | bash
```

* Verify the IBM Cloud Developer Tools CLI is installed
```
$ ibmcloud dev help
```

* For Windows 10 Pro, run the following command as an administrator in Powershell:
```
$ [Net.ServicePointManager]::SecurityProtocol = "Tls12, Tls11, Tls, Ssl3"; iex(New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/IBM-Cloud/ibm-cloud-developer-tools/master/windows-installer/idt-win-installer.ps1')
```
**Note For Windows Users: If you encounter a Git error similar to the one below, you will need to install Git in the correct path.**
```
bash: git: command not found
```
**Follow the Windows Guide [HERE](https://www.jcchouinard.com/install-git)**


###3. Install the [IBM Cloud Object Storage Plug-In](https://cloud.ibm.com/docs/cloud-object-storage-cli-plugin?topic=cloud-object-storage-cli-plugin-ic-cos-cli)

* For Mac, Linux, and Windows 10 Pro, run the following command:
```
$ ibmcloud plugin install cloud-object-storage
```

* Verify the IBM Cloud Code Engine Plugin is installed
```
$ ibmcloud plugin show cloud-object-storage
```


###4. Install the [IBM Cloud Container Registry Plug-In](https://cloud.ibm.com/docs/container-registry-cli-plugin?topic=container-registry-cli-plugin-containerregcli) 

* For Mac, Linux, and Windows 10 Pro, run the following command:
```
$ ibmcloud plugin install container-registry -r 'IBM Cloud'
```

* Verify the IBM Cloud Code Engine Plugin is installed
```
$ ibmcloud plugin show container-registry
```


###5. Install the [IBM Cloud Code Engine Plug-In](https://cloud.ibm.com/docs/codeengine?topic=codeengine-install-cli) 

* For Mac, Linux, and Windows 10 Pro, run the following command:
```
$ ibmcloud plugin install code-engine
```

* Verify the IBM Cloud Code Engine Plugin is installed
```
$ ibmcloud ce help
```


###6. Login to Your IBM Cloud Account via the CLI

* For Mac, Linux, and Windows 10 Pro, run the following command:
```
$ ibmcloud login
```

* Enter email and password

* Update the region to **`eu-gb`**
```
$ ibmcloud target -r eu-gb
```

* View available resource groups
```
ibmcloud resource groups
```

* Assign a target resource group (default to your "Default")
```
ibmcloud target -g Default
```

##NOW YOU'RE READY TO GET OUT THERE AND HACK TOGETHER SOMETHING AMAZING!

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/18jfnp4tbjwyygexin2z.gif)


Connect w Me!
https://linktr.ee/jritten