Have you tried using WP-CLI Have you installed WordPress yet? If you haven't already, it is recommended that you try it at least once, as the process of installing WordPress using WP-CLI is much faster than the traditional way.
Before discussing the installation process further, please ensure that WP-CLI is installed on your server. if it is not, you can follow this tutorial first:How to install WP-CLI on Linux.
Once the installation is complete, you can follow these steps to install using the WP-CLI WordPressThe
This method does not cover how to create the database used in wp-config. Make sure you have created the database before you start.
![Image [1] - How to Quickly Install WordPress Using WP-CLI](https://www.361sale.com/wp-content/uploads/2025/07/20250704093457990-image.png)
Open or create an installation folder
First, you need to pass the SSH Open or create a folder for installation.
If you are using cPanel and want to install WordPress on your main domain, you can use the following command to go to the public_html Folder:
cd public_html
But if you want to install to other folders, such as public_html/websiteku, you can create the folder first and then enter that folder:
mkdir -p public_html/websiteku
cd public_html/websiteku
included among these -p Used to ensure that the home folder exists, if it doesn't it will be created automatically.
Download WordPress
Once you are in the destination folder, you can download the latest version of WordPress. To download the latest version of WordPress, you can use the following command:
wp core download
If you want to install a specific version of WordPress, such as version 5.9, you can use the --version Parameters:
wp core download --version=5.9
You can view the versions of WordPress that can be installed from the following page:https://wordpress.org/download/releases/
If you wish to install the Chinese version of WordPress, you can use the --locale Parameters:
wp core download --version=5.9 --locale=id_ID
Configure wp-config.php
In the configuration wp-config.php Instead of creating or editing the file manually, you can directly use the following command:
wp config create --dbname=nama_database --dbuser=username_database --prompt=dbpass --dbprefix=prefix_database
commander-in-chief (military) database name Replace it with the one you've already createdcomprehensive databaseName.Database User Name replacing it with the name of the user authorized to access that database.Database Prefix Replace it with the prefix you want to set (e.g. wp_).
For example, if you are using a database with the name wpgan-cli_wordpressThe username is wpgan-cli_adminThe prefix is wpgan_, then the command should be changed to:
wp config create --dbname=wpgan-cli_wordpress --dbuser=wpgan-cli_admin --prompt=dbpass --dbprefix=wpgan_
Next, you will be prompted for the database password. You can simply enter the password of the user who has access to that database and press Enter.
![Image [2] - How to Quickly Install WordPress Using WP-CLI](https://www.361sale.com/wp-content/uploads/2025/07/20250704093746258-image.png)
Installing WordPress with WP-CLI
In the end, you simply use the WP-CLI Install WordPress and enter relevant information such as site name, WordPress user, password and email:
wp core install --url=url_website --title="Judul Website" --admin_user=username_admin --admin_password="password_admin" --admin_email= email@example.com
commander-in-chief (military) Website URL Replace it with your site address (both http/https and www or no www), for example https://www.wpgan.tld/cli. will Site Title Replace it with the title of the site you want to install, for example WPGan Site. will Administrator User Name Replace it with the username used when logging in, e.g. adminwill Administrator password Replace it with the login password, e.g. password8435!will 邮箱@example.com Replace it with the administrator's mailbox, e.g. admin@wpgan.tldThe
Based on the above example, the command should read:
wp core install --url=https://www.wpgan.tld/cli --title="WPGan Site" --admin_user=admin --admin_password="password8435!" --admin_email= admin@wpgan.tld
After successful installation, you will see WordPress installed successfully The Tip.
![Image [3] - How to Quickly Install WordPress Using WP-CLI](https://www.361sale.com/wp-content/uploads/2025/07/20250704093820130-image.png)
Visit the website and try to log in
Once the installation is complete, you can try accessing the just-installed WordPress website and log in with the user name and password set in step 4.
![Image [4] - How to Quickly Install WordPress Using WP-CLI](https://www.361sale.com/wp-content/uploads/2025/07/20250704093830350-image.png)
If you successfully log in, you can start managing your WordPress site.
Link to this article:https://www.361sale.com/en/65336The article is copyrighted and must be reproduced with attribution.




















![Emoji[wozuimei]-Photonflux.com | Professional WordPress repair service, worldwide, rapid response](https://www.361sale.com/wp-content/themes/zibll/img/smilies/wozuimei.gif)
![Emoticon[baoquan] - Photon Wave Network | Professional WordPress Repair Services, Worldwide Coverage, Rapid Response](https://www.361sale.com/wp-content/themes/zibll/img/smilies/baoquan.gif)

No comments