What is the best way to create new concepts programatically

Application Name: Platform

Question: I know that I can add a new concept using the web interface and this will create the new concept that later I can use through the uuid. But what if I want to start by application from scratch? The concepts created this way will be deleted and when created again they will have a different uuid and the app will stop working fine.

There is an existing way of adding concepts in a more declarative/stable way? Maybe through a migration or custom script

Thanks