Skip to content

Enable to pass APIFY_TOKEN as a parameter or enviroment variable #720

Open
@JJetmar

Description

It was mentioned in #702 (comment) and I basically ran into the same today.

wanted to use apify-cli for one-time apify run under specific user without a need to do extra logins.

I blindly tried something like:

my@localhost:~/Projects/my-actor> APIFY_TOKEN=MY_APIFY_TOKEN apify info

username: loggedInUserName
userId: loggedInUserId

but it returns the logged-in user instead of the one from passed APIFY_TOKEN. Based on the previous mention I expect it is not currently possible.

I am opening this issue to discuss/track this feature request.

Metadata

Assignees

Labels

t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions