Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Project overview

GreenNode CLI (`grn`) is a unified command-line tool for managing GreenNode (VNG Cloud) services. Written in Go, distributed as a single binary. VKS (VNG Kubernetes Service) is the first service; other product teams add their own services.
GreenNode CLI (`grn`) is a unified command-line tool for managing GreenNode services. Written in Go, distributed as a single binary. VKS (GreenNode Kubernetes Service) is the first service; other product teams add their own services.

- **Repo**: `vngcloud/greennode-cli`
- **Docs**: https://vngcloud.github.io/greennode-cli/
Expand Down Expand Up @@ -78,7 +78,7 @@ go/
- Commands in `cmd/` following cobra patterns
- Use `cobra.Command` with `RunE` for error handling

## VNG Cloud API quirks
## GreenNode API quirks

- **IAM API uses camelCase**: `grantType`, `accessToken`, `expiresIn`
- **VKS API pagination is 0-based**: page 0 = first page
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ output = json
project_id = pro-xxxxxxxx
```

Credentials are obtained from the [VNG Cloud IAM Portal](https://hcm-3.console.vngcloud.vn/iam/) under Service Accounts.
Credentials are obtained from the [GreenNode IAM Portal](https://hcm-3.console.vngcloud.vn/iam/) under Service Accounts.

Credential resolution order: environment variables take priority over the credentials file.

Expand Down Expand Up @@ -194,7 +194,7 @@ The best way to interact with our team is through GitHub:
- [Documentation](https://vngcloud.github.io/greenode-cli/)
- [Changelog](CHANGELOG.md)
- [Contributing Guide](CONTRIBUTING.md)
- [VNG Cloud Console](https://hcm-3.console.vngcloud.vn/)
- [GreenNode Console](https://hcm-3.console.vngcloud.vn/)

## License

Expand Down
2 changes: 1 addition & 1 deletion docs/commands/vks/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# VKS Commands

VKS (VNG Kubernetes Service) commands for managing Kubernetes clusters and node groups.
VKS (GreenNode Kubernetes Service) commands for managing Kubernetes clusters and node groups.

```bash
grn vks <command> [options]
Expand Down
6 changes: 3 additions & 3 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Fetching project_id from HCM-3...
Auto-detected project_id: pro-xxxxxxxx
```

`Project ID` is the VNG Cloud project UUID for the selected region (e.g.
`Project ID` is the GreenNode project UUID for the selected region (e.g.
`pro-e28d4501-...`). Leave blank and the wizard calls the vServer API with
your credentials to detect and save it. Each user has one project per region,
so the detection is unambiguous.
Expand All @@ -27,7 +27,7 @@ If auto-detect fails (network or auth error), the wizard prints a warning and
leaves the field blank — downstream tools (such as the GreenNode MCP Server)
can still auto-detect at first call.

Credentials are obtained from the [VNG Cloud IAM Portal](https://hcm-3.console.vngcloud.vn/iam/) under Service Accounts.
Credentials are obtained from the [GreenNode IAM Portal](https://hcm-3.console.vngcloud.vn/iam/) under Service Accounts.

## Credential resolution order

Expand All @@ -43,7 +43,7 @@ Credentials are resolved in the following order (highest to lowest priority):
| `GRN_ACCESS_KEY_ID` | Client ID (overrides credentials file) |
| `GRN_SECRET_ACCESS_KEY` | Client Secret (overrides credentials file) |
| `GRN_DEFAULT_REGION` | Default region |
| `GRN_DEFAULT_PROJECT_ID` | Project ID (VNG Cloud project UUID) |
| `GRN_DEFAULT_PROJECT_ID` | Project ID (GreenNode project UUID) |
| `GRN_PROFILE` | Profile name (default: "default") |
| `GRN_DEFAULT_OUTPUT` | Output format |

Expand Down
4 changes: 2 additions & 2 deletions go/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ var (

var rootCmd = &cobra.Command{
Use: "grn",
Short: "GreenNode CLI - unified command-line tool for GreenNode (VNG Cloud) services",
Short: "GreenNode CLI - unified command-line tool for GreenNode services",
Version: fmt.Sprintf("%s Go/%s %s/%s", cliVersion, runtime.Version()[2:], runtime.GOOS, runtime.GOARCH),
// Print a single clean "Error: ..." line on failure (done in Execute) rather
// than cobra's error plus a full usage dump.
SilenceErrors: true,
SilenceUsage: true,
Long: `GreenNode CLI (grn) is a unified command-line tool for managing
GreenNode (VNG Cloud) services including VKS (VNG Kubernetes Service).
GreenNode services including VKS (GreenNode Kubernetes Service).

To get started, run:
grn configure
Expand Down
2 changes: 1 addition & 1 deletion go/cmd/vks/vks.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
// VksCmd is the parent command for all VKS subcommands.
var VksCmd = &cobra.Command{
Use: "vks",
Short: "VNG Kubernetes Service (VKS) commands",
Short: "GreenNode Kubernetes Service (VKS) commands",
Long: "Manage VKS clusters, node groups, and related resources.",
// Reject unknown subcommands (nested groups don't error by default in cobra).
Args: cobra.NoArgs,
Expand Down
Loading