Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wp-cli not working locally on Windows #19

Open
rbadi76 opened this issue Oct 21, 2019 · 1 comment
Open

wp-cli not working locally on Windows #19

rbadi76 opened this issue Oct 21, 2019 · 1 comment

Comments

@rbadi76
Copy link

rbadi76 commented Oct 21, 2019

Hello

I have set up this project on my Windows machine but for some reason I am not able to run wp-cli commands on it. I can run the site itself with npm start and shell with npm run shell but calling wp does not work in the shell or outside npm shell.

I am new to Docker and npm so it might be an issue with that. I have tried looking for solutions on Google (such as this one: https://bobcares.com/blog/wordpress-cli-docker/) but none of them work with this project (if I get wp-cli to work it is not related to the WordPress site).

I hope you can point me in the right direction.

@badi365
Copy link

badi365 commented Nov 1, 2019

I finally figured out the problem. It is EOL characters were incorrect in some files. After going over all files in the project and changing to LR line endings I could finally run WP-CLI commands in the shell (i.e. after running npm run shell.

It is a good idea to add this to settings.json for VS Code if you are using that:

{ "files.eol": "\n" }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants