From the help provided by emacsclient, you have several options. Firstly, it is already mentioned, which is equal to emacsclient -c . This will try to create a frame associated with the emacs daemon. The advantage of this is that if DISPLAY is not installed, then it will open emacs in the terminal.
This leads us to the next best option (especially if you are logging in remotely): emacsclient -t , which causes emacs to open in terminal mode, even if DISPLAY is installed.
Also keep in mind that you can also set the display from the command line. I often use this when logging into VNC remotely. Full command: emacsclient -d DISPLAY -c
bnbeckwith
source share