{"comment":{"url":"https://api.github.com/repos/shotgunsoftware/tk-core/comments/10160382","html_url":"https://github.com/shotgunsoftware/tk-core/commit/e27ecc7cfaeb11d66c0804435d94293329f35f0d#commitcomment-10160382","id":10160382,"user":{"login":"manneohrstrom","id":337710,"avatar_url":"https://avatars.githubusercontent.com/u/337710?v=3","gravatar_id":"","url":"https://api.github.com/users/manneohrstrom","html_url":"https://github.com/manneohrstrom","followers_url":"https://api.github.com/users/manneohrstrom/followers","following_url":"https://api.github.com/users/manneohrstrom/following{/other_user}","gists_url":"https://api.github.com/users/manneohrstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/manneohrstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manneohrstrom/subscriptions","organizations_url":"https://api.github.com/users/manneohrstrom/orgs","repos_url":"https://api.github.com/users/manneohrstrom/repos","events_url":"https://api.github.com/users/manneohrstrom/events{/privacy}","received_events_url":"https://api.github.com/users/manneohrstrom/received_events","type":"User","site_admin":false},"position":33,"line":1133,"path":"scripts/tank_cmd.py","commit_id":"e27ecc7cfaeb11d66c0804435d94293329f35f0d","created_at":"2015-03-12T10:06:43Z","updated_at":"2015-03-12T10:06:43Z","body":"Some high level thoughts here:\r\n\r\n- Typing in `tank` gives me a list of available options. I think logout should be part of this list of available commands. Instead, you can only find it by doing `tank -h` which is a lot more obscure.\r\n\r\n- If I am a TD, I think it would be helpful to be able to be absolutely sure that the `tank` command doesn't prompt the user for anything since this can lead to subtle and unpredictable scenarios. (e.g. calling the tank command from a script inside of maya, calling the tank command from the farm.). So I think there should be a mode where you can tell the `tank` command to exit with an error code if not authenticated. And alongside this, there should be a tank command which lets you log in programatically. So that I can be sure that a) the tank script will not prompt me randomly for things and b) that it will be correctly authenticated. \r\n\r\nHow about `tank --login='manne' --password='foo_bar' launch_maya` as a syntax for this?\r\n\r\n( this is akin to for example `mysql --user=user_name --password=your_password db_name`)\r\n\r\nYes, this is not super secure, but it's an opt in and we have to be mindful of production environments. What do you reckon?"}}