Code Engine equivalents to Cloud Foundry commands
Find and compare the Code Engine CLI command that is equivalent to your Cloud Foundry commands.
Connect to the deployment API region commands
- 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
- 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.
List your apps and jobs commands
- 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.
Deploy an image as an app or job 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.
Bind a Service to a workload
- 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
- 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.
For more information about what you can update with Code Engine, see the following topics.
Control applications and jobs commands
- Cloud Foundry
ibmcloud cf start AppName
to start your applicationibmcloud 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.
Get information about apps 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.
Specifying a buildpack version
- Cloud Foundry
ibmcloud cf push -b https://github.com/cloudfoundry/nodejs-buildpack.git#v1.6.56
- Code Engine
- Not supported
Next steps
- Just starting your migration? Check out Getting started.
- Compare Cloud Foundry terminology with Code Engine.
- Try out Code Engine with a local build tutorial.
- Does your application use service bindings? Check out Migrating your service bindings.
- Learn about scaling and traffic management.
- Code Engine equivalents to Cloud Foundry commands (current page)
- Still have questions? Try the Migrating Cloud Foundry applications to Code Engine FAQ.
Other information
- Find out about Code Engine pricing.
- Try other Code Engine tutorials.
- Explore other Code Engine topics.