apify-cli
apify-cli copied to clipboard
Apify CLI `whoami`
I'm working with multiple Apify accounts. I'd appreciate to know what user I'm logged in as in the CLI.
To find it out I need to do:
$ cat ~/.apify/auth.json | jq -r .username
netmilk
A simple whoami would be convenient.
$ apify whoami
netmilk
FYI apify info will give you both the user name and user id
➜ store-website-content-crawler git:(main) ✗ npx apify-cli@beta info
username: adamek
userId: xxxxx
This also opens up the fact our current auth system is really meant for 1 user only, while people may use multiple accounts (think org accounts for instance). We probs should reconsider it
Let's close this one, the apify info seems enough and we have other issues about the multi user support