<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello everyone,<br>
    <br>
    <br>
    I made a first version of a command line interface for Rudder API.<br>
    I am calling for comments on it before it becomes a stable command
    included with Rudder.<br>
    <br>
    You can find it here: <a class="moz-txt-link-freetext" href="https://github.com/peckpeck/rudder-api-client">https://github.com/peckpeck/rudder-api-client</a><br>
    <br>
    Here is how it works: I first made a python library that is a simple
    mapping of the API (auto generated from the documentation).<br>
    This means that you can use it in your python code.<br>
    I then created a command line in python that uses it with almost the
    same named ans parameters.<br>
    <br>
    For now, you will have to clone the repo to use it for now. The full
    steps are in the README.md. There are little dependencies (python 2
    or 3, docopt and requests)<br>
    <br>
    <br>
    <br>
    The command line is build on git model, with commands and
    subcommands. Here is an example usage :<br>
      rudder-cli node list_pending<br>
      rudder-cli node accept fb1d6f5a-0929-4f18-a574-7b37febc2896<br>
    <br>
    The command accept singular and plural form for the subcommand name.<br>
    <br>
    If you want to use json instead of arguments to pass parameters, you
    can add a -j option '-j -' will read from stdin.<br>
    JSON overrides command line parameters (wich in turn override
    configuration file parameters). This allow you to use your preferred
    form of call.<br>
    <br>
    <br>
    Finally for missing commands or for debugging the API, you can use
    this subcommand:<br>
      rudder-cli api GET /api/nodes<br>
    <br>
    <br>
    <br>
    I hope you will like it, but whether you like it or not, please tell
    me what you you think so that we can get the best of this cli.<br>
    <br>
    <br>
    Benoît<br>
    <div class="moz-signature">-- <br>
      <style type="text/css">
<!--
   a.redlink:link { color: #962322; }
   a.redlink:visited { color: #962322; }
  .sig { font-family: sans-serif; font-size: small; }
  .sigsmall { font-family: sans-serif; font-size: x-small; }
-->
</style>
      <table cellpadding="0" cellspacing="2" border="0" width="380">
        <tbody>
          <tr>
            <td colspan="2">
              <hr></td>
          </tr>
          <tr>
            <td colspan="2"><b><img alt=""
                  src="cid:part1.02060701.07080007@normation.com"
                  align="left" height="50" hspace="10" width="50">
                <span class="sig">Benoît PECCATTE</span></b><br>
              <span class="sig"><i>Responsable cloud development</i></span><br>
              <span class="sig"><a class="redlink"
                  href="http://www.normation.com">Normation</a></span> </td>
          </tr>
          <tr>
            <td colspan="2">
              <hr></td>
          </tr>
          <tr>
            <td colspan="2"><span class="sigsmall"><b>87, Rue de
                  Turbigo, 75003 Paris, France</b></span></td>
          </tr>
          <tr>
            <td><span class="sigsmall">Phone:</span></td>
            <td><span class="sigsmall">+33 (0)1 85 08 48 96</span></td>
          </tr>
          <!--<tr>
                        <td><span class="sigsmall">Mobile:</span></td>
                        <td><span class="sigsmall">+33 (0)6 XX XX XX XX</span></td>
          </tr>--> <tr>
            <td colspan="2">
              <hr></td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>