github.com/argoproj/argo-cd@v1.8.7/docs/user-guide/commands/argocd_repocreds_add.md (about)

     1  ## argocd repocreds add
     2  
     3  Add git repository connection parameters
     4  
     5  ### Synopsis
     6  
     7  Add git repository connection parameters
     8  
     9  ```
    10  argocd repocreds add REPOURL [flags]
    11  ```
    12  
    13  ### Examples
    14  
    15  ```
    16    # Add credentials with user/pass authentication to use for all repositories under https://git.example.com/repos
    17    argocd repocreds add https://git.example.com/repos/ --username git --password secret
    18  
    19    # Add credentials with SSH private key authentication to use for all repositories under ssh://git@git.example.com/repos
    20    argocd repocreds add ssh://git@git.example.com/repos/ --ssh-private-key-path ~/.ssh/id_rsa
    21  
    22  ```
    23  
    24  ### Options
    25  
    26  ```
    27    -h, --help                              help for add
    28        --password string                   password to the repository
    29        --ssh-private-key-path string       path to the private ssh key (e.g. ~/.ssh/id_rsa)
    30        --tls-client-cert-key-path string   path to the TLS client cert's key path (must be PEM format)
    31        --tls-client-cert-path string       path to the TLS client cert (must be PEM format)
    32        --upsert                            Override an existing repository with the same name even if the spec differs
    33        --username string                   username to the repository
    34  ```
    35  
    36  ### Options inherited from parent commands
    37  
    38  ```
    39        --auth-token string               Authentication token
    40        --client-crt string               Client certificate file
    41        --client-crt-key string           Client certificate key file
    42        --config string                   Path to Argo CD config (default "/home/user/.argocd/config")
    43        --grpc-web                        Enables gRPC-web protocol. Useful if Argo CD server is behind proxy which does not support HTTP2.
    44        --grpc-web-root-path string       Enables gRPC-web protocol. Useful if Argo CD server is behind proxy which does not support HTTP2. Set web root.
    45    -H, --header strings                  Sets additional header to all requests made by Argo CD CLI. (Can be repeated multiple times to add multiple headers, also supports comma separated headers)
    46        --insecure                        Skip server certificate and domain verification
    47        --logformat string                Set the logging format. One of: text|json (default "text")
    48        --loglevel string                 Set the logging level. One of: debug|info|warn|error (default "info")
    49        --plaintext                       Disable TLS
    50        --port-forward                    Connect to a random argocd-server port using port forwarding
    51        --port-forward-namespace string   Namespace name which should be used for port forwarding
    52        --server string                   Argo CD server address
    53        --server-crt string               Server certificate file
    54  ```
    55  
    56  ### SEE ALSO
    57  
    58  * [argocd repocreds](argocd_repocreds.md)	 - Manage repository connection parameters
    59