aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/command_line.md
diff options
context:
space:
mode:
authorVishnu Atrai <me@vishnuatrai.com>2013-06-14 00:03:45 +0530
committerVishnu Atrai <me@vishnuatrai.com>2013-06-14 08:06:54 +0530
commit8f39defd29934d63c8b4359a6b8ac747da8e0d18 (patch)
tree94065e188b38c370488dd329980b417b4d786192 /guides/source/command_line.md
parentad694f2f264b5afe04af77b3f43971984f32808c (diff)
downloadrails-8f39defd29934d63c8b4359a6b8ac747da8e0d18.tar.gz
rails-8f39defd29934d63c8b4359a6b8ac747da8e0d18.tar.bz2
rails-8f39defd29934d63c8b4359a6b8ac747da8e0d18.zip
more guidelines for command line
Diffstat (limited to 'guides/source/command_line.md')
-rw-r--r--guides/source/command_line.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/guides/source/command_line.md b/guides/source/command_line.md
index e0b44bbf93..0b36f0859f 100644
--- a/guides/source/command_line.md
+++ b/guides/source/command_line.md
@@ -27,6 +27,8 @@ There are a few commands that are absolutely critical to your everyday usage of
* `rails dbconsole`
* `rails new app_name`
+All commands can run with ```-h or --help``` to list more information.
+
Let's create a simple Rails application to step through each of these commands in context.
### `rails new`
@@ -348,6 +350,9 @@ Rake is Ruby Make, a standalone Ruby utility that replaces the Unix utility 'mak
You can get a list of Rake tasks available to you, which will often depend on your current directory, by typing `rake --tasks`. Each task has a description, and should help you find the thing you need.
+To get the full backtrace for running rake task you can pass the option
+```--trace``` to command line, for example ```rake db:create --trace```.
+
```bash
$ rake --tasks
rake about # List versions of all Rails frameworks and the environment
@@ -361,6 +366,7 @@ rake middleware # Prints out your Rack middleware stack
rake tmp:clear # Clear session, cache, and socket files from tmp/ (narrow w/ tmp:sessions:clear, tmp:cache:clear, tmp:sockets:clear)
rake tmp:create # Creates tmp directories for sessions, cache, sockets, and pids
```
+INFO: You can also use ```rake -T``` to get the list of tasks.
### `about`