Training intents outside the botpress dashboard

Hello everybody, I am a new botpress user. I wanna know Can I train intents outside the botpress dashboard with a code.