There is nothing similar to rails console in sinatra. You can go to irb and do a :
to start experimenting with your Sinatra app.
You can create a console.rb and put the following code:
You now have a simple Sinatra console, you can run it as ruby console.rb.