# BUNDLE-INIT - Generates a Gemfile into the current working directory - man - [phpMan]

[_BUNDLE-INIT_(1)](https://www.chedong.com/phpMan.php/man/BUNDLE-INIT/1/markdown)                                                                        [_BUNDLE-INIT_(1)](https://www.chedong.com/phpMan.php/man/BUNDLE-INIT/1/markdown)

## NAME
       **bundle-init **- Generates a Gemfile into the current working directory

## SYNOPSIS
       **bundle init **[--gemspec=FILE]

## DESCRIPTION
       Init  generates  a  default  [[**Gemfile(5)](https://www.chedong.com/phpMan.php/man/Gemfile/5/markdown)**][[Gemfile(5)](https://www.chedong.com/phpMan.php/man/Gemfile/5/markdown)]  in the current working directory. When
       adding a [[**Gemfile(5)](https://www.chedong.com/phpMan.php/man/Gemfile/5/markdown)**][[Gemfile(5)](https://www.chedong.com/phpMan.php/man/Gemfile/5/markdown)] to a gem with a gemspec, the **--gemspec **option will automat‐
       ically add each dependency listed in the gemspec file to the newly created  [[**Gemfile(5)](https://www.chedong.com/phpMan.php/man/Gemfile/5/markdown)**][Gem‐
       [file(5)](https://www.chedong.com/phpMan.php/man/file/5/markdown)].

## OPTIONS
### --gemspec
              Use the specified .gemspec to create the [[**Gemfile(5)](https://www.chedong.com/phpMan.php/man/Gemfile/5/markdown)**][[Gemfile(5)](https://www.chedong.com/phpMan.php/man/Gemfile/5/markdown)]

### --gemfile
              Use the specified name for the gemfile instead of **Gemfile**

## FILES
       Included  in  the default [[**Gemfile(5)](https://www.chedong.com/phpMan.php/man/Gemfile/5/markdown)**][[Gemfile(5)](https://www.chedong.com/phpMan.php/man/Gemfile/5/markdown)] generated is the line **# frozen_string_lit‐**
       **eral: true**. This is a magic comment supported for the first time in Ruby 2.3. The presence of
       this line results in all string literals in the file being implicitly frozen.

## SEE ALSO
       [Gemfile(5)](https://www.chedong.com/phpMan.php/man/Gemfile/5/markdown) _<https://bundler.io/man/gemfile.5.html_>

                                             August 2023                              [_BUNDLE-INIT_(1)](https://www.chedong.com/phpMan.php/man/BUNDLE-INIT/1/markdown)
