getting started with anynines - the cf command line tool
DESCRIPTION
This workshop gives a short introduction on how to use the anynines Platform as a Service using the cf command line client.TRANSCRIPT
anynines(CF) usage
• User Login
• Space Management
• App Deployment & Management
• Logs, Console Access & Application Environment
• Service Management
Dienstag, 18. Februar 14
Prerequisites
• Install a Ruby runtime
• gem install a9s
• includes the cf client
Dienstag, 18. Februar 14
cf - client
• communicates with the Cloud Controller
• central tool for managing applications/services and domains
• enables access to log information
• enables console access to applications running in the cloud
Dienstag, 18. Februar 14
User Login
• cf target <api endpoint> -> choose your target cloud
• cf target https://api.de.a9s.eu
• cf login -> login to the cloud
• cf target -> display information about the cloud status
Dienstag, 18. Februar 14
Space Management
• cf spaces -> list all spaces within the current organization
• cf target -s <space name> -> switch into a space
• cf apps -> list all applications within the current space
Dienstag, 18. Februar 14
App Deployment
• cf push
• starts a dialog based deployment process
• uploads and installs the application after filling in the required information
• creates a deployment manifest file on demand
Dienstag, 18. Februar 14
App Management
• cf start / stop / restart <app name>
• cf delete <app name>
• cf scale <app name>
• set # of instances
• set amount of ram per instance
Dienstag, 18. Februar 14
Log & Console Access
• cf console <app name> - console access to the running application
• cf logs <app name> - display the logs for an application
• cf crashlogs <app name> - display logs for crashed applications
• cf events <app name> - display events for an application
• cf env <app name> - display the app environment information
Dienstag, 18. Februar 14
Service Management
• cf create-service - creates a new service instance
• cf delete-service - deletes a service instance
• cf bind-service - binds a service to an app
• cf unbind-service - unbinds a service from an app
Dienstag, 18. Februar 14
Links
• Anynines - http://anynines.com
• Support - https://support.anynines.com
• Avarteq GmbH - http://avarteq.de
• For further questions feel free to contact me at [email protected]
Dienstag, 18. Februar 14