Haven’t found much written on this at the moment, but it’s not hard to wire up: every blender command can be invoked from the Python environment and you can invoke your Python script in blender from the command line (see Python Options in
https://docs.blender.org/manual/en/latest/advanced/command_l...)