{
    "content": [
        {
            "type": "text",
            "text": "# BUNDLE-LOCK (man)\n\n## NAME\n\nbundle-lock - Creates / Updates a lockfile without installing\n\n## SYNOPSIS\n\nbundle  lock [--update] [--local] [--print] [--lockfile=PATH] [--full-index] [--add-platform]\n[--remove-platform] [--patch] [--minor] [--major] [--strict] [--conservative]\n\n## DESCRIPTION\n\nLock the gems specified in Gemfile.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (11 subsections)\n- **UPDATING ALL GEMS**\n- **UPDATING A LIST OF GEMS**\n- **SUPPORTING OTHER PLATFORMS**\n- **PATCH LEVEL OPTIONS**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "BUNDLE-LOCK",
        "section": "",
        "mode": "man",
        "summary": "bundle-lock - Creates / Updates a lockfile without installing",
        "synopsis": "bundle  lock [--update] [--local] [--print] [--lockfile=PATH] [--full-index] [--add-platform]\n[--remove-platform] [--patch] [--minor] [--major] [--strict] [--conservative]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "",
                "long": "--local",
                "arg": null,
                "description": "Do not attempt to connect to rubygems.org. Instead, Bundler will use the gems already present in Rubygems´ cache or in vendor/cache. Note that if a appropriate plat‐ form-specific gem exists on rubygems.org it will not be found."
            },
            {
                "flag": "",
                "long": "--print",
                "arg": null,
                "description": "Prints the lockfile to STDOUT instead of writing to the file system."
            },
            {
                "flag": "",
                "long": "--lockfile",
                "arg": "<path>",
                "description": "The path where the lockfile should be written to."
            },
            {
                "flag": "",
                "long": "--full-index",
                "arg": null,
                "description": "Fall back to using the single-file index of all gems."
            },
            {
                "flag": "",
                "long": "--add-platform",
                "arg": null,
                "description": "Add a new platform to the lockfile, re-resolving for the addition of that platform."
            },
            {
                "flag": "",
                "long": "--remove-platform",
                "arg": null,
                "description": "Remove a platform from the lockfile."
            },
            {
                "flag": "",
                "long": "--patch",
                "arg": null,
                "description": "If updating, prefer updating only to next patch version."
            },
            {
                "flag": "",
                "long": "--minor",
                "arg": null,
                "description": "If updating, prefer updating only to next minor version."
            },
            {
                "flag": "",
                "long": "--major",
                "arg": null,
                "description": "If updating, prefer updating to next major version (default)."
            },
            {
                "flag": "",
                "long": "--strict",
                "arg": null,
                "description": "If updating, do not allow any gem to be updated past latest --patch | --minor | --ma‐ jor."
            },
            {
                "flag": "",
                "long": "--conservative",
                "arg": null,
                "description": "If updating, use bundle install conservative update behavior and do not allow shared dependencies to be updated."
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 4,
                "subsections": [
                    {
                        "name": "--local",
                        "lines": 4,
                        "long": "--local"
                    },
                    {
                        "name": "--print",
                        "lines": 2,
                        "long": "--print"
                    },
                    {
                        "name": "--lockfile=<path>",
                        "lines": 2,
                        "long": "--lockfile",
                        "arg": "<path>"
                    },
                    {
                        "name": "--full-index",
                        "lines": 2,
                        "long": "--full-index"
                    },
                    {
                        "name": "--add-platform",
                        "lines": 2,
                        "long": "--add-platform"
                    },
                    {
                        "name": "--remove-platform",
                        "lines": 2,
                        "long": "--remove-platform"
                    },
                    {
                        "name": "--patch",
                        "lines": 2,
                        "long": "--patch"
                    },
                    {
                        "name": "--minor",
                        "lines": 2,
                        "long": "--minor"
                    },
                    {
                        "name": "--major",
                        "lines": 2,
                        "long": "--major"
                    },
                    {
                        "name": "--strict",
                        "lines": 3,
                        "long": "--strict"
                    },
                    {
                        "name": "--conservative",
                        "lines": 3,
                        "long": "--conservative"
                    }
                ]
            },
            {
                "name": "UPDATING ALL GEMS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "UPDATING A LIST OF GEMS",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "SUPPORTING OTHER PLATFORMS",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "PATCH LEVEL OPTIONS",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "bundle-lock - Creates / Updates a lockfile without installing\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "bundle  lock [--update] [--local] [--print] [--lockfile=PATH] [--full-index] [--add-platform]\n[--remove-platform] [--patch] [--minor] [--major] [--strict] [--conservative]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Lock the gems specified in Gemfile.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "--update=<*gems>\nIgnores the existing lockfile. Resolve then updates lockfile. Taking a list of gems or\nupdating all gems if no list is given.\n",
                "subsections": [
                    {
                        "name": "--local",
                        "content": "Do  not attempt to connect to rubygems.org. Instead, Bundler will use the gems already\npresent in Rubygems´ cache or in  vendor/cache.  Note  that  if  a  appropriate  plat‐\nform-specific gem exists on rubygems.org it will not be found.\n",
                        "long": "--local"
                    },
                    {
                        "name": "--print",
                        "content": "Prints the lockfile to STDOUT instead of writing to the file system.\n",
                        "long": "--print"
                    },
                    {
                        "name": "--lockfile=<path>",
                        "content": "The path where the lockfile should be written to.\n",
                        "long": "--lockfile",
                        "arg": "<path>"
                    },
                    {
                        "name": "--full-index",
                        "content": "Fall back to using the single-file index of all gems.\n",
                        "long": "--full-index"
                    },
                    {
                        "name": "--add-platform",
                        "content": "Add a new platform to the lockfile, re-resolving for the addition of that platform.\n",
                        "long": "--add-platform"
                    },
                    {
                        "name": "--remove-platform",
                        "content": "Remove a platform from the lockfile.\n",
                        "long": "--remove-platform"
                    },
                    {
                        "name": "--patch",
                        "content": "If updating, prefer updating only to next patch version.\n",
                        "long": "--patch"
                    },
                    {
                        "name": "--minor",
                        "content": "If updating, prefer updating only to next minor version.\n",
                        "long": "--minor"
                    },
                    {
                        "name": "--major",
                        "content": "If updating, prefer updating to next major version (default).\n",
                        "long": "--major"
                    },
                    {
                        "name": "--strict",
                        "content": "If  updating, do not allow any gem to be updated past latest --patch | --minor | --ma‐\njor.\n",
                        "long": "--strict"
                    },
                    {
                        "name": "--conservative",
                        "content": "If updating, use bundle install conservative update behavior and do not  allow  shared\ndependencies to be updated.\n",
                        "long": "--conservative"
                    }
                ]
            },
            "UPDATING ALL GEMS": {
                "content": "If  you  run  bundle  lock with --update option without list of gems, bundler will ignore any\npreviously installed gems and resolve all dependencies again based on the latest versions  of\nall gems available in the sources.\n",
                "subsections": []
            },
            "UPDATING A LIST OF GEMS": {
                "content": "Sometimes,  you want to update a single gem in the Gemfile(5), and leave the rest of the gems\nthat you specified locked to the versions in the Gemfile.lock.\n\nFor instance, you only want to update nokogiri, run bundle lock --update nokogiri.\n\nBundler will update nokogiri and any of its dependencies, but leave the rest of the gems that\nyou specified locked to the versions in the Gemfile.lock.\n",
                "subsections": []
            },
            "SUPPORTING OTHER PLATFORMS": {
                "content": "If  you  want your bundle to support platforms other than the one you´re running locally, you\ncan run bundle lock --add-platform PLATFORM to add PLATFORM to the lockfile, force bundler to\nre-resolve and consider the new platform when picking gems, all without needing to have a ma‐\nchine that matches PLATFORM handy to install those platform-specific gems on.\n\nFor a full explanation of gem platforms, see gem help platform.\n",
                "subsections": []
            },
            "PATCH LEVEL OPTIONS": {
                "content": "See bundle update(1) bundle-update.1.html for details.\n\n\n\nDecember 2021                             BUNDLE-LOCK(1)",
                "subsections": []
            }
        }
    }
}