gandi.cli icon indicating copy to clipboard operation
gandi.cli copied to clipboard

Readme "Getting started" outdated

Open PascalPixel opened this issue 4 years ago • 4 comments

If you follow the "Getting started" section of the readme for the v5 version of the site it won't work:

  1. pip install gandi.cli
  2. gandi setup
  3. Api key (xmlrpc) Readme does not mention xmlrpc? Put v5 key I guess?
  4. Environment [production]/ote [hit return]
  5. SSH keyfile [hit return]
  6. Api key (REST) Readme does not mention this step at all. Put v5 key?
  7. gandi domain list
  8. Invalid API key, please use 'Gandi setup' command.
  • Back to step 2?

PascalPixel avatar Mar 26 '20 10:03 PascalPixel

Please fix... this is a blocker.

robrecord avatar Sep 28 '20 12:09 robrecord

@PascalPixel Only "dns" command are compatible with v5 API key (REST) at this time.

So gandi domain list command only use "v4" api key (xmlrpc). You must provide it if you want to list your domains.

grigouze avatar Sep 28 '20 21:09 grigouze

@grigouze: the problem is the v4 is deprecated and to get this apikey (which is different than v5) we should be able to connect to the old interface. So how can I regenerate this key without connecting to the old web interface (which should not be accessible anymore)?

dangoncalves avatar Sep 29 '20 06:09 dangoncalves

@dangoncalves The only solution now is to contact support here https://help.gandi.net/en/contact/api/api-start .

I hope we will implement v5 API for all CLI commands in near future, and then the v4 API key will not be mandatory.

grigouze avatar Sep 29 '20 08:09 grigouze