How I can create an API KEY for woocommerce by WP-CLI?
I'm creating a WooCommerce store by this commands:
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
After that I need to create a new KEY for the API by command line, can anyone help me please?
Thanks