Options (3)
-s, --sandboxbooleanStart the Rails console and roll back all data modifications on exit
Example:
rails console {{[-s|--sandbox]}}-e, --environmentbooleanStart the Rails console on a specified environment
Example:
rails console {{[-e|--environment]}} {{dev|test|production|...}}-h, --helpbooleanDisplay help
Example:
rails console {{[-h|--help]}}Examples (4)
Start the Rails console
Start the Rails console and roll back all data modifications on exit
rails console [-s|--sandbox]Start the Rails console on a specified environment
rails console [-e|--environment] dev|test|production|...Display help
rails console [-h|--help]made by @shridhargupta | data from tldr-pages