OpenStackClient
The OpenStackClient CLI (aka OSC) provides users with an improved experience in dealing with the variety of commands and arguments required to interact with OpenStack. It is (will be) a complete substitute for the bundled CLI binaries supplied with the OpenStack project clients. Where possible it utilizes the existing client Python API libraries to minimize duplication of effort.
Contents
Status
Status: In progress
The python-openstackclient
project is underway and has the basic set of commands for the layer 1 APIs implemented: Compute (2), identity (2.0, 3), image (1, 2), object-store (1), and volume (1). Ongoing work can be tracked in the blueprints.
Documentation
- Command Translation - A mapping of the project CLI commands to OSC
- Human Interface Guidelines
- Revised OSCLI Authentication
- Dotfiles - User-specific configuration and state
Project Goals
- Use the OpenStack Python client API modules, extending them as required
- Use consistent naming and structure for commands and arguments
- Provide consistent output formats with optional machine parseable formats
- Use a single-binary approach that also contains an embedded shell that can execute multiple commands on a single authentication (see libvirt's
virsh
for an example) - Independence from the OpenStack project names; only API names are referenced (to the extent possible)
Commands
The OpenStackClient has a consistent and predictable format for all of its commands. There is a list of command actions and the result that can be expected from each of them. Objects may be referenced by one or more words (server
or access token
). The general format of commands is the primary object being manipulated, followed by the action, and optionally an additional object for those commands that manipulate two objects, followed by command-specific options and then any positional arguments required.
There are also global options that control the overall behaviour of OSC, such as supplying authentication credentials or using specific API versions. All options are what is commonly known as 'long options' in that they are one or more words preceded by two dashes ('--') and using a single dash internally to replace spaces. Most global options also have corresponding environment variables for convenience.
Dotfiles
[Status: Proposal]
OpenStackClient keeps local state and configuration information in the usual UNIX manner, specifically in the current user's home directory in ~/.openstack
.
Releases
Related projects
- Project Python API libraries (python-cinderclient, python-glanceclient, python-keystoneclient, python-novaclient)
- Previous work in this vein is at UnifiedCommandLineClient
- A Perl implementation is at https://metacpan.org/module/oscompute
- The original version of this page is at UnifiedCLI