Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apify CLI whoami #702

Open
netmilk opened this issue Nov 19, 2024 · 2 comments
Open

Apify CLI whoami #702

netmilk opened this issue Nov 19, 2024 · 2 comments
Labels
t-tooling Issues with this label are in the ownership of the tooling team.

Comments

@netmilk
Copy link
Contributor

netmilk commented Nov 19, 2024

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
@github-actions github-actions bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Nov 19, 2024
@B4nan
Copy link
Member

B4nan commented Nov 19, 2024

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

@vladfrangu
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t-tooling Issues with this label are in the ownership of the tooling team.
Projects
None yet
Development

No branches or pull requests

3 participants