@@ -43,7 +43,17 @@ grn --version
4343
4444### Configuration
4545
46- Before using the GreenNode CLI, you need to configure your credentials. The quickest way is to run:
46+ Before using the GreenNode CLI, you need to configure your credentials. There are three ways:
47+
48+ ** Method 1: Environment variables**
49+
50+ ``` bash
51+ export GRN_ACCESS_KEY_ID=your-client-id
52+ export GRN_SECRET_ACCESS_KEY=your-client-secret
53+ export GRN_DEFAULT_REGION=HCM-3
54+ ```
55+
56+ ** Method 2: Interactive setup (recommended)**
4757
4858``` bash
4959grn configure
@@ -56,9 +66,7 @@ Default region name [HCM-3]:
5666Default output format [json]:
5767```
5868
59- Credentials are obtained from the [ VNG Cloud IAM Portal] ( https://hcm-3.console.vngcloud.vn/iam/ ) under Service Accounts.
60-
61- Or create the credential files directly:
69+ ** Method 3: Credentials file (manual)**
6270
6371``` ini
6472# ~/.greenode/credentials
@@ -74,14 +82,18 @@ region = HCM-3
7482output = json
7583```
7684
85+ Credentials are obtained from the [ VNG Cloud IAM Portal] ( https://hcm-3.console.vngcloud.vn/iam/ ) under Service Accounts.
86+
87+ Credential resolution order: environment variables take priority over the credentials file.
88+
7789To use multiple profiles:
7890
7991``` bash
8092grn configure --profile staging
8193grn --profile staging vks list-clusters
8294```
8395
84- For more configuration options, see the [ Configuration Guide] ( https://vngcloud.github.io/greennode -cli/configuration/ ) .
96+ For more configuration options, see the [ Configuration Guide] ( https://vngcloud.github.io/greenode -cli/configuration/ ) .
8597
8698### Basic Commands
8799
@@ -120,7 +132,7 @@ The best way to interact with our team is through GitHub:
120132
121133## More Resources
122134
123- - [ Documentation] ( https://vngcloud.github.io/greennode -cli/ )
135+ - [ Documentation] ( https://vngcloud.github.io/greenode -cli/ )
124136- [ Changelog] ( CHANGELOG.md )
125137- [ Contributing Guide] ( CONTRIBUTING.md )
126138- [ VNG Cloud Console] ( https://hcm-3.console.vngcloud.vn/ )
0 commit comments