logoff from the command line

My question is whether it is possible to logoff from the command line and I guess this has already been addressed in this post:

viewtopic.php?f=6&t=2070

Does the line:
AddToFunc StartFunction I Module FvwmCommandS
Need to be added to the fvwm2rc file?

Also if this line hasn’t been added, can you still logoff from the command line so that you get back to the gdm login screen or is
FvwmCommand Quit
the only option?

Thanks a lot in advance.

For FvwmCommand, yes. The post you’ve linked to even mentions that.

You can send FVWM a SIGQUIT signal via kill, or use FvwmConsole to type “Quit” in, etc.

– Thomas Adam

Thanks a lot!