Which command is used to list the gems used by an application?

Hi, I have been working on an application for a few months and
installed some gems, but I don't remember the exact list.

I want to deploy my app and I need to install the gems I used. Which
command line is used for that?

thank u

rake gems

also: rake --tasks

To list all your local gems use:
gem list --local

To install all those gems on your remote machine, you can run:
gem list --local --no-versions | xargs echo “gem install”

to get a command line ready to install every gem (although you probably don’t want to install every local gem)

gem install