{"action":"opened","issue":{"url":"https://api.github.com/repos/sveltejs/svelte/issues/1360","repository_url":"https://api.github.com/repos/sveltejs/svelte","labels_url":"https://api.github.com/repos/sveltejs/svelte/issues/1360/labels{/name}","comments_url":"https://api.github.com/repos/sveltejs/svelte/issues/1360/comments","events_url":"https://api.github.com/repos/sveltejs/svelte/issues/1360/events","html_url":"https://github.com/sveltejs/svelte/issues/1360","id":316509563,"number":1360,"title":"Integrate CLI?","user":{"login":"Rich-Harris","id":1162160,"avatar_url":"https://avatars3.githubusercontent.com/u/1162160?v=4","gravatar_id":"","url":"https://api.github.com/users/Rich-Harris","html_url":"https://github.com/Rich-Harris","followers_url":"https://api.github.com/users/Rich-Harris/followers","following_url":"https://api.github.com/users/Rich-Harris/following{/other_user}","gists_url":"https://api.github.com/users/Rich-Harris/gists{/gist_id}","starred_url":"https://api.github.com/users/Rich-Harris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rich-Harris/subscriptions","organizations_url":"https://api.github.com/users/Rich-Harris/orgs","repos_url":"https://api.github.com/users/Rich-Harris/repos","events_url":"https://api.github.com/users/Rich-Harris/events{/privacy}","received_events_url":"https://api.github.com/users/Rich-Harris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-21T17:27:10Z","updated_at":"2018-04-21T17:27:10Z","closed_at":null,"author_association":"OWNER","body":"Raised this in Gitter, but it deserves an issue: should we move [svelte-cli](https://github.com/sveltejs/svelte-cli) into this repo?\r\n\r\nWe often tell people not to use the CLI, for good reason, but the reality is that it *does* make sense for some people, and it could be the easiest way to try Svelte out:\r\n\r\n```bash\r\necho \"<h1>Hello {name}</h1>\" > Test.html\r\nnpx svelte compile Test.html\r\n```\r\n\r\nThat doesn't work at the moment — you'd have to do this, which is much less elegant:\r\n\r\n```bash\r\necho \"<h1>Hello {name}</h1>\" > Test.html\r\nnpx svelte --package svelte-cli compile Test.html\r\n```\r\n\r\nWe can't not have a CLI, so we should try and at least make it good. Keeping it here would ensure that it was better maintained. And it doesn't add much overhead to the package. I know that the trend for CLIs has generally been in the other direction, but I don't think there's really a good reason for it other than some misplaced sentiment that modularity is more important than user experience.\r\n\r\nThoughts?"}}
{"actor":{"display_login":"Rich-Harris"}}