In this recipe, you will learn how to view your account details using
To complete this recipe, you will need to have
rhc installed on your machine. Refer to the Installing the OpenShift rhc command-line client recipe for instructions.
To view the account details, run the
rhc account command as follows:
$ rhc account
This is all you need to do to view the account details.
rhc account command shows details about the currently logged-in user. When you run the command, it makes a REST call to the OpenShift REST API using the authentication token generated during
rhc setup. The REST API returns a JSON response, which
rhc will render in a human-readable format:
$ rhc ...