Statistics
| Branch: | Tag: | Revision:

root / docs / man / kamaki.rst @ 395fbf9e

History | View | Annotate | Download (6.6 kB)

1
:orphan:
2

    
3
kamaki tool manual page
4
=======================
5

    
6
Synopsis
7
--------
8

    
9
**kamaki** [*group*] [*command*] [...] [*options*]
10

    
11

    
12
Description
13
-----------
14

    
15
:program:`kamaki` is a simple, yet intuitive, command-line tool for managing 
16
clouds. It can be used in three forms: as an interactive shell, as a command line tool or as a clients API for other applications.
17

    
18
To run kamaki as an interactive shell, type
19

    
20
    kamaki
21

    
22
To run kamaki as tool type
23

    
24
    kamaki <group> <command> [...] [options]
25

    
26
The kamaki clients API can be imported in python applications as kamaki.clients
27

    
28

    
29
List of available command groups:
30

    
31
config
32

    
33
    Edit configuration options. Config options are stored in ~/.kamakirc file.
34

    
35
history
36

    
37
    Access kamaki user history, which is stored in ~/.kamaki.history file.
38

    
39
user
40

    
41
    Get information from Astakos API
42

    
43
server
44

    
45
    Manage compute API virtual machines.
46

    
47
flavor
48

    
49
    Manage compute API flavors.
50

    
51
network
52

    
53
    Manage compute API networks.
54

    
55
image 
56

    
57
    Manage images on Plankton (and Compute).
58

    
59
file
60

    
61
    Manage Pithos+ API.
62

    
63

    
64
Hidden command groups
65
---------------------
66

    
67
livetest
68

    
69
    LIve tests that check kamaki against running services. To enable:
70
    kamaki config set livetest.cli livetest
71

    
72

    
73
Options
74
-------
75

    
76
.. code-block:: console
77

    
78
    --help, -h              Show help message and exit.
79
    -v                      Use verbose output.
80
    -d                      Use debug output.
81
    -o KEY=VAL              Override a config value (can be used multiple times)
82

    
83

    
84
Commands
85
--------
86

    
87
config commands
88
***************
89

    
90
* list       list configuration options
91
* get        get a configuration option
92
* set        set a configuration option
93
* del        delete a configuration option
94

    
95

    
96
history commands
97
****************
98

    
99
Command user history, as stored in ~/.kamaki.history
100

    
101
* show      show intersession history
102
* clean     clean up history
103
* run       run/show previously executed command(s)
104

    
105

    
106
user commands
107
*************
108

    
109
* authenticate      Authenticate a user, show user information
110

    
111

    
112
server commands
113
***************
114

    
115
* addr      List the addresses of all network interfaces on a server (VM)
116
* console   Get a VNC console to access an existing server (VM)
117
* create    Create a server (aka Virtual Machine)
118
* delete    Delete a server (VM)
119
* delmeta   Delete server (VM) metadata
120
* firewall  Set the server (VM) firewall profile on VMs public network
121
* info      Detailed information on a Virtual Machine
122
* list      List Virtual Machines accessible by user
123
* meta      Get a server's metadatum
124
* reboot    Reboot a server (VM)
125
* rename    Set/update a server (VM) name
126
* setmeta   set server (VM) metadata
127
* shutdown  Shutdown an active server (VM)
128
* start     Start an existing server (VM)
129
* stats     Get server (VM) statistics
130
* wait      Wait for server to finish [BUILD, STOPPED, REBOOT, ACTIVE]
131

    
132

    
133
flavor commands
134
***************
135

    
136
* list       list flavors
137
* info       get flavor details
138

    
139

    
140
image commands
141
**************
142

    
143
* list           List images accessible by user
144
* meta           Get image metadata
145
* register       (Re)Register an image
146
* unregister     Unregister an image (does not delete the image file)
147
* shared         List shared images
148
    * compute        Compute Image API commands
149
    * list       List images
150
    * delete     Delete image
151
    * info       Get image details
152
    * properties Manage properties related to OS installation in an image
153
        * add    Add a property to an image
154
        * delete Delete a property from an image
155
        * get    Get an image property
156
        * list   List all image properties
157
        * set    Add / update a set of properties for an image
158
* members        Manage members (users who can modify an image)
159
    * add        Add a member to an image
160
    * delete     Remove a member from an image
161
    * list       List members of an image
162
    * set        Set the members of an image
163

    
164

    
165
network commands
166
****************
167

    
168
* connect       Connect a server to a network
169
* create        Create an (unconnected) network
170
* delete        Delete a network
171
* disconnect    Disconnect a nic that connects a server to a network
172
* info          Detailed information on a network
173
* list          List networks
174
* rename        Set the name of a network
175

    
176

    
177
file commands
178
**************
179

    
180
* append         Append local file to remote
181
* cat            Print a file to console
182
* copy           Copy an object
183
* containerlimit Container size limit commands
184
    * set        Set container data limit
185
    * get        Get container data limit
186
* create         Create a container
187
* delete         Delete a container [or an object]
188
* download       Download a file or directory
189
* group          Manage access groups and group members
190
    * delete     Delete a user group
191
    * get        Get groups and group members
192
    * set        Set a user group
193
* hashmap        Get the hashmap of an object
194
* info           Get information for account [, container [or object]]
195
* list           List containers, object trees or objects in a directory
196
* manifest       Create a remote file with uploaded parts by manifestation
197
* metadata       Metadata are attached on objects (key:value pairs)
198
    * delete     Delete metadata with given key
199
    * get        Get metadatum
200
    * set        Set a piece of metadata
201
* mkdir          Create a directory
202
* move           Copy an object
203
* overwrite      Overwrite part (from start to end) of a remote file
204
* permissions    Manage user and group accessibility for objects
205
    * delete     Delete all permissions set on object
206
    * get        Get read and write permissions of an object
207
    * set        Set permissions for an object
208
* publish        Publish an object
209
* purge          Purge a container
210
* quota          Get  quota for account
211
* sharers        List the accounts that share objects with default account
212
* touch          Create an empty object (file)
213
* truncate       Truncate remote file up to a size
214
* unpublish      Unpublish an object
215
* upload         Upload a file or directory
216
* versioning     Manage the versioning scheme of current pithos user account
217
    * get        Get  versioning for account or container
218
    * set        Set versioning mode (auto, none) for account or container
219
    * versions   Get the version list of an object
220

    
221

    
222
test commands (hidden)
223
**********************
224

    
225
* all         test all clients
226
* args        test how arguments are treated by kamaki
227
* astakos     test Astakos client
228
* cyclades    test Cyclades client
229
* error       Create an error message with optional message
230
* image       test Image client
231
* pithos      test Pithos client
232
* prints      user-test print methods for lists and dicts
233

    
234

    
235
Author
236
------
237

    
238
Synnefo development team <synnefo-devel@googlegroups.com>.
239