File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,24 @@ DEBUG bool false Add debug symbols
213213
214214Variable types will be shown when set using the ` type ` property in the Bake file.
215215
216+ The ` --list=variables ` option displays variables defined in the Bake file, including their descriptions and default values.
217+
218+ ### Example: listing variables with descriptions
219+
220+ ``` hcl
221+ variable "GO_VERSION" {
222+ default = "1.22"
223+ description = "Go version used for building the application"
224+ }
225+ ```
226+
227+ ``` console
228+ $ docker buildx bake --list=variables
229+
230+ NAME DESCRIPTION DEFAULT
231+ GO_VERSION Go version used for building the application 1.22
232+ ```
233+
216234By default, the output of ` docker buildx bake --list ` is presented in a table
217235format. Alternatively, you can use a long-form CSV syntax and specify a
218236` format ` attribute to output the list in JSON.
You can’t perform that action at this time.
0 commit comments