Setting SDK / NDK Path in CI

Hello,

I’m getting this error when building. “[Build] Can’t find the Android NDK/SDK path, please go to Preferences → External Programs to set”

How do I tell cocos the NDK/SDK path from the command line?

Since it’s a headless, I can’t open the creator. I’ve tried setting “sdkPath” and “ndkPath” in my build configuration but they have no effect.

I’m trying to configure my project to compile in a headless (CI/CD) environment.

Thanks!
Al