if API_KEY is available in environment and not overridden on the command line, push the API_KEY into the command arg apiKey