{
    "mode": "man",
    "parameter": "bundle-init",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/bundle-init/1/json",
    "generated": "2026-05-30T05:14:21Z",
    "synopsis": "bundle init [--gemspec=FILE]",
    "sections": {
        "NAME": {
            "content": "bundle-init - Generates a Gemfile into the current working directory\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "bundle init [--gemspec=FILE]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Init  generates  a  default  [Gemfile(5)][Gemfile(5)]  in the current working directory. When\nadding a [Gemfile(5)][Gemfile(5)] to a gem with a gemspec, the --gemspec option will automat‐\nically  add each dependency listed in the gemspec file to the newly created [Gemfile(5)][Gem‐\nfile(5)].\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "--gemspec",
                    "content": "Use the specified .gemspec to create the [Gemfile(5)][Gemfile(5)]\n",
                    "long": "--gemspec"
                }
            ]
        },
        "FILES": {
            "content": "Included in the default [Gemfile(5)][Gemfile(5)] generated is the line  #  frozenstringlit‐‐\neral: true. This is a magic comment supported for the first time in Ruby 2.3. The presence of\nthis line results in all string literals in the file being implicitly frozen.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Gemfile(5) https://bundler.io/man/gemfile.5.html\n\n\n\nDecember 2021                             BUNDLE-INIT(1)",
            "subsections": []
        }
    },
    "summary": "bundle-init - Generates a Gemfile into the current working directory",
    "flags": [
        {
            "flag": "",
            "long": "--gemspec",
            "arg": null,
            "description": "Use the specified .gemspec to create the [Gemfile(5)][Gemfile(5)]"
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "Gemfile",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/Gemfile/5/json"
        },
        {
            "name": "BUNDLE-INIT",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/BUNDLE-INIT/1/json"
        }
    ]
}