YaCy from command line

Does YaCy have to be run from a web browser?

Or can we use it from the command line?

This says we can run it headlessly:

  • Headless operation can be achieved by setting a password on the host console with bin/passwd.sh <password>.

This says the API endpoints can be retrieved from within the browser: Dev:API – YaCyWiki

Is that the standard method? Launch it and learn the API commands from the browser; then in the future run it headlessly and use the commands from the command line?

Thanks very much