Basic slideshow editing in headless mode

Is it possible to join 2 slideshows in headless mode?
Or any other way from command line?