Alex IA
Apify & Crawlee2y ago
5 replies
Alex I

How can I run an Actor local with Actor.config inputs?

I'd like run the next code localy

// Initialize the Apify SDK
await Actor.init();
const privateKey: string = Actor.config.get('private_key');
const clientEmail: string = Actor.config.get('client_email');


But
privateKey
is
undefined


I expected to use it like
npx apify-cli run
but nothing.

Any suggestion?
Was this page helpful?