# Dfx tools canister call

**URL:** <https://forum.dfinity.org/t/dfx-tools-canister-call/5331>\
**Category:** Developers\
**Tags:** Functional-Programming\
**Created:** [June 18, 2021, 1:49pm UTC](https://forum.dfinity.org/t/dfx-tools-canister-call/5331 "2021-06-18T13:49:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SvyatobatkoVlad](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/svyatobatkovlad/32/1988_2.png) [@SvyatobatkoVlad](https://forum.dfinity.org/u/SvyatobatkoVlad)\
**Post date:** [June 18, 2021, 1:49pm UTC](https://forum.dfinity.org/t/dfx-tools-canister-call/5331/1 "2021-06-18T13:49:50Z")

</div>

“dfx canister --network ic call” can only be called from root folder?

---

<div class="post-metadata">

**Author:** ![matthewhammer](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/matthewhammer/32/323_2.png) [@matthewhammer](https://forum.dfinity.org/u/matthewhammer)\
**Post date:** [June 18, 2021, 2:42pm UTC](https://forum.dfinity.org/t/dfx-tools-canister-call/5331/2 "2021-06-18T14:42:43Z")

</div>

I believe so.

BTW: For doing `call` on your canisters, in place of using `dfx`, I’d recommend trying another tool `ic-repl`:

> **[Releases · chenyan2002/ic-repl](https://github.com/chenyan2002/ic-repl/releases)**
>
> Contribute to chenyan2002/ic-repl development by creating an account on GitHub.

The benefit of that tool over `dfx` is that it has a REPL-like function that can remember the canisters that you want to work with, dynamically get their latest Candid spec, and do tab-based autocompletion for calling them. It can also script those calls. If you know the ID of any canister, it will let you call it (as well as know how to call it, assuming it was compiled via Motoko, or implements the feature that provides the Candid API on demand).

---

<div class="post-metadata">

**Author:** ![SvyatobatkoVlad](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/svyatobatkovlad/32/1988_2.png) [@SvyatobatkoVlad](https://forum.dfinity.org/u/SvyatobatkoVlad)\
**Post date:** [June 18, 2021, 3:00pm UTC](https://forum.dfinity.org/t/dfx-tools-canister-call/5331/4 "2021-06-18T15:00:48Z")

</div>

Could you read here and fully understand my situation please

> [@How to call canister another backend](https://forum.dfinity.org/t/how-to-call-canister-another-backend/5325):
>
> I have a website with its own front-end and back-end! But I would like to add Dfinity technology to my project. I want to write logic on a canister and call these methods from my back-end using command (dfx canister --network ic call \<canister\_id\> method value) I know what I need for this dfx.json Can I use the canister like that? What should be for this in dfx.json? Below is an example of how I on the backend (Golang) make a request to a drive that is created locally.
