Statistics
| Branch: | Tag: | Revision:

root / docs / man / kamaki.rst @ 0ea31480

History | View | Annotate | Download (6.9 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
quotaholder
68

    
69
    A client for quotaholder API. to enable:
70
    kamaki config set quotaholder.cli hotaholder
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
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
user 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
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
* members       Get image members
156
* meta          Get image metadata
157
* properties    Get properties related to OS installation in an image
158
* list          List images accessible by user
159
* register      (Re)Register an image
160
* setmembers    Set the members of an image
161
* setproperty   Update an existing property in an image
162
* shared        List images shared by a member
163
* compute       Compute Image API commands
164
    * list          List images
165
    * delete        Delete image
166
    * info          Get image details
167
    * properties    Get image properties
168
    * delproperty   Delete an image property
169
    * setproperty   Update an image property
170

    
171

    
172
network commands
173
****************
174

    
175
* connect       Connect a server to a network
176
* create        Create an (unconnected) network
177
* delete        Delete a network
178
* disconnect    Disconnect a nic that connects a server to a network
179
* info          Detailed information on a network
180
* list          List networks
181
* rename        Set the name of a network
182

    
183

    
184
file commands
185
**************
186

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

    
222

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

    
226
accept, ack, add, create, get, init, issue, list, query, reject, release, reset, resolve, set
227

    
228

    
229
test commands (hidden)
230
**********************
231

    
232
* all         test all clients
233
* args        test how arguments are treated by kamaki
234
* astakos     test Astakos client
235
* cyclades    test Cyclades client
236
* error       Create an error message with optional message
237
* image       test Image client
238
* pithos      test Pithos client
239
* prints      user-test print methods for lists and dicts
240

    
241

    
242
Author
243
------
244

    
245
GRNET development team <synnefo-devel@googlegroups.com>.
246