These commands give you information about your account, and are independent of any one application.
There are a number of different ways you can use the af login
command. Which one you use depends on how much information you want to provide on the command line, and how much you want to manually enter. If you are using a script, you may want to pass both e-mail and password on the command line; however that will expose your password in plain text. Here are the different ways to enter the command:
$ af login Attempting login to [https://api.appfog.com] Email: [email protected] Password: ******** Successfully logged into [https://api.appfog.com] $ af login [email protected] Attempting login to [https://api.appfog.com] Password: ******** Successfully logged into [https://api.appfog.com] $ af login --email [email protected] --passwd mypassword Attempting login to [https://api.appfog.com] Successfully logged into [https://api.appfog.com]
Another interesting command to point out is the af info
command. This will give you statistics for your account. This will tell you how much memory you are using out of your allocated amount, how many services you have configured, and how many apps you have installed. The following is an example of the output:
$ af info AppFog Free Your Cloud Edition For support visit http://support.appfog.com Target: https://api.appfog.com (v0.999) Client: v0.3.18.12 User: [email protected] Usage: Memory (1.1G of 2.0G total) Services (1 of 8 total) Apps (2 of 9999 total)
3.14.134.17