Is it possible to run sql queries in strapi cli?

I want to do some console logs basically on the strapi db, namely checking for duplicate values, can I do quick tests like this in strapi cli without putting that code in the bootstrap.ts file instead?

This topic has been created from a Discord post (1277352146290868235) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

You can query the db using Strapi’s Entity Sevice using the Strapi console from the CLI.

Do note that it’s an interactive CLI tool

Yes perfect thats what i was looking for ty