@@ -46,8 +46,55 @@ kcl mod add k8s:1.29
46
46
47
47
### Add a dependency from git repository
48
48
49
- Add kcl dependency named ` konfig ` with version ` v0.1 .0 ` from git repository.
49
+ Add kcl dependency named ` konfig ` with version ` v0.4 .0 ` from git repository.
50
50
51
51
``` shell
52
- kcl mod add --git https://github.com/awesome-kusion/konfig.git --tag v0.1.0
52
+ kcl mod add --git https://github.com/kcl-lang/konfig.git --tag v0.4.0
53
+ ```
54
+
55
+ ## Reference
56
+
57
+ ``` shell
58
+ This command adds new dependency
59
+
60
+ Usage:
61
+ kcl mod add [flags]
62
+
63
+ Examples:
64
+ # Add the module dependency named "k8s"
65
+ kcl mod add k8s
66
+
67
+ # Add the module dependency named "k8s" with the version "1.28"
68
+ kcl mod add k8s:1.28
69
+
70
+ # Add the module dependency from the GitHub by git url
71
+ kcl mod add git://github.com/kcl-lang/konfig --tag v0.4.0
72
+
73
+ # Add the module dependency from the OCI Registry by oci url
74
+ kcl mod add oci://ghcr.io/kcl-lang/helloworld --tag 0.1.0
75
+
76
+ # Add the module dependency from the local file system by file url
77
+ kcl mod add /path/to/another_module
78
+
79
+ # Add the module dependency from the GitHub by flag
80
+ kcl mod add --git https://github.com/kcl-lang/konfig --tag v0.4.0
81
+
82
+ # Add the module dependency from the OCI Registry by flag
83
+ kcl mod add --oci https://ghcr.io/kcl-lang/helloworld --tag 0.1.0
84
+
85
+ # Add a local dependency by flag
86
+ kcl mod add --path /path/to/another_module
87
+
88
+ Flags:
89
+ --branch string git repository branch
90
+ --commit string git repository commit
91
+ --git string git repository url
92
+ -h, --help help for add
93
+ --no_sum_check do not check the checksum of the package and update kcl.mod.lock
94
+ --oci string oci repository url
95
+ --rename string rename the dependency
96
+ --tag string git or oci repository tag
97
+
98
+ Global Flags:
99
+ -q, --quiet Set the quiet mode (no output)
53
100
```
0 commit comments