mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-07 06:26:05 +02:00
cf: add page (#4284)
This commit is contained in:
parent
57b8769fe5
commit
8c5d10f81e
1 changed files with 32 additions and 0 deletions
32
pages/common/cf.md
Normal file
32
pages/common/cf.md
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
# 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`
|
Loading…
Add table
Reference in a new issue