---
name: codeengine-migrate-cf-ce-cmd
title: Code Engine equivalents to Cloud Foundry commands
description: Find and compare the Code Engine CLI command that is equivalent to your Cloud Foundry commands.
last-updated: 2022-11-21
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/codeengine?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Code Engine equivalents to Cloud Foundry commands
{: #migrate-cf-ce-cmd}

Find and compare the Code Engine CLI command that is equivalent to your Cloud Foundry commands.

## Connect to the deployment API region commands
{: #deployment-api}

Cloud Foundry
:    `ibmcloud target --cf-api api.us-south.cf.cloud.ibm.com`

Code Engine
:    `ibmcloud target -r [region]`

## Create a deployment location for your workload commands
{: #deployment-place}

Cloud Foundry
:    `ibmcloud cf create-org [orgName]`
:    `ibmcloud target -o [orgName]`
:    `ibmcloud target -s [spaceName]`

Code Engine
:    `ibmcloud ce project create --name [projectName]` To create and select a new project.
:    `ibmcloud ce project select --name [projectName]` To select an existing project.

You can also create a project from the [Code Engine console](https://cloud.ibm.com/codeengine/overview){: external}.

## List your apps and jobs commands
{: #list-workload}

Cloud Foundry
:    `ibmcloud cf apps`

Code Engine
:    `ibmcloud ce app list`
:    `ibmcloud ce job list`

You can also view your applications and jobs from the [Code Engine console](https://cloud.ibm.com/codeengine/overview){: external}.

## Deploy an image as an app or job commands
{: #deploy-commands}

Cloud Foundry
:    `ibmcloud cf push`

Code Engine
:    `ibmcloud ce build create` Define a build.
:    `ibmcloud ce buildrun submit`  Run a build.
:    `ibmcloud ce app create` Deploy image as an app.
:    `ibmcloud ce job create` Create a batch job.
:    `ibmcloud ce app create --build-source . --strategy buildpacks` Build your code and deploy the app in a single step.
:    `ibmcloud ce job create --build-source . --strategy buildpacks` Build your code and deploy the job in a single step.

You can perform these tasks from a single web page in the [Code Engine console](https://cloud.ibm.com/codeengine/overview){: external}.

## Bind a Service to a workload
{: #binding-commands}

Cloud Foundry
:    `ibmcloud cf bind-service [AppName] [ServiceInstance]https://cli.cloudfoundry.org/en-US/v6/bind-service.html`

Code Engine
:    `ibmcloud ce app bind --name [AppName] --service-instance [ServiceInstance]`
:    `ibmcloud ce job bind --name [JobName] --service-instance [ServiceInstance]`


## Update applications or jobs commands
{: #update-commands}

Cloud Foundry
:    `ibmcloud cf scale ...`
:    `ibmcloud cf set-env ...`
:    `ibmcloud cf push ...`
:    `ibmcloud cf delete ...`

For example, to scale your application to 2 instances, 1 G of memory, and restart it, run `cf scale APP_NAME -i 2 -m 1G -f`

Code Engine
:    `ibmcloud ce app update ...`
:    `ibmcloud ce job update ...`

You can also update your applications and jobs from the [Code Engine console](https://cloud.ibm.com/codeengine/overview){: external}.

For more information about what you can update with Code Engine, see the following topics.

- [Working with applications](https://cloud.ibm.com/docs/codeengine?topic=codeengine-application-workloads&format=markdown)
- [Updating an app](https://cloud.ibm.com/docs/codeengine?topic=codeengine-update-app&format=markdown)
- [Working with jobs and job runs](https://cloud.ibm.com/docs/codeengine?topic=codeengine-job-plan&format=markdown)
- [Updating a job](https://cloud.ibm.com/docs/codeengine?topic=codeengine-update-job&format=markdown)
- [**`app update`**](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cli&format=markdown#cli-application-update) command
- [**`job update`**](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cli&format=markdown#cli-job-update) command


## Control applications and jobs commands
{: #control-commands}

Cloud Foundry
:    `ibmcloud cf start AppName` to start your application
:    `ibmcloud cf stop AppName` to stop your application

Code Engine
:    `ibmcloud ce app create ...`
:    `ibmcloud ce app delete ...`
:    `ibmcloud ce app restart ...`
:    `ibmcloud ce job create ...`
:    `ibmcloud ce job delete ...`
:    `ibmcloud ce jobrun restart ...`


You can also control your applications and jobs from the [Code Engine console](https://cloud.ibm.com/codeengine/overview){: external}.

## Get information about apps commands
{: #get-info-commands}

Cloud Foundry
:    `ibmcloud cf app AppName`

Code Engine
:    `ibmcloud ce app get -n <APPNAME>`
:    `ibmcloud ce job get -n <JOBNAME>`
:    `ibmcloud ce app events -n <APPNAME>`
:    `ibmcloud ce app logs -n <JOBNAME>`
:    `ibmcloud ce jobrun events -n <JOBRUNNAME>`
:    `ibmcloud ce jobrun logs -n <JOBRUNNAME>`


You can also view information about your applications and jobs from the [Code Engine console](https://cloud.ibm.com/codeengine/overview){: external}.

## Specifying a buildpack version
{: #specify-buildpack}

Cloud Foundry
:    `ibmcloud cf push -b https://github.com/cloudfoundry/nodejs-buildpack.git#v1.6.56`

Code Engine
:    Not supported


## Next steps
{: #migrate-cf-ce-next-cmd}

1. Just starting your migration? Check out [Getting started](https://cloud.ibm.com/docs/codeengine?topic=codeengine-migrate-cf-ce-getstart&format=markdown).
2. [Compare Cloud Foundry terminology with Code Engine](https://cloud.ibm.com/docs/codeengine?topic=codeengine-migrate-cf-ce-terms&format=markdown).
3. [Try out Code Engine with a local build tutorial](https://cloud.ibm.com/docs/codeengine?topic=codeengine-migrate-cf-ce-local&format=markdown).
4. Does your application use service bindings? Check out [Migrating your service bindings](https://cloud.ibm.com/docs/codeengine?topic=codeengine-migrate-cf-ce-bind&format=markdown).
5. Learn about [scaling and traffic management](https://cloud.ibm.com/docs/codeengine?topic=codeengine-migrate-cf-ce-scale&format=markdown).
6. **Code Engine equivalents to Cloud Foundry commands (current page)**
7. Still have questions? Try the [Migrating Cloud Foundry applications to Code Engine FAQ](https://cloud.ibm.com/docs/codeengine?topic=codeengine-migrate-cf-ce-faq&format=markdown).

Other information

- Find out about [Code Engine pricing](https://cloud.ibm.com/docs/codeengine?topic=codeengine-pricing&format=markdown).
- Try other [Code Engine tutorials](https://cloud.ibm.com/docs?tab=tutorials&tags=codeengine&page=1&pageSize=20){: external}.
- Explore other [Code Engine topics](https://cloud.ibm.com/docs/codeengine?topic=codeengine-learning-paths&format=markdown).