I'm trying to import a JPG to my uploads folder using WP-CLI (macOS). I'm connected to the server, I can update and activate plugins, successfully navigate to all folders, etc.
However, when I run:
wp media import /Users/d.j./Desktop/cat.jpg
I get an error:
Warning: Unable to import file '/Users/d.j./Desktop/cat.jpg'. Reason: File doesn't exist. Error: No items imported.
The file does exist, it's right on my desktop.
Any ideas as to why I would get this error?
edit: I should add that it works fine when I use my local server.