Skip to content

Commit 8246973

Browse files
committed
fix: kpm cmd to kcl registry
Signed-off-by: peefy <xpf6677@163.com>
1 parent b192a8f commit 8246973

File tree

4 files changed

+18
-18
lines changed
  • docs/user_docs/guides/package-management/4-how-to
  • i18n/zh-CN/docusaurus-plugin-content-docs
  • versioned_docs/version-0.7.0/user_docs/guides/package-management/4-how-to

4 files changed

+18
-18
lines changed

docs/user_docs/guides/package-management/4-how-to/9-kpm_oci.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ Login succeeded
8080
You can use `kcl registry logout` to logout an OCI Registry.
8181

8282
```shell
83-
kpm logout <registry>
83+
kcl registry logout <registry>
8484
```
8585

8686
For the example, the command is as follows:
8787

8888
```shell
89-
kpm logout localhost:5001
89+
kcl registry logout localhost:5001
9090
```
9191

9292
### `kcl mod push` to upload a KCL package
@@ -134,13 +134,13 @@ $ kcl mod push oci://localhost:5001/test/MyPkg --tag v0.1.0
134134
You can use `kcl mod pull` to download a KCL package from the default OCI registry. KPM will automatically search for the kcl package from the OCI registry in `kpm.json`.
135135

136136
```shell
137-
kpm pull <package_name>:<package_version>
137+
kcl mod pull <package_name>:<package_version>
138138
```
139139

140140
For the example, the command is as follows:
141141

142142
```shell
143-
kpm pull MyPkg:v0.1.0
143+
kcl mod pull MyPkg:v0.1.0
144144
```
145145

146146
Or, you can download a kcl package from the specified OCI registry url.

i18n/zh-CN/docusaurus-plugin-content-docs/current/user_docs/guides/package-management/4-how-to/9-oci_reg_supports.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,16 @@ Login succeeded
7777

7878
### kcl registry logout
7979

80-
你可以使用 `kpm logout` 退出一个 OCI Registry。
80+
你可以使用 `kcl registry logout` 退出一个 OCI Registry。
8181

8282
```shell
83-
kpm logout <registry>
83+
kcl registry logout <registry>
8484
```
8585

8686
对我们的示例来说,命令如下:
8787

8888
```shell
89-
kpm logout localhost:5001
89+
kcl registry logout localhost:5001
9090
```
9191

9292
### kcl mod push
@@ -134,13 +134,13 @@ $ kcl mod push oci://localhost:5001/test/MyPkg --tag v0.1.0
134134
你可以使用 `kcl mod pull` 从默认的 OCI registry 中下载一个 kcl 包。kpm 会自动从 `kpm.json` 中的 OCI registry 中寻找 kcl 包。
135135

136136
```shell
137-
kpm pull <package_name>:<package_version>
137+
kcl mod pull <package_name>:<package_version>
138138
```
139139

140140
对于示例来说,命令如下:
141141

142142
```shell
143-
kpm pull MyPkg:v0.1.0
143+
kcl mod pull MyPkg:v0.1.0
144144
```
145145

146146
或者,你也可以从指定的 OCI registry url 中下载一个 kcl 包。

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.7.0/user_docs/guides/package-management/4-how-to/9-oci_reg_supports.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,16 @@ Login succeeded
7777

7878
### kcl registry logout
7979

80-
你可以使用 `kpm logout` 退出一个 OCI Registry。
80+
你可以使用 `kcl registry logout` 退出一个 OCI Registry。
8181

8282
```shell
83-
kpm logout <registry>
83+
kcl registry logout <registry>
8484
```
8585

8686
对我们的示例来说,命令如下:
8787

8888
```shell
89-
kpm logout localhost:5001
89+
kcl registry logout localhost:5001
9090
```
9191

9292
### kcl mod push
@@ -134,13 +134,13 @@ $ kcl mod push oci://localhost:5001/test/MyPkg --tag v0.1.0
134134
你可以使用 `kcl mod pull` 从默认的 OCI registry 中下载一个 kcl 包。kpm 会自动从 `kpm.json` 中的 OCI registry 中寻找 kcl 包。
135135

136136
```shell
137-
kpm pull <package_name>:<package_version>
137+
kcl mod pull <package_name>:<package_version>
138138
```
139139

140140
对于示例来说,命令如下:
141141

142142
```shell
143-
kpm pull MyPkg:v0.1.0
143+
kcl mod pull MyPkg:v0.1.0
144144
```
145145

146146
或者,你也可以从指定的 OCI registry url 中下载一个 kcl 包。

versioned_docs/version-0.7.0/user_docs/guides/package-management/4-how-to/9-kpm_oci.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ Login succeeded
8080
You can use `kcl registry logout` to logout an OCI Registry.
8181

8282
```shell
83-
kpm logout <registry>
83+
kcl registry logout <registry>
8484
```
8585

8686
For the example, the command is as follows:
8787

8888
```shell
89-
kpm logout localhost:5001
89+
kcl registry logout localhost:5001
9090
```
9191

9292
### `kcl mod push` to upload a KCL package
@@ -134,13 +134,13 @@ $ kcl mod push oci://localhost:5001/test/MyPkg --tag v0.1.0
134134
You can use `kcl mod pull` to download a KCL package from the default OCI registry. KPM will automatically search for the kcl package from the OCI registry in `kpm.json`.
135135

136136
```shell
137-
kpm pull <package_name>:<package_version>
137+
kcl mod pull <package_name>:<package_version>
138138
```
139139

140140
For the example, the command is as follows:
141141

142142
```shell
143-
kpm pull MyPkg:v0.1.0
143+
kcl mod pull MyPkg:v0.1.0
144144
```
145145

146146
Or, you can download a kcl package from the specified OCI registry url.

0 commit comments

Comments
 (0)