Skip to content

Latest commit

 

History

History
171 lines (117 loc) · 6.55 KB

migrate-cf-ce-cmd.md

File metadata and controls

171 lines (117 loc) · 6.55 KB
copyright lastupdated keywords subcollection
years
2022, 2022
2022-07-05
code engine, tutorial, build, source, application, buildpack, access, build run, image, cloud foundry
codeengine

{{site.data.keyword.attribute-definition-list}}

{{site.data.keyword.codeengineshort}} equivalents to Cloud Foundry commands

{: #migrate-cf-ce-cmd}

Find and compare the {{site.data.keyword.codeengineshort}} 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

{{site.data.keyword.codeengineshort}} : 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]

{{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 your apps and jobs commands

{: #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 an image as an app or job commands

{: #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}.

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

{{site.data.keyword.codeengineshort}} : 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

{{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.

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

{{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 information about apps commands

{: #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}.

Specifying a buildpack version

{: #specify-buildpack}

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

{{site.data.keyword.codeengineshort}} : Not supported

Next steps

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

  1. Just starting your migration? Check out Getting started.
  2. Compare Cloud Foundry terminology with {{site.data.keyword.codeengineshort}}.
  3. Try out {{site.data.keyword.codeengineshort}} with a local build tutorial.
  4. Does your application use service bindings? Check out Migrating your service bindings.
  5. Learn about scaling and traffic management.
  6. {{site.data.keyword.codeengineshort}} equivalents to Cloud Foundry commands (current page)
  7. Still have questions? Try the Migrating Cloud Foundry applications to {{site.data.keyword.codeengineshort}} FAQ.

Other information