Convert Vyos set commands in to vyos config offline

This is a complex task because the file -> commands conversion can be done by just looking into the file syntax. But commands -> file requires a full tree of CLI nodes available, which is presented only inside binary deb packages or installed VyOS.

I understand your wish to load the full config file - it makes sense in many situations, and we have a simple trick that may help you with this. You will need to create an empty (or bare minimum) config, which is used as a base for all your commands. With it, you can do:

load /your/empty/config.file
set X
set Y
commit

This will be equal to a simple load /full/new/config.boot, but using set commands syntax instead. Of course, your set commands list should contain the full configuration, just like a config file.