How to use the CLI with apps that have a "-" in name?

I’m trying to start apps from the CLI. It is working for most of the apps, e.g.

app> start plex

But when I tried this for an app with a - in the name I get the following error:

app> start calibre-web
Expected end of text, found 'c'
 calibre-web
 ^

How can I access these apps from the CLI?

TrueNAS Scale version is 24.10.2.2.

Did you try using quotes?

start 'calibre-web'

This pointed me in the right direction. It did not work with single quotes but with double quotes. Thank you!

start "calibre-web"

1 Like

Sometimes you have to escape spaces and special characters on the command line. Try to use tab auto complete as often as possible and it will show you. For example, moving into a folder called ACE HARDWARE might need cd ACE\ HARDWARE or easier, cd “ACE HARDWARE”, you could do cd ACE then hit tab to see what you could type.