# Dfx command to list controllers

**URL:** <https://forum.dfinity.org/t/dfx-command-to-list-controllers/19774>\
**Category:** Developers\
**Created:** [May 4, 2023, 7:46pm UTC](https://forum.dfinity.org/t/dfx-command-to-list-controllers/19774 "2023-05-04T19:46:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [May 4, 2023, 7:46pm UTC](https://forum.dfinity.org/t/dfx-command-to-list-controllers/19774/1 "2023-05-04T19:46:28Z")

</div>

Is there a `dfx` command to list the controllers of a canister I created on the fly (not listed in my `dfx.json`) on my local replica?

I know its canister ID.

---

<div class="post-metadata">

**Author:** ![ielashi](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/ielashi/32/15704_2.png) [@ielashi](https://forum.dfinity.org/u/ielashi)\
**Post date:** [May 5, 2023, 4:52am UTC](https://forum.dfinity.org/t/dfx-command-to-list-controllers/19774/2 "2023-05-05T04:52:45Z")

</div>

Yes, if you’re one of the controllers you can do this:

A local canister:

```auto
dfx canister status <canister-id>

```

In production:

```auto
dfx canister --network=ic status <canister-id>

```

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [May 5, 2023, 6:29am UTC](https://forum.dfinity.org/t/dfx-command-to-list-controllers/19774/3 "2023-05-05T06:29:50Z")

</div>

Exactly what I was looking for and, found a bug in my PR thanks to it 😉.  
Thanks Islam!

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [May 5, 2023, 9:07am UTC](https://forum.dfinity.org/t/dfx-command-to-list-controllers/19774/4 "2023-05-05T09:07:25Z")

</div>

Worked out like a glove. That command helped me debug the new feature I developed in Juno, which now provides controllers with two levels of permissions: Admin (stop/start/upgrade) and Read-Write (data only) 🥳.

 ![Capture d’écran 2023-05-05 à 11.04.43](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/2X/f/f44b05d0f4bd4c535ea8a964fe2e3c4dbfa64a0f.jpeg)
