Flashcart or legit game.
There's and emulator, but it runs like shit and only works on New3DS.
You can't install DS games through CIA, don't ask how because you can't.
You can install DSi games through eShop, which is also the best way to do it next to pirating them.
And it can be done through the methods the I just suggested.