1

How to set this password with wp cli CzTd#&h@!764DQP%$*gpW%*9)?

I tried following, but it does not work:

$ wp user update 123 --user_pass=CzTd#&h@!764DQP%$*gpW%*9)

It won't recognize the special characters and barfs. Or, it cuts off the password at the first special char and sets the password as CzTd

mahatmanich
  • 10,791
  • 5
  • 63
  • 82
yaris
  • 23
  • 6
  • 1
    I do not have experience in wordpress, but most of time put string between single or double quotes would works on other cli commands. `wp user update 123 --user_pass="CzTd#&h@!764DQP%$*gpW%*9)"` – kuldeep.kamboj Feb 23 '17 at 13:53
  • try with `"CzTd#&h@!764DQP%$*gpW%*9)"` I am sure that should work! otherwise use single `'CzTd#&h@!764DQP%$*gpW%*9)'`. Putty should have nothing to do with that! – mahatmanich Feb 23 '17 at 14:49
  • tried single quotes and didn't work. will try double quote and get back to you. thanks – yaris Feb 23 '17 at 17:40
  • THANK YOU!!!!!!!!!!!!!! double quotes worked!!!!!!!!!!!! – yaris Feb 23 '17 at 21:49
  • "CzTd#&h@!764DQP%$*gpW%*9)" – yaris Feb 23 '17 at 21:49
  • single quotes did not work – yaris Feb 23 '17 at 21:49
  • NO! In *nix, double quotes expands various things inside the quotes. In some shells, it will replace `!764` with command number 764 that you executed in the session. This will set your password to something, but you probably won't know what! `$*` is also likely to be expanded. – Rick James Feb 24 '17 at 00:08

0 Answers0