github.com/wmuizelaar/kpt@v0.0.0-20221018115725-bd564717b2ed/site/reference/cli/alpha/repo/reg/README.md (about)

     1  ---
     2  title: "`reg`"
     3  linkTitle: "reg"
     4  type: docs
     5  description: >
     6    Register a package repository.
     7  ---
     8  
     9  <!--mdtogo:Short
    10      Register a package repository.
    11  -->
    12  
    13  `reg` registers a new repository.
    14  
    15  ### Synopsis
    16  
    17  <!--mdtogo:Long-->
    18  
    19  ```
    20  kpt alpha repo reg REPOSITORY [flags]
    21  ```
    22  
    23  #### Args
    24  
    25  ```
    26  REPOSITORY:
    27    The URI for the registry. It can be either a git repository
    28    or an oci repository. For the latter, the URI must have the
    29    'oci://' prefix.
    30  ```
    31  
    32  #### Flags
    33  
    34  ```
    35  --branch:
    36    Branch within the repository where finalized packages are
    37    commited. The default is to use the 'main' branch.
    38  
    39  --deployment:
    40    Tags the repository as a deployment repository. Packages in
    41    a deployment repository are considered ready for deployment.
    42  
    43  --description:
    44    Description of the repository.
    45  
    46  --directory:
    47    Directory within the repository where packages are found. The
    48    default is the root of the repository.
    49  
    50  --name:
    51    Name of the repository. By default the last segment of the
    52    repository URL will be used as the name.
    53  
    54  --repo-basic-username:
    55    Username for authenticating to a repository with basic auth.
    56  
    57  --repo-basic-password:
    58    Password for authenticating to a repository with basic auth.
    59  ```
    60  
    61  <!--mdtogo-->
    62  
    63  ### Examples
    64  
    65  <!--mdtogo:Examples-->
    66  
    67  ```shell
    68  # register a new git repository with the name generated from the URI.
    69  $ kpt alpha repo register https://github.com/platkrm/demo-blueprints.git --namespace=default
    70  ```
    71  
    72  ```shell
    73  # register a new deployment repository with name foo.
    74  $ kpt alpha repo register https://github.com/platkrm/blueprints-deployment.git --name=foo --deployment --namespace=bar
    75  ```
    76  
    77  <!--mdtogo-->