diff options
| author | Rui Chen <chenrui.momo@gmail.com> | 2017-02-27 14:35:05 +0800 |
|---|---|---|
| committer | Rui Chen <chenrui.momo@gmail.com> | 2017-03-06 08:34:28 +0000 |
| commit | dee22d8faa0c8a0da1d6ff62c0997c2cc770b759 (patch) | |
| tree | e6463efc79b4abd27170c96233085eddc5b91419 /doc/source/command-objects | |
| parent | 69b7b9b0592d3699a02bb8d17539c20749281b8d (diff) | |
| download | python-openstackclient-dee22d8faa0c8a0da1d6ff62c0997c2cc770b759.tar.gz | |
Add "--private-key" option for "keypair create"
Aim to specify the private key file to save when keypair
is created. That is a convenient way to save private key
in OSC interactive mode, avoid to copy CLI output, then
paste it into file.
Change-Id: I119d2f2a3323d17ecbe3de4e27f35e1ceef6e0a5
Closes-Bug: #1549410
Diffstat (limited to 'doc/source/command-objects')
| -rw-r--r-- | doc/source/command-objects/keypair.rst | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/source/command-objects/keypair.rst b/doc/source/command-objects/keypair.rst index 47acf7f2..a539f0a2 100644 --- a/doc/source/command-objects/keypair.rst +++ b/doc/source/command-objects/keypair.rst @@ -18,13 +18,18 @@ Create new public or private key for server ssh access .. code:: bash openstack keypair create - [--public-key <file>] + [--public-key <file> | --private-key <file>] <name> .. option:: --public-key <file> Filename for public key to add. If not used, creates a private key. +.. option:: --private-key <file> + + Filename for private key to save. If not used, print private key in + console. + .. describe:: <name> New public or private key name |
