# How to list SMILE commands inside sbt shell?

  1. Enter sbt shell, run command smile --help
 








[Lottery] $ smile --help
 A) smile commands :

 smile new <project-name> : to create a new project
 smile create-lib  <lib-name> : to create a new lib
 smile export-lib : to export lib
 smile spile : to reset the project
 ...
  1. To list commands inside a module along with its usage details:

    1. navigate to the specific module using project command inside sbt shell

       



      [Lottery] $ project LotteryMongo
      [info] Set current project to LotteryMongo (in build file:/Users/pallavi/training/lottery/)
      [LotteryMongo]
      
    2. run command moduleCommands to list commands applicable to the module. For example: mongo module

       

















      [LotteryMongo] moduleCommands
      Available Set of Command(s) for LotteryMongo : collection
      For more information about each command set type '<command-set> --help'
      ...
      [LotteryMongo] collection --help
      Usage: collection [stat|ensureIndices|ensureAllIndices|dropIndices|dropAllIndices] [options] <args>...
      Command: stat
      count the rows in each collection for now!
      
      Command: ensureIndices <collectionName>
      ensure indices for the collection
        <collectionName>         provide the collection name
      
      Command: ensureAllIndices
      ensure all indices for all collections
      
      ...