Gudanar da shafukan WordPress tare da umarni

Dukanmu waɗanda ke cikin wata hanya ko wata suna da alaƙa da ci gaban yanar gizo da amfani da WordPress mun sani TaimakoWordpress.com. Ba tare da wata shakka ba ɗayan manyan rukunin yanar gizon da ke da nasaba da wannan CMS.

Kafin jiya na karanta wani labari mai ban sha'awa wanda yayi ma'amala da abu ɗaya, sarrafawa ko sarrafa wani shafi a cikin WordPress ba tare da amfani da komai ba kuma ƙasa da tashar mu 😉

Na nemi marubucin game da izinin raba shi a nan, na gode sosai Fernando don irin wannan babban labarin da kuma bari mu raba shi tare da ku 🙂

To, ga post ɗin:


To ku ​​lura da hakan wannan layin umarnin WordPress shine geek, amma sosai geekBabu wani abu ga duk masu sauraro amma a kowane hali akwai ƙarin damar yanayin ƙasa wanda WordPress ya zama.

La Umurnin umarni don WordPressko wp-clip, jerin umarni ne don sarrafa shigarwar WordPress da ƙari. Kuma shine tare da wp-cli zaka iya sabunta plugins, shigar da WordPress, buga posts, kusan komai da girma.

Oh, da kuma Ba plugin bane, tsari ne wanda yake bukatar girka kansa cewa zaka iya yin ta hanyoyi daban-daban, wato ...

Ta hanyar M pear zaka yi shi kamar haka:

sudo pear channel-discover wp-cli.org/pear
sudo pear install wpcli/wpcli

Ta hanyar GIT:

git clone --recursive git://github.com/wp-cli/wp-cli.git ~/git/wp-cli
cd ~/git/wp-cli
sudo utils/dev-build

A ina zaku iya maye gurbin? ~/git/wp-cli da abin da kuke so.

Kuma a cikin MAMP, ZAMANI, Da dai sauransu

Idan babu umarnin php akwai zaku iya neman binary don yin hakan daga:

./utils/find-php

Sannan ka ƙirƙiri canjin yanayi da ake kira WP_CLI_PHP tare da hanyar da kuka samo nema.php
A cikin wani yanayi UNIX zaka iya yin hakan ta hanyar kara layi mai zuwa zuwa fayil dinka .bashrc:

WP_CLI_PHP=/path/to/php-binary

Yayi, yayi kyau, na riga na girka amma ... Yaya ake amfani da wannan?

Da kyau, kun je tushen babban fayil na WordPress:

cd /var/www/wp/

Idan ka buga wp ya kamata ku ga fitarwa kwatankwacin wannan:

Akwai umarni:
wp blog ƙirƙirar | share
wp cache ƙara | decr | share | ja | samu | incr | maye gurbin | saita | nau'in
wp comment ƙirƙirar | share | shara | untrash | spam | unspam | yarda | rashin yarda | ƙidaya | matsayi | ƙarshe
wp core download | config | an shigar | shigar | shigar-hanyar sadarwa | sigar | sabuntawa | sabuntawa-db
wp db ƙirƙirar | sauke | sake saiti | inganta | gyara | haɗa | cli | tambaya | fitarwa | shigo da kaya
wp eval-fayil
...
Duba 'wp taimako' don ƙarin bayani kan takamaiman umarni.

Daga can za mu iya, misali, shigar da plugin daga WordPress.org. Don kar mu rikita misali, mun zabi mara amfani Hello Dolly:

wp plugin install hello-dolly

Y lo que veremos será esto:

Girkawa Sannu Dolly (1.5)

Zazzage shigarda fakiti daga http://downloads.WordPress.org/plugin/hello-dolly.1.5.zip…
Ana kwance fakitin ...
Shigar da plugin…
An shigar da fulogi cikin nasara.

Kamar yadda kake gani, umarnin, da zarar an shigar dasu, suna da sauƙi da ƙwarewa.

Wani misalin zai zama shigarwar Multisite, inda yakamata mu ba wp-cli sigar --blog Don haka kun san wane gidan yanar gizon da ya kamata ku yi aiki da shi:

wp theme status --blog=localhost/wp/test

Y si es en una instalación en subdominio sería algo así:

wp theme status --blog=test.example.com

Idan kuna aiki akan rukunin yanar gizo mafi yawan lokuta zaku iya sanya url na wannan rukunin a cikin fayil ɗin da ake kira 'wp-cli-blog'cewa zaku ƙirƙiri a cikin babban fayil ɗin WordPress:

echo 'test.example.com' > wp-cli-blog

Daga wannan lokacin zaku iya kira wp ba tare da siga ba --blog:

wp theme status

Cikakken jerin umarnin yana nan, kuma har ma kuna iya ƙirƙirar ƙarin umarni a ciki wp-cli ta dafa abinci.

Da kyau, kamar yadda na gargaɗe ku, ba wani abu bane don kowa ya yi amfani da shi yau da kullun, amma hanya ce mai kyau don sarrafa WordPress daga layin umarni, misali ta hanyar SSH, don haka adana mahaɗin can don lokacin da kuke da silan kwanaki marasa wayo a ciki waɗanda ba su san abin da za su rikici tare da WordPress ba.


Sabili da haka sakon ya ƙare.

Fernando ya fada da farko cewa sako ne don masu kayatarwa ... amma, kusan dukkanmu bamu ga wannan da gaske ba? OL LOL !!, Ban san ku ba amma ra'ayin iya sarrafa WordPress tare da umarni Na ga abin mamaki ne sosai ♥ 0 ♥

Godiya mai yawa ga Fernando don wannan matsayin, an samo asalin wannan labarin daga asali TaimakoWordpress.com.

Ina fatan kun sami abin sha'awa 😉

gaisuwa


Abubuwan da ke cikin labarin suna bin ka'idodinmu na ka'idojin edita. Don yin rahoton kuskure danna a nan.

4 comments, bar naka

Bar tsokaci

Your email address ba za a buga. Bukata filayen suna alama da *

*

*

  1. Mai alhakin bayanan: Miguel Ángel Gatón
  2. Dalilin bayanan: Gudanar da SPAM, gudanar da sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.

  1.   Fernando m

    Kawai mai girma!

    Zan aiwatar dashi yanzu. Ka dai ba ni farin ciki.

    Na gode sosai da rabawa, KZKG ^ Gaara.

    Gaisuwa!

    1.    KZKG ^ Gaara m

      Babu komai, cikakkiyar ni'ima don taimakawa 🙂
      gaisuwa

  2.   Hyuuga_Neji m

    Nice Aiki… .. yanzu na gama «mamaye» na Nginx zan gani idan wannan abun wp-cli yana aiki…. kuma idan wani yana so ya kira ni geek don son bambance-bambancen wasan bidiyo bai dame ni ba ko kaɗan xD

  3.   lokacin3000 m

    Duba ko zan iya ba kaina lokaci don gama tuki Drush.