WordPress: Difference between revisions
imported>Onny Add example on using wp-cli |
imported>Onny mNo edit summary |
||
| Line 162: | Line 162: | ||
wp-cli is a command line tool to configure and manage Wordpress instances. The following example command creates a administration account with the name <code>test</code> and the password <code>test123</code> | wp-cli is a command line tool to configure and manage Wordpress instances. The following example command creates a administration account with the name <code>test</code> and the password <code>test123</code> | ||
<syntaxHighlight lang="bash"> | |||
sudo -u wordpress HOME=/var/lib/wordpress/example.org nix run nixpkgs#wp-cli -- --path=/nix/store/wxzcmjfkyk5nfk7vidzbz1mz28wnfl5b-wordpress-example.org-6.1.1/share/wordpress user create test test@example.org --role=administrator --user_pass=test123 | |||
</syntaxHighlight> | </syntaxHighlight> | ||