{
    "mode": "man",
    "parameter": "BUNDLE-INIT",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/man/BUNDLE-INIT/json",
    "generated": "2026-11-10T09:05:48Z",
    "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"
                },
                {
                    "name": "--gemfile",
                    "content": "Use the specified name for the gemfile instead of Gemfile\n",
                    "long": "--gemfile"
                }
            ]
        },
        "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\nAugust 2023                              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)]"
        },
        {
            "flag": "",
            "long": "--gemfile",
            "arg": null,
            "description": "Use the specified name for the gemfile instead of Gemfile"
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "Gemfile",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/Gemfile/5/json"
        }
    ]
}