{"action":"created","issue":{"url":"https://api.github.com/repos/Gandi/gandi.cli/issues/255","repository_url":"https://api.github.com/repos/Gandi/gandi.cli","labels_url":"https://api.github.com/repos/Gandi/gandi.cli/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/Gandi/gandi.cli/issues/255/comments","events_url":"https://api.github.com/repos/Gandi/gandi.cli/issues/255/events","html_url":"https://github.com/Gandi/gandi.cli/issues/255","id":322219492,"number":255,"title":"Unable to use CLI with API Token","user":{"login":"oncletom","id":138627,"avatar_url":"https://avatars0.githubusercontent.com/u/138627?v=4","gravatar_id":"","url":"https://api.github.com/users/oncletom","html_url":"https://github.com/oncletom","followers_url":"https://api.github.com/users/oncletom/followers","following_url":"https://api.github.com/users/oncletom/following{/other_user}","gists_url":"https://api.github.com/users/oncletom/gists{/gist_id}","starred_url":"https://api.github.com/users/oncletom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oncletom/subscriptions","organizations_url":"https://api.github.com/users/oncletom/orgs","repos_url":"https://api.github.com/users/oncletom/repos","events_url":"https://api.github.com/users/oncletom/events{/privacy}","received_events_url":"https://api.github.com/users/oncletom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-11T08:54:27Z","updated_at":"2018-05-12T06:37:32Z","closed_at":null,"author_association":"NONE","body":"```\r\n$ gandi --version\r\nGandi CLI 1.2\r\n\r\nCopyright: © 2014-2018 Gandi S.A.S.\r\nLicense: GPL-3\r\n\r\n$ uname -a\r\nDarwin brillat-savarin 17.5.0 Darwin Kernel Version 17.5.0: Fri Apr 13 19:32:32 PDT 2018; root:xnu-4570.51.2~1/RELEASE_X86_64 x86_64\r\n```\r\n\r\nI ran the setup and that's what happened:\r\n\r\n```\r\n$ gandi setup\r\nWelcome to GandiCLI, let's configure a few things before we start.\r\n\r\nApi key (xmlrpc) [g20u5o...]:\r\nEnvironnment [production]/ote:\r\nSSH keyfile [~/.ssh/id_rsa.pub]:\r\nApi key (REST) [BTnZGD...]:\r\n```\r\n\r\nI then faced only problems and errors:\r\n\r\n```\r\n$ gandi vm create\r\nPlease check that you are connecting to the good api 'https://rpc.gandi.net/xmlrpc/' and that it's running.\r\n```\r\n\r\n😢 welp\r\n\r\n```\r\n$ gandi domain list\r\nInvalid API key, please use 'gandi setup' command.\r\n```\r\n\r\n😢 (I just ran the setup)\r\n\r\nI thought it would be easy but I reckon I'm running in circles.\r\n\r\n# Suggestions\r\n\r\n## What API key are you talking about?\r\n\r\nI got confused at first when I read `Production API key for LiveDNS` on the security page. I thought it was not the right API key as cli mentions `xmlrpc`.\r\n\r\nAt this stage, I no longer understand what's happening. xmlrpc? REST? LiveDNS?\r\nI only wanted to use the CLI 😢 \r\n\r\n## Easier to copy token\r\n\r\n![image](https://user-images.githubusercontent.com/138627/39913765-52e1089a-5503-11e8-9ac9-d495d6992c17.png)\r\n"},"comment":{"url":"https://api.github.com/repos/Gandi/gandi.cli/issues/comments/388534421","html_url":"https://github.com/Gandi/gandi.cli/issues/255#issuecomment-388534421","issue_url":"https://api.github.com/repos/Gandi/gandi.cli/issues/255","id":388534421,"user":{"login":"oncletom","id":138627,"avatar_url":"https://avatars0.githubusercontent.com/u/138627?v=4","gravatar_id":"","url":"https://api.github.com/users/oncletom","html_url":"https://github.com/oncletom","followers_url":"https://api.github.com/users/oncletom/followers","following_url":"https://api.github.com/users/oncletom/following{/other_user}","gists_url":"https://api.github.com/users/oncletom/gists{/gist_id}","starred_url":"https://api.github.com/users/oncletom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oncletom/subscriptions","organizations_url":"https://api.github.com/users/oncletom/orgs","repos_url":"https://api.github.com/users/oncletom/repos","events_url":"https://api.github.com/users/oncletom/events{/privacy}","received_events_url":"https://api.github.com/users/oncletom/received_events","type":"User","site_admin":false},"created_at":"2018-05-12T06:37:32Z","updated_at":"2018-05-12T06:37:32Z","author_association":"NONE","body":"> The API REST key is only for livedns commands\r\n\r\nHm, I'm confused:\r\n\r\n<img width=\"596\" alt=\"image\" src=\"https://user-images.githubusercontent.com/138627/39954350-3b1bbea6-55be-11e8-969e-d3bc277f1583.png\">\r\n\r\nWhat I am trying to tell is it's hard to understand _who's who_ when installing the CLI for the first time. Even by reading the documentation step by step.\r\n\r\nNew concepts are added at CLI setup question without being given a chance to understand.\r\n\r\nThis feels enough for me:\r\n\r\n```\r\n$ gandi setup\r\nWelcome to GandiCLI :-)\r\n\r\nAPI key [g20u5o...]:\r\nSSH keyfile [~/.ssh/id_rsa.pub]:\r\n```\r\n\r\nAnd in case we don't have an API key yet:\r\n\r\n```\r\n$ gandi setup\r\nWelcome to GandiCLI :-)\r\n\r\nAPI key (get it from https://account.gandi.net/security):\r\nSSH keyfile:\r\n```"}}
{"actor":{"display_login":"oncletom"}}