Command-line Tool Reference¶
In order to use the CLI, you must provide your OpenStack username,
password, tenant, and auth endpoint. Use the corresponding
configuration options (--os-username
, --os-password
,
--os-project-id
, and --os-auth-url
) or set them in environment
variables:
export OS_USERNAME=user
export OS_PASSWORD=pass
export OS_PROJECT_ID=b363706f891f48019483f8bd6503c54b
export OS_AUTH_URL=http://auth.example.com:5000/v2.0
The command line tool will attempt to reauthenticate using your
provided credentials for every request. You can override this behavior
by manually supplying an auth token using --os-image-url
and
--os-auth-token
. You can alternatively set these environment
variables:
export OS_IMAGE_URL=http://glance.example.org:9292/
export OS_AUTH_TOKEN=3bcc3d3a03f44e3d8377f9247b0ad155
Once you’ve configured your authentication parameters, you can run
glance help
to see a complete listing of available commands.
- Image service (glance) command-line client
- glance usage
- glance optional arguments
- glance explain
- glance image-create
- glance image-deactivate
- glance image-delete
- glance image-download
- glance image-list
- glance image-reactivate
- glance image-show
- glance image-tag-delete
- glance image-tag-update
- glance image-update
- glance image-upload
- glance import-info
- glance image-stage
- glance image-import
- glance image-create-via-import
- glance location-add
- glance location-delete
- glance location-update
- glance md-namespace-create
- glance md-namespace-delete
- glance md-namespace-import
- glance md-namespace-list
- glance md-namespace-objects-delete
- glance md-namespace-properties-delete
- glance md-namespace-resource-type-list
- glance md-namespace-show
- glance md-namespace-tags-delete
- glance md-namespace-update
- glance md-object-create
- glance md-object-delete
- glance md-object-list
- glance md-object-property-show
- glance md-object-show
- glance md-object-update
- glance md-property-create
- glance md-property-delete
- glance md-property-list
- glance md-property-show
- glance md-property-update
- glance md-resource-type-associate
- glance md-resource-type-deassociate
- glance md-resource-type-list
- glance md-tag-create
- glance md-tag-create-multiple
- glance md-tag-delete
- glance md-tag-list
- glance md-tag-show
- glance md-tag-update
- glance member-create
- glance member-delete
- glance member-list
- glance member-update
- glance task-create
- glance task-list
- glance task-show
- Image service property keys
- glance CLI man page