#!/usr/bin/env ruby require "bundler/setup" require "your_lib" require "irb" IRB.start In case you prefer pry as a console, you could replace the irb lines with this: require "pry" Pry.start