copyright | lastupdated | keywords | subcollection | ||
---|---|---|---|---|---|
|
2022-11-21 |
code engine, tutorial, build, source, application, buildpack, access, build run, image, cloud foundry |
codeengine |
{{site.data.keyword.attribute-definition-list}}
{: #migrate-cf-ce-cmd}
Find and compare the {{site.data.keyword.codeengineshort}} CLI command that is equivalent to your Cloud Foundry commands.
{: #deployment-api}
Cloud Foundry
: ibmcloud target --cf-api api.us-south.cf.cloud.ibm.com
{{site.data.keyword.codeengineshort}}
: ibmcloud target -r [region]
{: #deployment-place}
Cloud Foundry
: ibmcloud cf create-org [orgName]
: ibmcloud target -o [orgName]
: ibmcloud target -s [spaceName]
{{site.data.keyword.codeengineshort}}
: 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 {{site.data.keyword.codeengineshort}} console{: external}.
{: #list-workload}
Cloud Foundry
: ibmcloud cf apps
{{site.data.keyword.codeengineshort}}
: ibmcloud ce app list
: ibmcloud ce job list
You can also view your applications and jobs from the {{site.data.keyword.codeengineshort}} console{: external}.
{: #deploy-commands}
Cloud Foundry
: ibmcloud cf push
{{site.data.keyword.codeengineshort}}
: 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 {{site.data.keyword.codeengineshort}} console{: external}.
{: #binding-commands}
Cloud Foundry
: ibmcloud cf bind-service [AppName] [ServiceInstance]https://cli.cloudfoundry.org/en-US/v6/bind-service.html
{{site.data.keyword.codeengineshort}}
: ibmcloud ce app bind --name [AppName] --service-instance [ServiceInstance]
: ibmcloud ce job bind --name [JobName] --service-instance [ServiceInstance]
{: #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
{{site.data.keyword.codeengineshort}}
: ibmcloud ce app update ...
: ibmcloud ce job update ...
You can also update your applications and jobs from the {{site.data.keyword.codeengineshort}} console{: external}.
For more information about what you can update with {{site.data.keyword.codeengineshort}}, see the following topics.
- Working with applications
- Updating an app
- Working with jobs and job runs
- Updating a job
app update
commandjob update
command
{: #control-commands}
Cloud Foundry
: ibmcloud cf start AppName
to start your application
: ibmcloud cf stop AppName
to stop your application
{{site.data.keyword.codeengineshort}}
: 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 {{site.data.keyword.codeengineshort}} console{: external}.
{: #get-info-commands}
Cloud Foundry
: ibmcloud cf app AppName
{{site.data.keyword.codeengineshort}}
: 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 {{site.data.keyword.codeengineshort}} console{: external}.
{: #specify-buildpack}
Cloud Foundry
: ibmcloud cf push -b https://github.com/cloudfoundry/nodejs-buildpack.git#v1.6.56
{{site.data.keyword.codeengineshort}} : Not supported
{: #migrate-cf-ce-next-cmd}
- Just starting your migration? Check out Getting started.
- Compare Cloud Foundry terminology with {{site.data.keyword.codeengineshort}}.
- Try out {{site.data.keyword.codeengineshort}} with a local build tutorial.
- Does your application use service bindings? Check out Migrating your service bindings.
- Learn about scaling and traffic management.
- {{site.data.keyword.codeengineshort}} equivalents to Cloud Foundry commands (current page)
- Still have questions? Try the Migrating Cloud Foundry applications to {{site.data.keyword.codeengineshort}} FAQ.
Other information
- Find out about {{site.data.keyword.codeengineshort}} pricing.
- Try other {{site.data.keyword.codeengineshort}} tutorials{: external}.
- Explore other {{site.data.keyword.codeengineshort}} topics.