github.com/argoproj/argo-cd@v1.8.7/docs/user-guide/commands/argocd_repo_add.md (about) 1 ## argocd repo add 2 3 Add git repository connection parameters 4 5 ### Synopsis 6 7 Add git repository connection parameters 8 9 ``` 10 argocd repo add REPOURL [flags] 11 ``` 12 13 ### Examples 14 15 ``` 16 # Add a Git repository via SSH using a private key for authentication, ignoring the server's host key: 17 argocd repo add git@git.example.com:repos/repo --insecure-ignore-host-key --ssh-private-key-path ~/id_rsa 18 19 # Add a Git repository via SSH on a non-default port - need to use ssh:// style URLs here 20 argocd repo add ssh://git@git.example.com:2222/repos/repo --ssh-private-key-path ~/id_rsa 21 22 # Add a private Git repository via HTTPS using username/password and TLS client certificates: 23 argocd repo add https://git.example.com/repos/repo --username git --password secret --tls-client-cert-path ~/mycert.crt --tls-client-cert-key-path ~/mycert.key 24 25 # Add a private Git repository via HTTPS using username/password without verifying the server's TLS certificate 26 argocd repo add https://git.example.com/repos/repo --username git --password secret --insecure-skip-server-verification 27 28 # Add a public Helm repository named 'stable' via HTTPS 29 argocd repo add https://kubernetes-charts.storage.googleapis.com --type helm --name stable 30 31 # Add a private Helm repository named 'stable' via HTTPS 32 argocd repo add https://kubernetes-charts.storage.googleapis.com --type helm --name stable --username test --password test 33 34 # Add a private Helm OCI-based repository named 'stable' via HTTPS 35 argocd repo add helm-oci-registry.cn-zhangjiakou.cr.aliyuncs.com --type helm --name stable --enable-oci --username test --password test 36 37 ``` 38 39 ### Options 40 41 ``` 42 --enable-lfs enable git-lfs (Large File Support) on this repository 43 --enable-oci enable helm-oci (Helm OCI-Based Repository) 44 -h, --help help for add 45 --insecure-ignore-host-key disables SSH strict host key checking (deprecated, use --insecure-skip-server-verification instead) 46 --insecure-skip-server-verification disables server certificate and host key checks 47 --name string name of the repository, mandatory for repositories of type helm 48 --password string password to the repository 49 --ssh-private-key-path string path to the private ssh key (e.g. ~/.ssh/id_rsa) 50 --tls-client-cert-key-path string path to the TLS client cert's key path (must be PEM format) 51 --tls-client-cert-path string path to the TLS client cert (must be PEM format) 52 --type string type of the repository, "git" or "helm" (default "git") 53 --upsert Override an existing repository with the same name even if the spec differs 54 --username string username to the repository 55 ``` 56 57 ### Options inherited from parent commands 58 59 ``` 60 --auth-token string Authentication token 61 --client-crt string Client certificate file 62 --client-crt-key string Client certificate key file 63 --config string Path to Argo CD config (default "/home/user/.argocd/config") 64 --grpc-web Enables gRPC-web protocol. Useful if Argo CD server is behind proxy which does not support HTTP2. 65 --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. 66 -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) 67 --insecure Skip server certificate and domain verification 68 --logformat string Set the logging format. One of: text|json (default "text") 69 --loglevel string Set the logging level. One of: debug|info|warn|error (default "info") 70 --plaintext Disable TLS 71 --port-forward Connect to a random argocd-server port using port forwarding 72 --port-forward-namespace string Namespace name which should be used for port forwarding 73 --server string Argo CD server address 74 --server-crt string Server certificate file 75 ``` 76 77 ### SEE ALSO 78 79 * [argocd repo](argocd_repo.md) - Manage repository connection parameters 80