my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
5.1 KiB

3 years ago
  1. # Cloudfoundry Plugin
  2. This plugin is intended to offer a few simple aliases for regular users of the [Cloud Foundry Cli][1]. Most are just simple aliases that will save a bit of typing. Others include mini functions and or accept parameters. Take a look at the table below for details.
  3. | Alias | Command | Description |
  4. |----------|-----------------------------|--------------------------------------------------------------------------|
  5. | cfl | `cf login` | Login to Cloud Foundry |
  6. | cft | `cf target` | Target the cli at a specific Org/Space in Cloud Foundry |
  7. | cfa | `cf apps` | List all applications in the current Org/Space |
  8. | cfs | `cf services` | List all services in the current Org/Space |
  9. | cfm | `cf marketplace` | List the services available in the Marketplace |
  10. | cfp | `cf push` | Push your application code to Cloud Foundry |
  11. | cfcs | `cf create-service` | Create a service based on a Marketplace offering |
  12. | cfbs | `cf bind-service` | Bind an application to a service you created |
  13. | cfus | `cf unbind-service` | Unbind a service from an application |
  14. | cfds | `cf delete-service` | Delete a service you no longer have bound |
  15. | cfup | `cf cups` | Create a "user-provided-service" |
  16. | cflg | `cf logs` | Tail the logs of an application (requires <APP_NAME>) |
  17. | cfr | `cf routes` | List all the routes in the current Space |
  18. | cfe | `cf env` | Show the environment variables for an application (requires <APP_NAME>) |
  19. | cfsh | `cf ssh` | Attach to a running container (requires an <APP_NAME> etc.) |
  20. | cfsc | `cf scale` | Scale an application (requires an <APP_NAME> etc.) |
  21. | cfev | `cf events` | Show the application events (requires <APP_NAME>) |
  22. | cfdor | `cf delete-orphaned-routes` | Delete routes that are no longer bound to applications |
  23. | cfbpk | `cf buildpacks` | List the available buildpacks |
  24. | cfdm | `cf domains` | List the domains associates with this Cloud Foundry foundation |
  25. | cfsp | `cf spaces` | List all the Spaces in the current Org |
  26. | cfap | `cf app` | Show the details of a deployed application (requires <APP_NAME>) |
  27. | cfh. | `export CF_HOME=$PWD/.cf` | Set the current directory as CF_HOME |
  28. | cfh~ | `export CF_HOME=~/.cf` | Set the user's root directory as CF_HOME |
  29. | cfhu | `unset CF_HOME` | Unsets CF_HOME |
  30. | cfpm | `cf push -f` | Push an application using a manifest (requires <MANIFEST_FILE> location) |
  31. | cflr | `cf logs --recent` | Show the recent logs (requires <APP_NAME>) |
  32. | cfsrt | `cf start` | Start an application (requires <APP_NAME>) |
  33. | cfstp | `cf stop` | Stop an application (requires <APP_NAME>) |
  34. | cfstg | `cf restage` | Restage an application (requires <APP_NAME>) |
  35. | cfdel | `cf delete` | Delete an application (requires <APP_NAME>) |
  36. | cfsrtall | - | Start all apps that are currently in the "Stopped" state |
  37. | cfstpall | - | Stop all apps that are currently in the "Started" state |
  38. For help and advice on what any of the commands does, consult the built in `cf` help functions as follows:-
  39. ```bash
  40. cf help # List the most popular and commonly used commands
  41. cf help -a # Complete list of all possible commands
  42. cf <COMMAND_NAME> --help # Help on a specific command including arguments and examples
  43. ```
  44. Alternatively, seek out the [online documentation][3]. And don't forget, there are loads of great [community plugins for the cf-cli][4] command line tool that can greatly extend its power and usefulness.
  45. ## Contributors
  46. Contributed to `oh_my_zsh` by [benwilcock][2].
  47. [1]: https://docs.cloudfoundry.org/cf-cli/install-go-cli.html
  48. [2]: https://github.com/benwilcock
  49. [3]: https://docs.cloudfoundry.org/cf-cli/getting-started.html
  50. [4]: https://plugins.cloudfoundry.org/