Using macOS as headless server

Hi all!

Does anyone have experience with using a mac mini as a headless server. The load would be very simple (running a few applications, file server, very basic web server, etc.

Is everything doable via the command line, or would I be pulling my hair every time I try something new?

For example, I worry about how to interact with system settings without the Graphical Interface.

Any feedback welcome!