github.com/wmuizelaar/kpt@v0.0.0-20221018115725-bd564717b2ed/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  revision.
    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  --revision
    37    Revision for the new package. If this is not specified, the default
    38    revision will be `latest + 1`. The default can only be used if the
    39    latest package revision is of the format `^v[0-9]+$`.
    40  ```
    41  
    42  <!--mdtogo-->
    43  
    44  ### Examples
    45  
    46  <!--mdtogo:Examples-->
    47  
    48  ```shell
    49  # create a new package from package blueprint-b47eadc99f3c525571d3834cc61b974453bc6be2
    50  $ kpt alpha rpkg copy blueprint-b47eadc99f3c525571d3834cc61b974453bc6be2 --revision=v10 --namespace=default
    51  ```
    52  
    53  <!--mdtogo-->