#first make sure you have rails installed, then... rails new your_new_rails_app_name
# specify version between _'s rails _5.2.4.1_ new app_name