2017 © Pedro Peláez
 

wp-cli-package wp-cli-salts-command

Manage salts for your WordPress installation

image

salaros/wp-cli-salts-command

Manage salts for your WordPress installation

  • Sunday, November 12, 2017
  • by salaros
  • Repository
  • 1 Watchers
  • 1 Stars
  • 50 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 9 Versions
  • 25 % Grown

The README.md

WP-CLI Salt Command

Package license Packagist type Packagist downloads Monthly Downloads Latest Stable Version composer.lock, (*1)

Manage salts for your WordPress installation, (*2)

Output salts to STDOUT

wp salts generate # defaults to --format=php
wp salts generate --format=env
wp salts generate --format=yaml

This will grab new salts from the WordPress Salt API and output it to the STDOUT, (*3)

Output salts to a file

PHP file

wp salts generate --file=/absolute/path/to/file.php

This will output the salts to a file. Because the file contains the complete define() code the salts will be set by a simple require somewhere in your wp-config.php, (*4)

Environment variable file

wp salts generate --file=/absolute/path/to/.env

This will output the salts as shell environment variables (MY_VAR=VALUE). Useful for projects that load configurations from .env files., (*5)

Yaml config file

wp salts generate --file=/absolute/path/to/file.yaml

This will output the salts as Yaml config file., (*6)

Other examples

Generally the file format can be desumed from file name / extension. However one can enforce Yaml format when it can't be detected automatically, (*7)

wp salts generate --format=yaml --my.config

One could also append want to append some custom WordPress salts, such as WP_CACHE_KEY_SALT used by Memcached Object Cache, WP Redis and other plugins:, (*8)

wp salts generate --format=env --append=WP_CACHE_KEY_SALT,OTHER_USEFUL_SALT

AUTH_KEY='|p/>=h19^l/tFT=_e yOu+_@Zs?VMUObx@@Gx2SD/rPFdb(?jBbpE~w+l-[<ie,o'
SECURE_AUTH_KEY='*G|+h:%xMCY.ALkJ)72/0Y=0^5A^}PS:~xb7-:Y+_##D|sg*uU{o6(w<h>,g|2`o'
LOGGED_IN_KEY='A>r0rY]%#x1CvPqzFN[ (pTRNt1|p[RiFooj<s&w)%<+tI#z/x8Xos%a>_C ]-w>'
NONCE_KEY='SoBdx~Nh+FXhniyc7?oTY;|rjvLsTa!yV:Z-_z*Bs)`6z53ld^B4vVdqVJ&ass/u'
AUTH_SALT='hcSd}*.rYZ9g^<1wYGhs_xv<soGS/$} 4*#rsT?Nh!o$elz394!+I5>LPl)AmfLL'
SECURE_AUTH_SALT='bg>!x{vYz<N|h}uxcE5fMl8$5l$0yJ#t3c<z#q4F7]UU0OUJ75(jd1MB2}A(c9r`'
LOGGED_IN_SALT='5gsbcBPv;M`Ii)c}fZ{>D$4n0=|_5Lu#+)UNw`L`dF$w/`uP{&*xdI9&[`j^Q*3<'
NONCE_SALT='S07L}$OO*<R$)hWtawhST{Uqe!ZE0M3!`W-gz6]fY4y9joX9o;]+sS[O$_`)JiiO'
# >>> Note these two additional WordPress salts below
WP_CACHE_KEY_SALT='dzwdcllV*h/@BG/Hh~@tRM_!aV~d.55/o(eoC= E&LBJjG{V1~xl?nN<DJ>jobsp'
OTHER_USEFUL_SALT='hrRt.Ldx&=ywXCCU;5,sOkq ZaAUz7vz3lMp?~,L.EcgpdJ<c_T$4GnAYtKkVhO}'

The Versions

12/11 2017

dev-master

9999999-dev https://github.com/salaros/wp-cli-salts-command

Manage salts for your WordPress installation

  Sources   Download

MIT

The Requires

 

12/11 2017

0.6.1

0.6.1.0 https://github.com/salaros/wp-cli-salts-command

Manage salts for your WordPress installation

  Sources   Download

MIT

The Requires

 

12/11 2017

0.6.0

0.6.0.0 https://github.com/salaros/wp-cli-salts-command

Manage salts for your WordPress installation

  Sources   Download

MIT

The Requires

 

12/11 2017

0.5.1

0.5.1.0 https://github.com/salaros/wp-cli-salts-command

Manage salts for your WordPress installation

  Sources   Download

MIT

The Requires

 

11/11 2017

0.5.0

0.5.0.0 https://github.com/salaros/wp-cli-salts-command

Manage salts for your WordPress installation

  Sources   Download

MIT

The Requires

 

11/11 2017
11/11 2017

0.3

0.3.0.0 https://github.com/salaros/wp-cli-salts-command

Manage salts for your WordPress installation

  Sources   Download

MIT

The Requires

  • php >=5.4

 

11/11 2017

0.2

0.2.0.0 https://github.com/salaros/wp-cli-salts-command

Manage salts for your WordPress installation

  Sources   Download

MIT

The Requires

  • php >=5.4

 

20/10 2017

0.1

0.1.0.0 https://github.com/sebastiaandegeus/wp-cli-salts-command

Manage salts for your WordPress installation

  Sources   Download

MIT

The Requires

  • php >=5.4