Skip to content

Agent Mesh

node: join takes the control plane URL as a required argument

Tomas Tormo2c44e1e754cd
diff --git a/cmd/agentmesh-node/main.go b/cmd/agentmesh-node/main.go
index 1867847b..798f1afb 100644
--- a/cmd/agentmesh-node/main.go
+++ b/cmd/agentmesh-node/main.go
@@ -667,7 +667,7 @@ func main() {
}
joinCmd := &cobra.Command{
- Use: "join [control_plane_url]",
+ Use: "join <control-plane-url>",
Short: "Join the Agent Mesh",
Args: cobra.MaximumNArgs(1),
Run: func(cmd *cobra.Command, args []string) {
diff --git a/site/content/docs/reference/agentmesh-node.md b/site/content/docs/reference/agentmesh-node.md
index 300ecac1..af39285a 100644
--- a/site/content/docs/reference/agentmesh-node.md
+++ b/site/content/docs/reference/agentmesh-node.md
@@ -9,7 +9,7 @@ weight: 1
`agentmesh-node` is the mesh member that runs beside an agent or a service.
```text
-agentmesh-node join [control-plane-url] [flags] enroll and store a credential
+agentmesh-node join <control-plane-url> [flags] enroll and store a credential
agentmesh-node run [flags] run the node
agentmesh-node forward egress://<name>:<port> [local-addr] forward a local TCP port to a named egress tunnel
agentmesh-node debug <command> diagnose a running node over its Unix socket
@@ -42,7 +42,7 @@ Accepted by every subcommand.
| Flag | Default | Meaning |
|---|---|---|
-| `--control-plane` | stored value | Control plane URL. `join` takes it as a positional argument. `https://` is required unless the host is loopback. |
+| `--control-plane` | stored value | Control plane URL. `join` enrolls with the URL given as its argument, not with this flag. `https://` is required unless the host is loopback. |
| `--insecure-control-plane` | `false` | Accept a plaintext `http://` URL to a non-loopback host. Whoever answers that URL becomes the node's trust root. Intended for networks that are already trusted, such as a cluster. |
| `--config` | `agentmesh-node.yaml` | Node configuration file. |
| `--data-dir` | see above | Data directory. |