{"action":"created","issue":{"url":"https://api.github.com/repos/aws-amplify/amplify-cli/issues/29","repository_url":"https://api.github.com/repos/aws-amplify/amplify-cli","labels_url":"https://api.github.com/repos/aws-amplify/amplify-cli/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/aws-amplify/amplify-cli/issues/29/comments","events_url":"https://api.github.com/repos/aws-amplify/amplify-cli/issues/29/events","html_url":"https://github.com/aws-amplify/amplify-cli/issues/29","id":354146554,"node_id":"MDU6SXNzdWUzNTQxNDY1NTQ=","number":29,"title":"Cannot add auth - command not found","user":{"login":"ericathegreat","id":3344218,"node_id":"MDQ6VXNlcjMzNDQyMTg=","avatar_url":"https://avatars2.githubusercontent.com/u/3344218?v=4","gravatar_id":"","url":"https://api.github.com/users/ericathegreat","html_url":"https://github.com/ericathegreat","followers_url":"https://api.github.com/users/ericathegreat/followers","following_url":"https://api.github.com/users/ericathegreat/following{/other_user}","gists_url":"https://api.github.com/users/ericathegreat/gists{/gist_id}","starred_url":"https://api.github.com/users/ericathegreat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericathegreat/subscriptions","organizations_url":"https://api.github.com/users/ericathegreat/orgs","repos_url":"https://api.github.com/users/ericathegreat/repos","events_url":"https://api.github.com/users/ericathegreat/events{/privacy}","received_events_url":"https://api.github.com/users/ericathegreat/received_events","type":"User","site_admin":false},"labels":[{"id":1034699839,"node_id":"MDU6TGFiZWwxMDM0Njk5ODM5","url":"https://api.github.com/repos/aws-amplify/amplify-cli/labels/windows","name":"windows","color":"fcb088","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-08-27T01:02:18Z","updated_at":"2018-08-27T23:33:57Z","closed_at":null,"author_association":"NONE","body":"**Do you want to request a feature or report a bug?**\r\nBug\r\n\r\n**What is the current behavior?**\r\nAttempting to run \r\n  `amplify auth add`\r\nreturns a \"Command not found\" error, with the suggestion:\r\n  `amplify auth <subcommands>`\r\n  `  add [......]`\r\n\r\nAttempting to run\r\n  `amplify add auth` (inverting 'auth' and 'add') produces the same outcome\r\n\r\nOn the off chance, I also tried\r\n  `amplify add authentication`,\r\nbut this triggered the analytics flow. Analytics seems to be the default? (Running `amplify add anything` also triggered the analytics flow).\r\n\r\nTaking a brief look at the code, it looks like Auth is structured very differently to the other modules. There is no \"auth/add.js\" file in the commands folder, but rather, the add command is listed in the index.js two levels up. (The index.js also looks substantially different to other commands). It seems like maybe it got missed in a code restructure?\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.**\r\n\r\nSee above. \r\n\r\n**What is the expected behavior?**\r\n\r\nRunning `amplify auth add` should start the wizard process to create a cognito user store.\r\n\r\n**Which versions of Amplify CLI, and which  OS are affected by this issue? Did this work in previous versions?**\r\n\r\nAmplify version: 0.1.14 (This is the first version I have used, but I _assume_ this worked previously)\r\nNode version: 8.11.4\r\nNPM version: 5.6.0\r\nOS: Windows 10 (Powershell)\r\n"},"comment":{"url":"https://api.github.com/repos/aws-amplify/amplify-cli/issues/comments/416402141","html_url":"https://github.com/aws-amplify/amplify-cli/issues/29#issuecomment-416402141","issue_url":"https://api.github.com/repos/aws-amplify/amplify-cli/issues/29","id":416402141,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjQwMjE0MQ==","user":{"login":"kaustavghosh06","id":7247658,"node_id":"MDQ6VXNlcjcyNDc2NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/7247658?v=4","gravatar_id":"","url":"https://api.github.com/users/kaustavghosh06","html_url":"https://github.com/kaustavghosh06","followers_url":"https://api.github.com/users/kaustavghosh06/followers","following_url":"https://api.github.com/users/kaustavghosh06/following{/other_user}","gists_url":"https://api.github.com/users/kaustavghosh06/gists{/gist_id}","starred_url":"https://api.github.com/users/kaustavghosh06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaustavghosh06/subscriptions","organizations_url":"https://api.github.com/users/kaustavghosh06/orgs","repos_url":"https://api.github.com/users/kaustavghosh06/repos","events_url":"https://api.github.com/users/kaustavghosh06/events{/privacy}","received_events_url":"https://api.github.com/users/kaustavghosh06/received_events","type":"User","site_admin":false},"created_at":"2018-08-27T23:33:57Z","updated_at":"2018-08-27T23:33:57Z","author_association":"MEMBER","body":"Sure, here you go - https://github.com/aws-amplify/amplify-cli/blob/master/packages/amplify-cli/src/extensions/amplify-helpers/resource-status.js"}}
{"actor":{"display_login":"kaustavghosh06"}}