Gandi / gandi.cli

⚠ ARCHIVED - Command line interface to Gandi.net products using the public API
http://cli.gandi.net/
GNU General Public License v3.0
347 stars 62 forks source link

Readme "Getting started" outdated #303

Open PascalPixel opened 4 years ago

PascalPixel commented 4 years ago

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?
robrecord commented 3 years ago

Please fix... this is a blocker.

grigouze commented 3 years ago

@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.

dangoncalves commented 3 years ago

@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)?

grigouze commented 3 years ago

@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.