Sonic Pi run from the command line

Don’t know if this is useful to you.
You can run SP with a virtual desktop and I have used this in several projects.