Statistics
| Branch: | Tag: | Revision:

root / docs / man / kamaki.rst @ 5b879b16

History | View | Annotate | Download (6.7 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
astakos
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 compute API and Plankton images.
58

    
59
store
60

    
61
    Manage store API.
62

    
63

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

    
67
quotaholder
68

    
69
    A client for quotaholder API. to enable:
70
    kamaki config set quotaholder.cli hotaholder_cli
71
    kamaki config set quotaholder.url <quotaholder server url>
72

    
73
livetest
74

    
75
    LIve tests that check kamaki against running services. To enable:
76
    kamaki config set livetest.cli livetest_cli
77

    
78

    
79
Options
80
-------
81

    
82
.. code-block:: console
83

    
84
    --help, -h              Show help message and exit.
85
    -v                      Use verbose output.
86
    -d                      Use debug output.
87
    -o KEY=VAL              Override a config value (can be used multiple times)
88

    
89

    
90
Commands
91
--------
92

    
93
config commands
94
***************
95

    
96
* list       list configuration options
97
* get        get a configuration option
98
* set        set a configuration option
99
* del        delete a configuration option
100

    
101

    
102
history commands
103
****************
104

    
105
Command user history, as stored in ~/.kamaki.history
106

    
107
* show      show intersession history
108
* clean     clean up history
109
* run       run/show previously executed command(s)
110

    
111

    
112
astakos commands
113
****************
114

    
115
* authenticate      Authenticate a user, show user information
116

    
117

    
118
server commands
119
***************
120

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

    
138

    
139
flavor commands
140
***************
141

    
142
* list       list flavors
143
* info       get flavor details
144

    
145

    
146
image commands and options
147
**************************
148

    
149
* addmember     Add a member to an image
150
* addproperty   Add an OS-related property to an image
151
* delete        Delete an image (image file remains intact)
152
* delmember     Remove a member from an image
153
* delproperty   Delete a property of an image
154
* info          Get detailed information on an image
155
* list          List images
156
* members       Get image members
157
* meta          Get image metadata
158
* properties    Get properties related to OS installation in an image
159
* public        List public images
160
* register      (Re)Register an image
161
* setmembers    Set the members of an image
162
* setproperty   Update an existing property in an image
163
* shared        List images shared by a member
164

    
165

    
166
network commands
167
****************
168

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

    
177

    
178
store commands
179
**************
180

    
181
* append            Append local file to (existing) remote object
182
* cat               Print remote file contents to console
183
* copy              Copy an object from container to (another) container
184
* create            Create a container
185
* delete            Delete a container [or an object]
186
* delgroup          Delete a user group
187
* delmeta           Delete metadata from account, container or object
188
* delpermissions    Delete all permissions set on object
189
* download          Download remote object as local file
190
* group             Get groups and group members
191
* hashmap           Get the hash-map of an object
192
* info              Get detailed info for account, containers or objects
193
* list              List containers, object trees or objects in a directory
194
* manifest          Create a remote file of uploaded parts by manifestation
195
* meta              Get metadata for account, containers or objects
196
* mkdir             Create a directory
197
* move              Copy an object
198
* overwrite         Overwrite part (from start to end) of a remote file
199
* permissions       Get read and write permissions of an object
200
* publish           Publish the object and print the public url
201
* purge             Delete a container and release related data blocks
202
* quota             Get quota (in KB) for account or container
203
* setgroup          Set a user group
204
* setmeta           Set a piece of metadata for account, container or object
205
* setpermissions    Set permissions for an object
206
* setquota          Set new quota (in KB) for account or container
207
* setversioning     Set versioning mode (auto, none) for account or container
208
* sharers           List the accounts that share objects with current user
209
* touch             Create an empty object (file)
210
* truncate          Truncate remote file up to a size
211
* unpublish         Unpublish an object
212
* upload            Upload a file
213
* versioning        Get  versioning for account or container
214
* versions          Get the list of object versions
215

    
216

    
217
quotaholder commands (hidden)
218
*****************************
219

    
220
accept, ack, add, create, get, init, issue, list, query, reject, release, reset, resolve, set
221

    
222

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

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

    
235

    
236
Author
237
------
238

    
239
GRNET development team <synnefo-devel@googlegroups.com>.
240