You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bundler/lib/bundler/cli.rb
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -520,11 +520,11 @@ def licenses
520
520
Viz requires the ruby-graphviz gem (and its dependencies).
521
521
The associated gems must also be installed via 'bundle install'.
522
522
D
523
-
method_option:file,type: :string,default: "gem_graph",aliases: "-f",desc: "The name to use for the generated file. see format option"
524
-
method_option:format,type: :string,default: "png",aliases: "-F",desc: "This is output format option. Supported format is png, jpg, svg, dot ..."
525
-
method_option:requirements,type: :boolean,default: false,aliases: "-R",desc: "Set to show the version of each required dependency."
526
-
method_option:version,type: :boolean,default: false,aliases: "-v",desc: "Set to show each gem version."
527
-
method_option:without,type: :array,default: [],aliases: "-W",banner: "GROUP[ GROUP...]",desc: "Exclude gems that are part of the specified named group."
523
+
method_option:file,type: :string,default: "gem_graph",aliases: "-f",banner: "The name to use for the generated file. see format option"
524
+
method_option:format,type: :string,default: "png",aliases: "-F",banner: "This is output format option. Supported format is png, jpg, svg, dot ..."
525
+
method_option:requirements,type: :boolean,default: false,aliases: "-R",banner: "Set to show the version of each required dependency."
526
+
method_option:version,type: :boolean,default: false,aliases: "-v",banner: "Set to show each gem version."
527
+
method_option:without,type: :array,default: [],aliases: "-W",banner: "Exclude gems that are part of the specified named group."
528
528
defviz
529
529
SharedHelpers.major_deprecation2,"The `viz` command has been renamed to `graph` and moved to a plugin. See https://github.com/rubygems/bundler-graph"
530
530
require_relative"cli/viz"
@@ -533,19 +533,19 @@ def viz
533
533
end
534
534
535
535
desc"gem NAME [OPTIONS]","Creates a skeleton for creating a rubygem"
536
-
method_option:exe,type: :boolean,default: false,aliases: ["--bin","-b"],desc: "Generate a binary executable for your library."
537
-
method_option:coc,type: :boolean,desc: "Generate a code of conduct file. Set a default with `bundle config set --global gem.coc true`."
538
-
method_option:edit,type: :string,aliases: "-e",required: false,banner: "EDITOR",lazy_default: [ENV["BUNDLER_EDITOR"],ENV["VISUAL"],ENV["EDITOR"]].find{|e| !e.nil? && !e.empty?},desc: "Open generated gemspec in the specified editor (defaults to $EDITOR or $BUNDLER_EDITOR)"
539
-
method_option:ext,type: :string,desc: "Generate the boilerplate for C extension code.",enum: EXTENSIONS
540
-
method_option:git,type: :boolean,default: true,desc: "Initialize a git repo inside your library."
541
-
method_option:mit,type: :boolean,desc: "Generate an MIT license file. Set a default with `bundle config set --global gem.mit true`."
542
-
method_option:rubocop,type: :boolean,desc: "Add rubocop to the generated Rakefile and gemspec. Set a default with `bundle config set --global gem.rubocop true`."
543
-
method_option:changelog,type: :boolean,desc: "Generate changelog file. Set a default with `bundle config set --global gem.changelog true`."
536
+
method_option:exe,type: :boolean,default: false,aliases: ["--bin","-b"],banner: "Generate a binary executable for your library."
537
+
method_option:coc,type: :boolean,banner: "Generate a code of conduct file. Set a default with `bundle config set --global gem.coc true`."
538
+
method_option:edit,type: :string,aliases: "-e",required: false,lazy_default: [ENV["BUNDLER_EDITOR"],ENV["VISUAL"],ENV["EDITOR"]].find{|e| !e.nil? && !e.empty?},banner: "Open generated gemspec in the specified editor (defaults to $EDITOR or $BUNDLER_EDITOR)"
539
+
method_option:ext,type: :string,banner: "Generate the boilerplate for C extension code.",enum: EXTENSIONS
540
+
method_option:git,type: :boolean,default: true,banner: "Initialize a git repo inside your library."
541
+
method_option:mit,type: :boolean,banner: "Generate an MIT license file. Set a default with `bundle config set --global gem.mit true`."
542
+
method_option:rubocop,type: :boolean,banner: "Add rubocop to the generated Rakefile and gemspec. Set a default with `bundle config set --global gem.rubocop true`."
543
+
method_option:changelog,type: :boolean,banner: "Generate changelog file. Set a default with `bundle config set --global gem.changelog true`."
544
544
method_option:test,type: :string,lazy_default: Bundler.settings["gem.test"] || "",aliases: "-t",banner: "Use the specified test framework for your library",enum: %w[rspecminitesttest-unit],desc: "Generate a test directory for your library, either rspec, minitest or test-unit. Set a default with `bundle config set --global gem.test (rspec|minitest|test-unit)`."
545
-
method_option:ci,type: :string,lazy_default: Bundler.settings["gem.ci"] || "",enum: %w[githubgitlabcircle],desc: "Generate CI configuration, either GitHub Actions, GitLab CI or CircleCI. Set a default with `bundle config set --global gem.ci (github|gitlab|circle)`"
546
-
method_option:linter,type: :string,lazy_default: Bundler.settings["gem.linter"] || "",enum: %w[rubocopstandard],desc: "Add a linter and code formatter, either RuboCop or Standard. Set a default with `bundle config set --global gem.linter (rubocop|standard)`"
545
+
method_option:ci,type: :string,lazy_default: Bundler.settings["gem.ci"] || "",enum: %w[githubgitlabcircle],banner: "Generate CI configuration, either GitHub Actions, GitLab CI or CircleCI. Set a default with `bundle config set --global gem.ci (github|gitlab|circle)`"
546
+
method_option:linter,type: :string,lazy_default: Bundler.settings["gem.linter"] || "",enum: %w[rubocopstandard],banner: "Add a linter and code formatter, either RuboCop or Standard. Set a default with `bundle config set --global gem.linter (rubocop|standard)`"
547
547
method_option:github_username,type: :string,default: Bundler.settings["gem.github_username"],banner: "Set your username on GitHub",desc: "Fill in GitHub username on README so that you don't have to do it manually. Set a default with `bundle config set --global gem.github_username <your_username>`."
548
-
method_option:bundle,type: :boolean,default: Bundler.settings["gem.bundle"],desc: "Automatically run `bundle install` after creation. Set a default with `bundle config set --global gem.bundle true`"
548
+
method_option:bundle,type: :boolean,default: Bundler.settings["gem.bundle"],banner: "Automatically run `bundle install` after creation. Set a default with `bundle config set --global gem.bundle true`"
Copy file name to clipboardExpand all lines: bundler/lib/bundler/man/bundle-config.1
+31-14Lines changed: 31 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
1
.\" generated with Ronn-NG/v0.10.1
2
2
.\" http://github.com/apjanke/ronn-ng/tree/0.10.1
3
-
.TH "BUNDLE\-CONFIG" "1" "July 2025" ""
3
+
.TH "BUNDLE\-CONFIG" "1" "August 2025" ""
4
4
.SH "NAME"
5
5
\fBbundle\-config\fR\- Set bundler configuration options
6
6
.SH "SYNOPSIS"
7
-
\fBbundleconfig\fR list
7
+
\fBbundleconfig\fR[list]
8
8
.br
9
-
\fBbundleconfig\fR [get] NAME
9
+
\fBbundleconfig\fR [get [\-\-local|\-\-global]] NAME
10
10
.br
11
-
\fBbundleconfig\fR [set] NAME VALUE
11
+
\fBbundleconfig\fR [set [\-\-local|\-\-global]] NAME VALUE
12
12
.br
13
-
\fBbundleconfig\fR unset NAME
13
+
\fBbundleconfig\fR unset [\-\-local|\-\-global] NAME
14
14
.SH "DESCRIPTION"
15
15
This command allows you to interact with Bundler's configuration system\.
16
16
.P
@@ -25,23 +25,40 @@ Global config (\fB~/\.bundle/config\fR)
25
25
Bundler default config
26
26
.IP""0
27
27
.P
28
+
Executing \fBbundle\fR with the \fBBUNDLE_IGNORE_CONFIG\fR environment variable set will cause it to ignore all configuration\.
29
+
.SH "SUB\-COMMANDS"
30
+
.SS "list (default command)"
28
31
Executing \fBbundleconfiglist\fR will print a list of all bundler configuration for the current bundle, and where that configuration was set\.
32
+
.SS "get"
33
+
Executing \fBbundleconfigget<name>\fR will print the value of that configuration setting, and all locations where it was set\.
29
34
.P
30
-
Executing \fBbundleconfigget<name>\fR will print the value of that configuration setting, and where it was set\.
31
-
.P
32
-
Executing \fBbundleconfigset<name><value>\fR defaults to setting \fBlocal\fR configuration if executing from within a local application, otherwise it will set \fBglobal\fR configuration\. See \fB\-\-local\fR and \fB\-\-global\fR options below\.
35
+
\fBOPTIONS\fR
36
+
.TP
37
+
\fB\-\-local\fR
38
+
Get configuration from configuration file for the local application, namely, \fB<project_root>/\.bundle/config\fR, or \fB$BUNDLE_APP_CONFIG/config\fR if \fBBUNDLE_APP_CONFIG\fR is set\.
39
+
.TP
40
+
\fB\-\-global\fR
41
+
Get configuration from configuration file global to all bundles executed as the current user, namely, from \fB~/\.bundle/config\fR\.
42
+
.SS "set"
43
+
Executing \fBbundleconfigset<name><value>\fR defaults to setting \fBlocal\fR configuration if executing from within a local application, otherwise it will set \fBglobal\fR configuration\.
33
44
.P
45
+
\fBOPTIONS\fR
46
+
.TP
47
+
\fB\-\-local\fR
34
48
Executing \fBbundleconfigset\-\-local<name><value>\fR will set that configuration in the directory for the local application\. The configuration will be stored in \fB<project_root>/\.bundle/config\fR\. If \fBBUNDLE_APP_CONFIG\fR is set, the configuration will be stored in \fB$BUNDLE_APP_CONFIG/config\fR\.
35
-
.P
49
+
.TP
50
+
\fB\-\-global\fR
36
51
Executing \fBbundleconfigset\-\-global<name><value>\fR will set that configuration to the value specified for all bundles executed as the current user\. The configuration will be stored in \fB~/\.bundle/config\fR\. If \fIname\fR already is set, \fIname\fR will be overridden and user will be warned\.
37
-
.P
52
+
.SS "unset"
38
53
Executing \fBbundleconfigunset<name>\fR will delete the configuration in both local and global sources\.
39
54
.P
40
-
Executing \fBbundleconfigunset\-\-global<name>\fR will delete the configuration only from the user configuration\.
41
-
.P
55
+
\fBOPTIONS\fR
56
+
.TP
57
+
\fB\-\-local\fR
42
58
Executing \fBbundleconfigunset\-\-local<name>\fR will delete the configuration only from the local application\.
43
-
.P
44
-
Executing bundle with the \fBBUNDLE_IGNORE_CONFIG\fR environment variable set will cause it to ignore all configuration\.
59
+
.TP
60
+
\fB\-\-global\fR
61
+
Executing \fBbundleconfigunset\-\-global<name>\fR will delete the configuration only from the user configuration\.
45
62
.SH "CONFIGURATION KEYS"
46
63
Configuration keys in bundler have two forms: the canonical form and the environment variable form\.
0 commit comments