{"action":"opened","issue":{"url":"https://api.github.com/repos/mitsuhiko/flask/issues/1357","labels_url":"https://api.github.com/repos/mitsuhiko/flask/issues/1357/labels{/name}","comments_url":"https://api.github.com/repos/mitsuhiko/flask/issues/1357/comments","events_url":"https://api.github.com/repos/mitsuhiko/flask/issues/1357/events","html_url":"https://github.com/mitsuhiko/flask/issues/1357","id":58348753,"number":1357,"title":"Support for @blueprint.cli.command","user":{"login":"lnielsen","id":1698163,"avatar_url":"https://avatars.githubusercontent.com/u/1698163?v=3","gravatar_id":"","url":"https://api.github.com/users/lnielsen","html_url":"https://github.com/lnielsen","followers_url":"https://api.github.com/users/lnielsen/followers","following_url":"https://api.github.com/users/lnielsen/following{/other_user}","gists_url":"https://api.github.com/users/lnielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/lnielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lnielsen/subscriptions","organizations_url":"https://api.github.com/users/lnielsen/orgs","repos_url":"https://api.github.com/users/lnielsen/repos","events_url":"https://api.github.com/users/lnielsen/events{/privacy}","received_events_url":"https://api.github.com/users/lnielsen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-20T12:57:19Z","updated_at":"2015-02-20T12:57:19Z","closed_at":null,"body":"It would be great to have access to the functionality of ``app.cli.command`` via blueprints - i.e. something like:\r\n\r\n```python\r\nblueprint = Blueprint('myblueprint', __name__,)\r\n\r\n@blueprint.cli.command()\r\ndef doblueprintstuff():\r\n    \"\"\"Initialize the database.\"\"\"\r\n    #....\r\n```\r\n\r\nIt would help a lot when building modular applications."}}