{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/3927","repository_url":"https://api.github.com/repos/meteor/meteor","labels_url":"https://api.github.com/repos/meteor/meteor/issues/3927/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/3927/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/3927/events","html_url":"https://github.com/meteor/meteor/issues/3927","id":60895432,"number":3927,"title":"`meteor shell` should support executing scripts","user":{"login":"iameli","id":257909,"avatar_url":"https://avatars.githubusercontent.com/u/257909?v=3","gravatar_id":"","url":"https://api.github.com/users/iameli","html_url":"https://github.com/iameli","followers_url":"https://api.github.com/users/iameli/followers","following_url":"https://api.github.com/users/iameli/following{/other_user}","gists_url":"https://api.github.com/users/iameli/gists{/gist_id}","starred_url":"https://api.github.com/users/iameli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iameli/subscriptions","organizations_url":"https://api.github.com/users/iameli/orgs","repos_url":"https://api.github.com/users/iameli/repos","events_url":"https://api.github.com/users/iameli/events{/privacy}","received_events_url":"https://api.github.com/users/iameli/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meteor/meteor/labels/feature","name":"feature","color":"02d7e1"},{"url":"https://api.github.com/repos/meteor/meteor/labels/Project:Tool:Shell","name":"Project:Tool:Shell","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-03-12T20:32:30Z","updated_at":"2016-05-12T04:52:24Z","closed_at":null,"body":"***1 Upvote*** I'd like to be able to call files `meteor shell` so I can run arbitrary scripts within the context of a Meteor server. @meonkeys [provides a workaround here](http://stackoverflow.com/questions/28396923/can-i-run-a-one-liner-using-meteor-shell/29018889#29018889) but it would be nice to have something built into core.\r\n\r\nPerhaps `meteor shell -f script.js` could be the syntax?\r\n\r\nOur specific use case involves data generation in a test environment. We'd like to be able to tell our CI server \"create this meteor server, run this data generator, expect these results\", but the data generator calls code within the Meteor application."},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/218659924","html_url":"https://github.com/meteor/meteor/issues/3927#issuecomment-218659924","issue_url":"https://api.github.com/repos/meteor/meteor/issues/3927","id":218659924,"user":{"login":"mitar","id":585279,"avatar_url":"https://avatars.githubusercontent.com/u/585279?v=3","gravatar_id":"","url":"https://api.github.com/users/mitar","html_url":"https://github.com/mitar","followers_url":"https://api.github.com/users/mitar/followers","following_url":"https://api.github.com/users/mitar/following{/other_user}","gists_url":"https://api.github.com/users/mitar/gists{/gist_id}","starred_url":"https://api.github.com/users/mitar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitar/subscriptions","organizations_url":"https://api.github.com/users/mitar/orgs","repos_url":"https://api.github.com/users/mitar/repos","events_url":"https://api.github.com/users/mitar/events{/privacy}","received_events_url":"https://api.github.com/users/mitar/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T04:52:24Z","updated_at":"2016-05-12T04:52:24Z","body":"If `meteor shell -e \".load -\"`means load a script from stdin. :-)"}}