Welcome to WP-CLIWP-CLIWP-CLI is the Command Line Interface for WordPress, used to do administrative and development tasks in a programmatic way. The project page is http://wp-cli.org/https://make.wordpress.org/cli/!
WP-CLI is the official command line tool for interacting with and managing your WordPress sites.
Download and install WordPress using WP-CLIWP-CLIWP-CLI is the Command Line Interface for WordPress, used to do administrative and development tasks in a programmatic way. The project page is http://wp-cli.org/https://make.wordpress.org/cli/ is straight forward. It takes four steps.
First, you will need to download WordPress using the wp core download command.
The syntax of the command to download WordPress is the following: wp core download [--path=<path>] [--locale=<locale>] [--version=<version>] [--skip-content] [--force]
The command above creates a wpdemo.test/ folder inside your current working directory and downloads the latest WordPress version. You can replace the --path=wpdemo.test with your
desired folder name and the --locale=it_IT with your desired locale. You can omit the --locale option and, that will download by default WordPress in American English using the locale en_US.
In this step, we will generate a config file and set up the database
credentials for our installation.
The basic syntax of the command is the following: wp config create --dbname=<dbname> --dbuser=<dbuser> [--dbpass=<dbpass>]
The command above generates the wp-config.php file and adds to it the database credentials that you passed. Make sure to replace your_db_name_here with the name you want to assign to the database, replace your_db_user_here with your database user and type the database password when prompted with the following: 1/10 [--dbpass=<dbpass>]: