I want to fetch data from an ERP system and use that to fill the Woocommerce products. This operation is quite memory intensive and lengthy. So I'd like to run this through a cron that just calls a PHP file.
Can I 'just do that'? Or do I need to initialize the configuration file, the database, or anything else?
wp scaffoldpackage and have created my own CLI command. Works like a charm, very nice stuff