How to create fullchain.pem from cert.pem?

Anyway, it’s the intermediate (and maybe then the root).

I manually added intermediate сertificate to the end of the cert.pem and control panel accepted it.

Too bad I can't figure it out how to properly made it with a console. Thanks for the help.