Mac terminal command syntax?

I need to go to Mac Terminal to get something done. The command refers to an application file name that includes both a space and a decimal. The app file name is
FireCapture v2.6.app

My Unix experience has a lot of dust on it. I can make the command succeed if I simply rename the app to FireCapture, but I would prefer to keep the version information. Will wrapping the app name in quotes work like this?
command "FireCapture v2.6.app"

Is there a better way to do this?

2018-07-26T15:57:53Z

I should have said "I can make the command succeed if I simply rename the app to FireCapture.app ..."

2018-07-26T16:00:48Z

I forgot to mention that I'm using zsh

Anonymous2018-07-26T17:55:31Z

Favorite Answer

Yes, if the filename has spaces in it, you need to enclose it in double quotes (").

Unless you're logged in using an admin account, you do need to use sudo.

dogsafire2018-07-26T16:26:40Z

For some reason, Y! Answers won't let me update the question any more, so I'll add it here
Some more info and questions:


If quotes work, are they single or double quotes?

Here is what I am doing:
command: spctl --add ~/Desktop/FireCapture v2.6.app
response: invalid API object reference

When I issued the command with the file name changed to FireCapture.app, I issued the command as a
sudo spctl --add ~/Desktop/FireCapture.app

Do I actually need the sudo?
Because I'm messing with Gatekeeper, I'm hesitant to undo and redo my work to test various versions of the command. The program (FireCapture) is running and that's what really matters. I want to write up the procedure of getting the application to run for others in an astronomy group that I participate in, so I want to be clear about the proper shell command.