最近、以下の手順でWP-CLIをWindowsにインストールしました。しかし、私はエラーを取得するシェルWP入力すると:githubの上WindowsでWP CLIシェルが動作しない
The system cannot find the path specified.
一つの解決策は、こう述べています。しかし
Psysh is not bundled in wp-cli.phar, but you should be able to include it, like so:
wget psysh.org/psysh -O psysh.phar php wp-cli.phar --require=psysh.phar shell
、また、エラーが発生している:
'wget' is not recognized as an internal or external command, operable program or batch file.
助けてください!私はウサギの穴からあまりに遠いです。私はWP CLIを使って私の人生を楽にしたいと思っていました!
インストール手順は、(http://wp-cli.org/docs/installing/から)続く:
Installing on Windows# Install via composer as described above or use the following method.
Make sure you have php installed and in your path so you can execute it globally.
Download wp-cli.phar manually and save it to a folder, for example c:\wp-cli
Create a file named wp.bat in c:\wp-cli with the following contents:
@ECHO OFF php "c:/wp-cli/wp-cli.phar" %*
Add c:\wp-cli to your path:
setx path "%path%;c:\wp-cli"
You can now use WP-CLI from anywhere in Windows command line
明確にするために、WP CLIについてのすべてはうまくいきますが、明らかにpsyshというものに依存している 'wp shell 'コマンドを除いては問題ありません。 – Robin
@Robin私は誤解しています。あなたのコメントを読んだ後、私は 'wp shell'を試してみたのと同じエラーが出ました。あなたは間違いなく何かにいる。あなたの質問を編集して、他のCLIコマンドがうまく動作していることをお勧めします。 –
私はこれらの指示を読むまで、WP-CLIを働かせることができませんでした。私は "wp"がWindowsの内部コマンドではないというエラーを受け取りました。ありがとう、トン。 – jg314