> ## Documentation Index
> Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Note About Cilium CLI

> Explains difference between the local Cilium CLI used for installation and cluster management and the in‑pod cilium/cilium-dbg tools used for in-cluster diagnostics and debugging

So before we proceed, a quick clarification about the Cilium command-line tools — this often causes confusion later when working with clusters.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/3_oH8WobznU4DXye/images/Prep-Course-Cilium-Certified-Associate-CCA-Certification/Installing-Configuring-Cilium/Note-About-Cilium-CLI/note-about-cilium-cli-slide.jpg?fit=max&auto=format&n=3_oH8WobznU4DXye&q=85&s=3058abadf6ece4f59d9e30bce1bc4c99" alt="A teal-to-blue gradient slide with a subtle diamond pattern and centered white text reading &#x22;A Note About Cilium CLI.&#x22; A small copyright notice for KodeKloud appears in the bottom-left." width="1920" height="1080" data-path="images/Prep-Course-Cilium-Certified-Associate-CCA-Certification/Installing-Configuring-Cilium/Note-About-Cilium-CLI/note-about-cilium-cli-slide.jpg" />
</Frame>

There are two separate command-line tools that share the name "cilium," but they serve different purposes and run in different environments:

* A local Cilium CLI binary you install on your workstation. It is used for installing Cilium on a cluster and for higher-level management and checks (for example, `cilium install` and `cilium status`).
* One or more Cilium binaries that run inside Cilium agent pod(s) in the cluster. These in-pod tools — commonly `cilium` and `cilium-dbg` — are focused on in-cluster diagnostics and advanced debugging.

<Callout icon="lightbulb" color="#1CB2FE">
  These are distinct tools even though they share the same command name. Use the local CLI for installation and cluster-level checks; use the in-pod binaries for deep debugging and diagnostics inside the cluster.
</Callout>

Comparison at a glance:

| Tool                           | Primary scope                                    | Typical location                       | Common examples                             |
| ------------------------------ | ------------------------------------------------ | -------------------------------------- | ------------------------------------------- |
| Local Cilium CLI               | Install, upgrade, and basic cluster-level checks | Your workstation / CI runner           | `cilium install`, `cilium status`           |
| In-pod `cilium` / `cilium-dbg` | Deep diagnostics, runtime troubleshooting        | Inside Cilium agent pods (kube-system) | `cilium status` (in-pod), `cilium-dbg help` |

Examples of common commands

Local machine (installer / management CLI)

```bash theme={null}
# Install Cilium onto the current kubeconfig cluster
cilium install

# Check cluster-level Cilium status from your workstation
cilium status
```

Inside a Cilium pod (advanced debug / diagnostic tools)

```bash theme={null}
# Run the in-pod 'cilium' binary for status or diagnostics
kubectl -n kube-system exec -it <cilium-pod> -- cilium status

# Use the dedicated debug binary inside the pod
kubectl -n kube-system exec -it <cilium-pod> -- cilium-dbg help
```

Key takeaway: treat the local CLI and the in-pod binaries as separate tools with different responsibilities. Use the local CLI primarily for installation and routine status checks, and drop into the pod (`cilium` or `cilium-dbg`) for low-level, in-cluster debugging.

Links and references

* [Cilium Documentation — CLI](https://docs.cilium.io/en/stable/gettingstarted/cli/)
* [kubectl exec reference](https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#exec)

<CardGroup>
  <Card title="Watch Video" icon="video" cta="Learn more" href="https://learn.kodekloud.com/user/courses/cilium-certified-associate-cca/module/2fded455-95ea-4183-8cce-f17de214691f/lesson/cc56f4b0-1780-44b2-8ead-8b4fbec08f5d" />
</CardGroup>
