mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
564 B
Plaintext
26 lines
564 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# rails console
|
|
|
|
> Interact with a Rails application.
|
|
> More information: <https://guides.rubyonrails.org/command_line.html#bin-rails-console>.
|
|
|
|
- Start the Rails console:
|
|
|
|
`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]}}`
|