# Prepare-canisters calling local network

**URL:** <https://forum.dfinity.org/t/prepare-canisters-calling-local-network/28140>\
**Category:** Developers\
**Tags:** sns\
**Created:** [March 5, 2024, 5:26pm UTC](https://forum.dfinity.org/t/prepare-canisters-calling-local-network/28140 "2024-03-05T17:26:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesbeadle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jamesbeadle/32/10110_2.png) [@jamesbeadle](https://forum.dfinity.org/u/jamesbeadle)\
**Post date:** [March 5, 2024, 5:26pm UTC](https://forum.dfinity.org/t/prepare-canisters-calling-local-network/28140/1 "2024-03-05T17:26:10Z")

</div>

When I run:

dfx sns prepare-canisters add-nns-root bboqb-jiaaa-aaaal-qb6ea-cai

I get the following error, like it’s trying to deploy to my local network but the command line doesn’t accept a network flag:

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/c/7/c7148969565b738b1a4727c9f4196eb24cbea7cb.png)

---

<div class="post-metadata">

**Author:** ![tensor](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@tensor](https://forum.dfinity.org/u/tensor)\
**Post date:** [March 6, 2024, 10:37am UTC](https://forum.dfinity.org/t/prepare-canisters-calling-local-network/28140/2 "2024-03-06T10:37:49Z")

</div>

> [@jamesbeadle](#):
>
> I get the following error, like it’s trying to deploy to my local network but the command line doesn’t accept a network flag:

Please check your identity. use the same identity with which you deploy the canister

```auto
dfx use <identity>

```

check this also

```auto
dfx canister status <canister id>

```

or use this command

```auto
dfx canister --network local update-settings --add-controller r7inp-6aaaa-aaaaa-aaabq-cai <canister-id>

```

---

<div class="post-metadata">

**Author:** ![jamesbeadle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jamesbeadle/32/10110_2.png) [@jamesbeadle](https://forum.dfinity.org/u/jamesbeadle)\
**Post date:** [March 6, 2024, 5:38pm UTC](https://forum.dfinity.org/t/prepare-canisters-calling-local-network/28140/3 "2024-03-06T17:38:53Z")

</div>

Hey,

Thanks for getting back to me, yeah I was able to manually add the controller with the dfx canister command I was more wanting to run sns prepare-canisters so I could be sure that sns propose-sns would work.

I tried with both users I have on my system and I get the same error:

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/9/0/907d465dde84bc6fe9da234634475e1bfafecae6.png)

Any help appreciated.
