Just create a simple text file (playlist) with the extension .m3u and enter your media files at the top and vlc://quit at the bottom. This will play your media and quit vlc once it finishes.
mymusic.mp3
vlc://quit
From the command line you will enter vlc playlist.m3u to start the playback!