docs(skills): correct APIFY_TOKEN CLI authentication guidance - #80
docs(skills): correct APIFY_TOKEN CLI authentication guidance#80marekh19 wants to merge 1 commit into
Conversation
|
I think this is mostly for builders. I added them to the review and removed AI |
|
I just found out that apify/apify-cli#1246 and apify/apify-cli#1293 exist. Putting this on hold for now. |
Well it does, even if it is not super obvious, but at least |
Relates to apify/apify-plugins-internal#21
The skills told agents the Apify CLI reads
APIFY_TOKENfrom the environment. It doesn't —getToken()reads the OS keyring or~/.apify/auth.jsonand never touchesprocess.env. Agents following this exported the variable, got "not logged in", and had no next step.All four files now point to
apify login --token TOKENfor headless auth, and explain thatAPIFY_TOKENis read by the Apify SDK inside a running Actor rather than by the CLI.In
apify-actor-developmentandapify-actorizationthe security note said to "prefer environment variables" overapify login -t. Fixing only the wrong sentence would have left that note steering agents away from the one method that works headlessly, so the warning is kept but redirected: pass the token from a variable or secret store rather than typing it inline.skills/apify-sdk-integration/SKILL.mdis untouched — itsAPIFY_TOKENreferences are about the SDK and are correct.