# railgrid agent upgrade

Upgrade the agent for an edge deployed via 'railgrid agent join'

Source: https://railgrid.ai/docs/reference/cli/commands/agent-upgrade/

<!-- Generated by scripts/sync-cli-docs.py from railgrid/railgrid docs/cli. Do not edit by hand; run `make sync-cli-docs`. -->

## Synopsis

Upgrade the railgrid agent for a Kubernetes edge that was deployed using
"railgrid agent join". This patches the agent Deployment in the railgrid-agent
namespace with the new image tag.

For agents installed via Helm, use "helm upgrade" instead.
For server-type agents, this restarts the systemd service after you update
the binary.

```bash
railgrid agent upgrade <edge-name> [flags]
```

## Options

```text
  -h, --help         help for upgrade
      --tag string   Image tag to upgrade to (default: CLI version)
      --wait         Wait for the rollout to complete (default true)
```

## Inherited options

```text
      --insecure-skip-tls-verify   Skip TLS certificate verification when talking to the hub
      --kubeconfig string          Path to the kubeconfig file (default: $KUBECONFIG, then ~/.kube/config)
```

## See also

- [railgrid agent](https://railgrid.ai/docs/reference/cli/commands/agent/) — Run, install or upgrade the edge agent on a cluster or server
