1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/cf.md
bl-ue 8ebd171d6f
*: fix typos reported by Hunspell (#5848)
Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Co-authored-by: Seth Falco <seth@falco.fun>
Co-authored-by: Patrice Denis <patricedenis@users.noreply.github.com>
2021-05-20 16:13:41 -04:00

32 lines
741 B
Markdown

# cf
> Command-line tool to manage apps and services on Cloud Foundry.
> More information: <https://docs.cloudfoundry.org>.
- Push an app using the default settings:
`cf push {{app_name}}`
- View the services available from your organization:
`cf marketplace`
- Create a service instance:
`cf create-service {{service}} {{plan}} {{service_name}}`
- Connect an application to a service:
`cf bind-service {{app_name}} {{service_name}}`
- Run a script whose code is included in the app, but runs independently:
`cf run-task {{app_name}} "{{script_command}}" --name {{task_name}}`
- Start an interactive SSH session with a VM hosting an app:
`cf ssh {{app_name}}`
- View a dump of recent app logs:
`cf logs {{app_name}} --recent`