如何通过 WP-CLI 为 woocommerce 创建 API KEY?
我正在通过以下命令创建一个 WooCommerce 商店:
sudo /usr/local/bin/wp --info --allow-root
sudo /usr/local/bin/wp cli update --allow-root
sudo /usr/local/bin/wp core download --allow-root
sudo /usr/local/bin/wp core config --dbname=$MYSQL_DATABASE --dbuser=$MYSQL_USER --dbpass=$MYSQL_PASSWORD --allow-root
sudo chown -R apache:apache wp-config.php
sudo /usr/local/bin/wp core install --url=$URL --title="$WP_TITLE" --admin_user=$WP_USERNAME --admin_password=$WP_PASSWORD --admin_email=$WP_MAIL --allow-root
sudo /usr/local/bin/wp theme install woot storefront --allow-root
sudo /usr/local/bin/wp plugin install homepage-control --allow-root
sudo /usr/local/bin/wp plugin activate homepage-control --allow-root
sudo /usr/local/bin/wp theme activate woot --allow-root
sudo /usr/local/bin/wp plugin install woocommerce --allow-root
sudo /usr/local/bin/wp plugin activate woocommerce --allow-root
sudo /usr/local/bin/wp post delete 1 --allow-root
之后我需要通过命令行为 API 创建一个新的 KEY,有人可以帮我吗?
谢谢