github.com/KusionStack/kpm@v0.8.4-0.20240326033734-dc72298a30e5/docs/command-reference-zh/3.pkg.md (about)

     1  # kpm pkg
     2  
     3  打包一个 kcl 包。
     4  
     5  ## 使用
     6  
     7  ```shell
     8  kpm pkg [options]
     9  ```
    10  
    11  ## 介绍
    12  
    13  `kpm pkg` 会打包一个 kcl 包为 `*.tar`。
    14  
    15  选项 `--target` 用于指定打包后的 `*.tar` 文件路径。
    16  
    17  ## 选项
    18  
    19  ### --target
    20  
    21  指定打包后的 `*.tar` 文件路径。
    22  
    23  ### --help, -h
    24  
    25  显示帮助信息。
    26  
    27  ## 示例
    28  
    29  ### 打包当前 kcl 包为 `*.tar`
    30  
    31  ```shell
    32  kpm pkg --target /Users/my_package_tar
    33  ```