Are there any guides on writing custom CLI scripts?
Nope.
you can how ever open strapi interactivly with npm run strapi console
Are there any guides on writing custom CLI scripts?
Nope.
you can how ever open strapi interactivly with npm run strapi console