I realize I can open a project on the command line by clicking Open Site Shell in the Local GUI window; however, how can I do the same from the command line directly?
My use case: I like to open my theme in VS Code, then when I want to run a wp-cli command I click control+~ to bring up VS Code’s terminal. Right now when I want to do that, I’m literally opening the Local GUI, clicking Open Site Shell which opens a new iTerm window, copying the command it runs (something like
/Users/myusername/Library/Application\ Support/Local/ssh-entry/0A1vMAn2f.sh; exit), closing the iTerm window Local opened, going back into VS Code, pasting and executing that command, after which wp-cli commands work within VS Code. Another common use case is when I’m using an iTerm window Local opened, but want to split the terminal into several windows with command+d or command+shift+d: it’d be nice to run a command that set’s up Local in that new window pane, but currently I just scroll all the way up in the original pane looking for that ssh-entry command and re-run it so I can execute wp-cli in the new pane.
Obviously, that’s a bit cumbersome: is there a command I can run from within a theme folder in any terminal window that executes Local’s command line setup?
Or, even if there’s a way to detect that “0A1vMAn2f” Local server name from the command line, I could create a command myself to accomplish what I’m after—I’ve just been unable to find “0A1vMAn2f” written anywhere within the app, conf, or logs directories that I could create a shell command to grab and use.
Thanks for a great product!