Wordpress CLI: Unterschied zwischen den Versionen
Erscheinungsbild
| (5 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
== Profile einrichten Online == | == Profile einrichten (Online) == | ||
<code>nano ~/.profile</code> | <code>nano ~/.profile</code> | ||
<syntaxhighlight line='line' lang="bash"> | <syntaxhighlight line='line' lang="bash"> | ||
| Zeile 23: | Zeile 23: | ||
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w \$\[\033[00m\] ' | PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w \$\[\033[00m\] ' | ||
</syntaxhighlight> | </syntaxhighlight> | ||
exit und neu vebinden | |||
== Installieren von wp-cli == | == Installieren von wp-cli == | ||
<code>curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && mv ~/wp-cli.phar ~/httpdocs/wp-cli.phar</code> | <code>curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && mv ~/wp-cli.phar ~/httpdocs/wp-cli.phar</code> | ||
One Time Login Plugin installieren und aktivieren: | |||
<code>wp plugin install one-time-login --activate</code> | |||
== Anmelden mit wp-cli == | |||
User finden: <code>wp user list</code> | |||
<code>wp user one-time-login <user></code> | |||
Aktuelle Version vom 31. Januar 2022, 11:51 Uhr
Profile einrichten (Online)
nano ~/.profile
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias wp='php ~/httpdocs/wp-cli.phar'
#PS1='\[\e[0;32m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[1;32m\]\$\[\e[m\] \[\e[1;37m\]' #color fuer die shell
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w \$\[\033[00m\] '
exit und neu vebinden
Installieren von wp-cli
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && mv ~/wp-cli.phar ~/httpdocs/wp-cli.phar
One Time Login Plugin installieren und aktivieren:
wp plugin install one-time-login --activate
Anmelden mit wp-cli
User finden: wp user list
wp user one-time-login <user>