keystone command-line client example usage Before you can use keystone client commands, you must download and source an OpenStack RC file. For information, see the OpenStack Admin User Guide. The keystone command-line client uses the following syntax: $ keystone PARAMETER COMMAND ARGUMENT For example, you can run the user-list and tenant-create commands, as follows: # Using OS_SERVICE_ENDPOINT and OS_SERVICE_TOKEN environment variables $ export OS_SERVICE_ENDPOINT=http://127.0.0.1:5000/v2.0/ $ export OS_SERVICE_TOKEN=secrete_token $ keystone user-list $ keystone tenant-create --name demo # Using --os-token and os-endpoint parameters $ keystone --os-token token --os-endpoint endpoint user-list $ keystone --os-token token --os-endpoint endpoint tenant-create --name demo # Using OS_USERNAME, OS_PASSWORD, and OS_TENANT_NAME environment variables $ export OS_USERNAME=admin $ export OS_PASSWORD=secrete $ export OS_TENANT_NAME=admin $ keystone user-list $ keystone tenant-create --name demo # Using tenant_id parameter $ keystone user-list --tenant-id id # Using --name, --description, and --enabled parameters $ keystone tenant-create --name demo --description "demo tenant" --enabled true For information about using the keystone client commands to create and manage users, roles, and projects, see the OpenStack Admin User Guide.