Starting development on a Reset Site add-on

Hi @sc0ttkclark @ben.turner, this addon is working perfectly. I’m trying to run another wp cli command after wp core install to update timezone and other values. Here is an example:

LocalMain.getServiceContainer().cradle.wpCli.run(site, [
                'core',
                'install',
                '--url=' + site.url,
                '--title=' + site.name,
                '--admin_user=admin',
                '--admin_password=admin',
                '--admin_email=admin@abc.com',
                '--skip-email',
            ]).then(function (result) {
                LocalMain.getServiceContainer().cradle.localLogger.log('info', 'Command "wp core install" finished.');
                LocalMain.getServiceContainer().cradle.wpCli.run(site, [
                    'option',
                    'update',
                    'timezone_string',
                    '"UTC-2"'
                ]);
                LocalMain.sendIPCEvent('skc-local-reset-add-on-site-reset');
            }, function (err) {
                LocalMain.getServiceContainer().cradle.localLogger.log('info', 'Command "wp core install" failed.');

                LocalMain.getServiceContainer().cradle.localLogger.log('info', err);

                LocalMain.sendIPCEvent('skc-local-reset-add-on-site-reset-install-failed');
            });

This doesn’t really work. Just wondering if you guys have any ideas what I’ve done wrong here. Thanks

Can you give a little more detail about what isn’t working?

Are you seeing errors somewhere?