With Please.Build, see here https://please.build/ command line supports a --config option to pass a configuration.
see here for reference https://please.build/command