github.com/SamarSidharth/kpt@v0.0.0-20231122062228-c7d747ae3ace/site/reference/cli/alpha/rpkg/copy/README.md (about)

     1  ---
     2  title: "`copy`"
     3  linkTitle: "copy"
     4  type: docs
     5  description: >
     6    Create a new package revision from an existing one.
     7  ---
     8  
     9  <!--mdtogo:Short
    10      Create a new package revision from an existing one.
    11  -->
    12  
    13  `copy` creates a new package revision from an existing one. The new
    14  revision will be identical to the existing one but with a different
    15  workspace.
    16  
    17  ### Synopsis
    18  
    19  <!--mdtogo:Long-->
    20  
    21  ```
    22  kpt alpha rpkg copy SOURCE_PACKAGE_REV_NAME [flags]
    23  ```
    24  
    25  #### Args
    26  
    27  ```
    28  SOURCE_PACKAGE_REV_NAME:
    29    The name of the package revision that will be used as the source
    30    for creating a new package revision.
    31  ```
    32  
    33  #### Flags
    34  
    35  ```
    36  --workspace
    37    Workspace for the new package revision.
    38  ```
    39  
    40  <!--mdtogo-->
    41  
    42  ### Examples
    43  
    44  <!--mdtogo:Examples-->
    45  
    46  ```shell
    47  # create a new package from package blueprint-b47eadc99f3c525571d3834cc61b974453bc6be2
    48  $ kpt alpha rpkg copy blueprint-b47eadc99f3c525571d3834cc61b974453bc6be2 --workspace=v10 --namespace=default
    49  ```
    50  
    51  <!--mdtogo-->