github.com/KusionStack/kpm@v0.8.4-0.20240326033734-dc72298a30e5/docs/command-reference/6.login.md (about) 1 # kpm login 2 3 Login to the kpm registry. 4 5 ## Usage 6 7 ```shell 8 kpm login [options][kpm_registry] 9 ``` 10 11 ## Description 12 13 `kpm login` will login the kpm registry. 14 15 ## options 16 17 ### --username 18 19 Specify the username of the kpm registry. 20 21 ### --password 22 23 Specify the password of the kpm registry. 24 25 ### --help, -h 26 27 Show help for `kpm login` command. 28 29 ## Examples 30 31 ### login to a registry with account and password 32 33 ```shell 34 $ kpm login -u <account_name> -p <password> <oci_registry> 35 Login succeeded 36 ``` 37 38 ### login to a registry with account, and enter the password interactively 39 40 ```shell 41 $ kpm login -u <account_name> <oci_registry> 42 Password: 43 Login succeeded 44 ``` 45 46 ### login to a registry, and enter the account and password interactively 47 48 ```shell 49 $ kpm login <oci_registry> 50 Username: <account_name> 51 Password: 52 Login succeeded 53 ```