Where is the code of Strapi CLI?

I think it is in node_modules/strapi/lib/commands.

For example, the program to reset user password is in node_modules/strapi/lib/commands/admin-reset.js.