Zum Inhalt springen

Wordpress CLI: Unterschied zwischen den Versionen

Aus Computech CMS Wiki
Zeile 26: Zeile 26:
== 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>

Version vom 31. Januar 2022, 10:46 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\] '

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