# Command Line Tools

**URL:** https://forum.dfinity.org/c/developers/command-line/22.md?page=4

[Latest](https://forum.dfinity.org/latest.md) · [Categories](https://forum.dfinity.org/categories.md) · [Tags](https://forum.dfinity.org/tags.md)

**Page:** 5

---

## [When stopping or deleting canisters using \`dfx canister\`, why are we forced to run them inside a dfx configured project?](https://forum.dfinity.org/t/when-stopping-or-deleting-canisters-using-dfx-canister-why-are-we-forced-to-run-them-inside-a-dfx-configured-project/16858)

<div class="topic-metadata">

**Author:** [@saikatdas0790](https://forum.dfinity.org/u/saikatdas0790)\
**Replies:** 3\
**Last updated:** [November 25, 2022, 9:32am UTC](https://forum.dfinity.org/t/when-stopping-or-deleting-canisters-using-dfx-canister-why-are-we-forced-to-run-them-inside-a-dfx-configured-project/16858 "2022-11-25T09:32:36Z")

</div>

If I have a list of canisters created dynamically, why do I need to have a dfx project configured to be able to delete them. This is an additional manual overhead and restriction which makes no sense. If I am the contro…

---

## [Dfx 0.12.1 - importing createActor - dfx generate - do not import from .dfx when using React](https://forum.dfinity.org/t/dfx-0-12-1-importing-createactor-dfx-generate-do-not-import-from-dfx-when-using-react/16648)

<div class="topic-metadata">

**Author:** [@karim](https://forum.dfinity.org/u/karim)\
**Replies:** 4\
**Last updated:** [November 17, 2022, 6:40pm UTC](https://forum.dfinity.org/t/dfx-0-12-1-importing-createactor-dfx-generate-do-not-import-from-dfx-when-using-react/16648 "2022-11-17T18:40:23Z")

</div>

Sorry for the bad title. I’ll just go through it step by step: I just upgraded to dfx 0.12.1 and was using the following lines to make non-anonymous calls from my React frontend but this doesn’t work anymore since creat…

---

## [BUG: Since upgrading to dfx v0.12, running into "Failed to install wasm. The replica returned an HTTP Error: Http Error: status 413 Payload Too Large"](https://forum.dfinity.org/t/bug-since-upgrading-to-dfx-v0-12-running-into-failed-to-install-wasm-the-replica-returned-an-http-error-http-error-status-413-payload-too-large/16459)

<div class="topic-metadata">

**Author:** [@saikatdas0790](https://forum.dfinity.org/u/saikatdas0790)\
**Replies:** 19\
**Last updated:** [November 16, 2022, 4:31pm UTC](https://forum.dfinity.org/t/bug-since-upgrading-to-dfx-v0-12-running-into-failed-to-install-wasm-the-replica-returned-an-http-error-http-error-status-413-payload-too-large/16459 "2022-11-16T16:31:45Z")

</div>

Used to work fine till v0.11.2 Thoughts?

---

## [IC Query for maturity modulation](https://forum.dfinity.org/t/ic-query-for-maturity-modulation/16552)

<div class="topic-metadata">

**Author:** [@superduper](https://forum.dfinity.org/u/superduper)\
**Replies:** 1\
**Last updated:** [November 14, 2022, 9:13am UTC](https://forum.dfinity.org/t/ic-query-for-maturity-modulation/16552 "2022-11-14T09:13:33Z")

</div>

is there a way to query the IC to see the maturity modulation at present? or at a specific block that’s occurred? thanks

---

## [Finding out a canister's subnet](https://forum.dfinity.org/t/finding-out-a-canisters-subnet/16454)

<div class="topic-metadata">

**Author:** [@timo](https://forum.dfinity.org/u/timo)\
**Replies:** 6\
**Last updated:** [November 10, 2022, 5:22am UTC](https://forum.dfinity.org/t/finding-out-a-canisters-subnet/16454 "2022-11-10T05:22:07Z")

</div>

Given a canister id (principal), how can I find programatically the id of the subnet that hosts the canister? dfx canister info or dfx canister status do not display it. Is it possible to query any of the system canister…

---

## [Is it possible to override the \`build\` script for asset canister like it is possible for custom canister](https://forum.dfinity.org/t/is-it-possible-to-override-the-build-script-for-asset-canister-like-it-is-possible-for-custom-canister/16422)

<div class="topic-metadata">

**Author:** [@Litzi](https://forum.dfinity.org/u/Litzi)\
**Replies:** 4\
**Last updated:** [November 8, 2022, 5:12pm UTC](https://forum.dfinity.org/t/is-it-possible-to-override-the-build-script-for-asset-canister-like-it-is-possible-for-custom-canister/16422 "2022-11-08T17:12:40Z")

</div>

for custom canister we can provide a build parameter in dfx.json: { "canisters": { "my\_canister": { "type": "custom", "candid": "my\_canister.did", "wasm": "build/my\_canister.wasm", "build":…

---

## [List\_neurons: how to get list of (active, dissolving, dissolved) neurons belonging to principal id](https://forum.dfinity.org/t/list-neurons-how-to-get-list-of-active-dissolving-dissolved-neurons-belonging-to-principal-id/4402)

<div class="topic-metadata">

**Author:** [@superduper](https://forum.dfinity.org/u/superduper)\
**Replies:** 2\
**Last updated:** [October 29, 2022, 3:03pm UTC](https://forum.dfinity.org/t/list-neurons-how-to-get-list-of-active-dissolving-dissolved-neurons-belonging-to-principal-id/4402 "2022-10-29T15:03:05Z")

</div>

I’m not super proficient at bash and everything i’ve tried has failed. has anyone had success with this?

---

## [New place for dfx feature requests](https://forum.dfinity.org/t/new-place-for-dfx-feature-requests/16319)

<div class="topic-metadata">

**Author:** [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Replies:** 0\
**Last updated:** [November 2, 2022, 1:48pm UTC](https://forum.dfinity.org/t/new-place-for-dfx-feature-requests/16319 "2022-11-02T13:48:09Z")

</div>

Hello everyone! Short version: We now collect dfx feature requests over at sdk/discussions Please upvote features that are important to you We can use the upvotes to prioritise features It’s also ok to request featur…

---

## [How to build a canister without provisioning a canister ID for it?](https://forum.dfinity.org/t/how-to-build-a-canister-without-provisioning-a-canister-id-for-it/15383)

<div class="topic-metadata">

**Author:** [@saikatdas0790](https://forum.dfinity.org/u/saikatdas0790)\
**Replies:** 18\
**Last updated:** [November 2, 2022, 7:11am UTC](https://forum.dfinity.org/t/how-to-build-a-canister-without-provisioning-a-canister-id-for-it/15383 "2022-11-02T07:11:37Z")

</div>

I have Rust code that dynamically creates canister by importing the wasm as a byte array and then creating canisters on demand. The import and creation code looks like this const WASM: &\[u8\] = include\_bytes!( "../..…

---

## [TypeError / Canister not found](https://forum.dfinity.org/t/typeerror-canister-not-found/588)

<div class="topic-metadata">

**Author:** [@cryptoschindler](https://forum.dfinity.org/u/cryptoschindler)\
**Replies:** 1\
**Last updated:** [October 7, 2022, 12:43pm UTC](https://forum.dfinity.org/t/typeerror-canister-not-found/588 "2022-10-07T12:43:03Z")

</div>

After upgrading to 0.5.5 from 0.5.4 I got this error when trying to access the canister frontend from a project I created with the former version and wanted to update. I already deleted .dfx/state in the project direcotr…

---

## [Getting the same account id with dfx and with rust](https://forum.dfinity.org/t/getting-the-same-account-id-with-dfx-and-with-rust/15438)

<div class="topic-metadata">

**Author:** [@LiveDuo](https://forum.dfinity.org/u/LiveDuo)\
**Replies:** 3\
**Last updated:** [September 15, 2022, 9:10pm UTC](https://forum.dfinity.org/t/getting-the-same-account-id-with-dfx-and-with-rust/15438 "2022-09-15T21:10:25Z")

</div>

I’m trying to get the account id of a user and getting different things with rust and dfx. The use case is to get the user’s subaccount of canister to transfer ICP. But I’m getting different account ids and I’m not sur…

---

## [Enable Candid UI to be provided with a identity secret so that it can be used the same way \`dfx canister call\` is used](https://forum.dfinity.org/t/enable-candid-ui-to-be-provided-with-a-identity-secret-so-that-it-can-be-used-the-same-way-dfx-canister-call-is-used/15396)

<div class="topic-metadata">

**Author:** [@saikatdas0790](https://forum.dfinity.org/u/saikatdas0790)\
**Replies:** 5\
**Last updated:** [September 15, 2022, 4:47am UTC](https://forum.dfinity.org/t/enable-candid-ui-to-be-provided-with-a-identity-secret-so-that-it-can-be-used-the-same-way-dfx-canister-call-is-used/15396 "2022-09-15T04:47:34Z")

</div>

The Candid UI is a fantastic tool when you want to quickly test your backend APIs from the browser. The compelling reason to choose it over using dfx canister call is because it lets you pass in arguments to your functio…

---

## [Dfx 0.10.0 - dfx canister deposit-cycles returns error](https://forum.dfinity.org/t/dfx-0-10-0-dfx-canister-deposit-cycles-returns-error/13251)

<div class="topic-metadata">

**Author:** [@Nakamotik](https://forum.dfinity.org/u/Nakamotik)\
**Replies:** 10\
**Last updated:** [September 13, 2022, 6:06am UTC](https://forum.dfinity.org/t/dfx-0-10-0-dfx-canister-deposit-cycles-returns-error/13251 "2022-09-13T06:06:51Z")

</div>

When I call dfx canister --network ic deposit-cycles 100000000000 main it returns Error: The deposit cycles call needs to proxied via the wallet canister. Invoke this command without the \`--no-wallet\` flag.

---

## [Dfx call serialize principal](https://forum.dfinity.org/t/dfx-call-serialize-principal/15347)

<div class="topic-metadata">

**Author:** [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Replies:** 2\
**Last updated:** [September 9, 2022, 11:23am UTC](https://forum.dfinity.org/t/dfx-call-serialize-principal/15347 "2022-09-09T11:23:21Z")

</div>

How do you provide a Principal to dfx for a call? e.g. dfx canister call rrkah-fqaaa-aaaaa-aaaaq-cai knownBucket '("qaa6y-5yaaa-aaaaa-aaafa-cai")' for given Motoko function: public shared func knownBucket(bucketId: P…

---

## [How to pass install arguments from dfx?](https://forum.dfinity.org/t/how-to-pass-install-arguments-from-dfx/12977)

<div class="topic-metadata">

**Author:** [@GLdev](https://forum.dfinity.org/u/GLdev)\
**Replies:** 13\
**Last updated:** [September 7, 2022, 7:33pm UTC](https://forum.dfinity.org/t/how-to-pass-install-arguments-from-dfx/12977 "2022-09-07T19:33:49Z")

</div>

I’m trying to pass some arguments when installing / upgrading a canister from dfx and I can’t seem to figure it out. In the rust canister I have this code: #\[derive(CandidType, Deserialize, Debug, Default)\] struct Send…

---

## [Issues with deployment with dfx replica returns not found](https://forum.dfinity.org/t/issues-with-deployment-with-dfx-replica-returns-not-found/12753)

<div class="topic-metadata">

**Author:** [@alejandrade](https://forum.dfinity.org/u/alejandrade)\
**Replies:** 10\
**Last updated:** [August 30, 2022, 2:52pm UTC](https://forum.dfinity.org/t/issues-with-deployment-with-dfx-replica-returns-not-found/12753 "2022-08-30T14:52:22Z")

</div>

using dfx 0.9.3 I’m not sure how to debug this or what I can do. I’m running the following command to deploy dfx deploy --network ic --with-cycles 1000000000000 --wallet itkk3-mb5lj-jqgt2-3y6fb-sv7rp-aoqhq-efyr7-edb4m…

---

## [Motoko heartbeat is not working on windows](https://forum.dfinity.org/t/motoko-heartbeat-is-not-working-on-windows/14809)

<div class="topic-metadata">

**Author:** [@Nakamotik](https://forum.dfinity.org/u/Nakamotik)\
**Replies:** 2\
**Last updated:** [August 11, 2022, 9:12am UTC](https://forum.dfinity.org/t/motoko-heartbeat-is-not-working-on-windows/14809 "2022-08-11T09:12:00Z")

</div>

I’m trying to run motoko heartbeat code locally but it is never called. Same code working well on Motoko Playground. dfx 0.11.1 dfx start --emulator --clean

---

## [\[BUG\] Stable interface compatibility check failed for canister](https://forum.dfinity.org/t/bug-stable-interface-compatibility-check-failed-for-canister/11392)

<div class="topic-metadata">

**Author:** [@cryptoschindler](https://forum.dfinity.org/u/cryptoschindler)\
**Replies:** 4\
**Last updated:** [July 25, 2022, 1:05pm UTC](https://forum.dfinity.org/t/bug-stable-interface-compatibility-check-failed-for-canister/11392 "2022-07-25T13:05:20Z")

</div>

I’m using dfx 0.9.2 to deploy a canister to the local network twice without modifying it and get the following error: Stable interface compatibility check failed for canister 'dao'. Upgrade will either FAIL or LOSE some…

---

## [\[BUG\] dfx deploy](https://forum.dfinity.org/t/bug-dfx-deploy/13644)

<div class="topic-metadata">

**Author:** [@cryptoschindler](https://forum.dfinity.org/u/cryptoschindler)\
**Replies:** 2\
**Last updated:** [June 10, 2022, 7:42am UTC](https://forum.dfinity.org/t/bug-dfx-deploy/13644 "2022-06-10T07:42:54Z")

</div>

I have a project with a canister that expects arguments and another canister that is just a simple asset canister. When I’m trying to deploy only the the asset canister with the following command dfx deploy --network ic…

---

## [How to run a shell script deployed to mainnet?](https://forum.dfinity.org/t/how-to-run-a-shell-script-deployed-to-mainnet/13576)

<div class="topic-metadata">

**Author:** [@manubodhi](https://forum.dfinity.org/u/manubodhi)\
**Replies:** 5\
**Last updated:** [June 8, 2022, 8:16am UTC](https://forum.dfinity.org/t/how-to-run-a-shell-script-deployed-to-mainnet/13576 "2022-06-08T08:16:22Z")

</div>

I am having a .sh file under my root directory, I normally run this shell script to run the dfx call commands for loading my essential data types and test data into the backend using the below command ./service/preload/…

---

## [Dfx deploy –network ic ➡️Canister x trapped: unreachable](https://forum.dfinity.org/t/dfx-deploy-network-ic-canister-x-trapped-unreachable/13511)

<div class="topic-metadata">

**Author:** [@DaveyEbb](https://forum.dfinity.org/u/DaveyEbb)\
**Replies:** 1\
**Last updated:** [June 5, 2022, 9:01pm UTC](https://forum.dfinity.org/t/dfx-deploy-network-ic-canister-x-trapped-unreachable/13511 "2022-06-05T21:01:59Z")

</div>

I successfully deployed to the ic a couple of weeks ago and am now trying to deploy again with updated backend (Rust) and front-end (vue.js) code. I have tried variations of the command line call including: dfx deploy …

---

## [How to downgrade dfx](https://forum.dfinity.org/t/how-to-downgrade-dfx/13195)

<div class="topic-metadata">

**Author:** [@ildefons](https://forum.dfinity.org/u/ildefons)\
**Replies:** 3\
**Last updated:** [May 22, 2022, 11:28am UTC](https://forum.dfinity.org/t/how-to-downgrade-dfx/13195 "2022-05-22T11:28:02Z")

</div>

I am trying to run/understand some motoko examples. I installed dfx version 0.10.0 but the examples require dfx version 0.9.3. How can I downgrade dfx?

---

## [Cannot upgrade dfx to 0.10.0: unable to gunzip file](https://forum.dfinity.org/t/cannot-upgrade-dfx-to-0-10-0-unable-to-gunzip-file/13069)

<div class="topic-metadata">

**Author:** [@mymikemiller](https://forum.dfinity.org/u/mymikemiller)\
**Replies:** 1\
**Last updated:** [May 18, 2022, 7:54am UTC](https://forum.dfinity.org/t/cannot-upgrade-dfx-to-0-10-0-unable-to-gunzip-file/13069 "2022-05-18T07:54:32Z")

</div>

I’m trying to upgrade dfx from 0.9.3 to 0.10.0, and I’m getting the following error: \> dfx upgrade Current version: 0.9.3 Fetching manifest https://sdk.dfinity.org/manifest.json New version available: 0.10.0 Error: Inva…

---

## [Run dfx wallet --network ic balance prompt no Wasm module](https://forum.dfinity.org/t/run-dfx-wallet-network-ic-balance-prompt-no-wasm-module/7333)

<div class="topic-metadata">

**Author:** [@HelloRickey](https://forum.dfinity.org/u/HelloRickey)\
**Replies:** 4\
**Last updated:** [February 20, 2022, 8:43pm UTC](https://forum.dfinity.org/t/run-dfx-wallet-network-ic-balance-prompt-no-wasm-module/7333 "2022-02-20T20:43:17Z")

</div>

Hi guys, I am trying to deploy canister, I use the following steps I created a canister using Internet Computer Content Validation Bootstrap and recharged cycle. Run the dfx identity get-principal command, then I added…

---

## [Dfx deploy to IC error when creating canister](https://forum.dfinity.org/t/dfx-deploy-to-ic-error-when-creating-canister/12269)

<div class="topic-metadata">

**Author:** [@DaveyEbb](https://forum.dfinity.org/u/DaveyEbb)\
**Replies:** 11\
**Last updated:** [April 29, 2022, 3:37pm UTC](https://forum.dfinity.org/t/dfx-deploy-to-ic-error-when-creating-canister/12269 "2022-04-29T15:37:54Z")

</div>

Our dapp works fine locally but shows the following error when deploying to IC. (I have followed the steps outlined in Hamish Peebles’ recent hackathon presentation to assign some ICP for transaction fees and create the …

---

## [External contributions to the SDK are blocked by private dependencies](https://forum.dfinity.org/t/external-contributions-to-the-sdk-are-blocked-by-private-dependencies/11784)

<div class="topic-metadata">

**Author:** [@paulyoung](https://forum.dfinity.org/u/paulyoung)\
**Replies:** 17\
**Last updated:** [April 21, 2022, 2:04pm UTC](https://forum.dfinity.org/t/external-contributions-to-the-sdk-are-blocked-by-private-dependencies/11784 "2022-04-21T14:04:50Z")

</div>

The dfinity/sdk repo depends on a private dfinity-lab/common repo. This means that anyone without access to that repo who would like to contribute to the SDK immediately runs into the issue below when following the cont…

---

## [DFX CLI, just a question, why is "dfx build" not "dfx canister build"](https://forum.dfinity.org/t/dfx-cli-just-a-question-why-is-dfx-build-not-dfx-canister-build/2001)

<div class="topic-metadata">

**Author:** [@levifeldman](https://forum.dfinity.org/u/levifeldman)\
**Replies:** 5\
**Last updated:** [April 19, 2022, 1:43am UTC](https://forum.dfinity.org/t/dfx-cli-just-a-question-why-is-dfx-build-not-dfx-canister-build/2001 "2022-04-19T01:43:09Z")

</div>

i think about it every time, shouldnt the build command be under dfx canister? just like dfx canister install and dfx canister create? wondering why for the placement-choice?

---

## [Persistent "Stable interface compatibility check failed" error](https://forum.dfinity.org/t/persistent-stable-interface-compatibility-check-failed-error/11281)

<div class="topic-metadata">

**Author:** [@mymikemiller](https://forum.dfinity.org/u/mymikemiller)\
**Replies:** 23\
**Last updated:** [March 9, 2022, 11:18pm UTC](https://forum.dfinity.org/t/persistent-stable-interface-compatibility-check-failed-error/11281 "2022-03-09T23:18:14Z")

</div>

If I have a canister that contains a stable Trie, I get the following message every time I try to deploy, even if I’ve made no changes since the last time I deployed: WARNING! Stable interface compatibility check failed…

---

## [DFX deploy with custom Motoko version](https://forum.dfinity.org/t/dfx-deploy-with-custom-motoko-version/7665)

<div class="topic-metadata">

**Author:** [@quint](https://forum.dfinity.org/u/quint)\
**Replies:** 6\
**Last updated:** [March 8, 2022, 9:24am UTC](https://forum.dfinity.org/t/dfx-deploy-with-custom-motoko-version/7665 "2022-03-08T09:24:16Z")

</div>

Is there an easy way to let dfx use $(vessel bin)/moc instead of $(dfx cache show)/moc to build motoko canisters?

---

## [Dfx uninformative error "No such file or directory (os error 2)"](https://forum.dfinity.org/t/dfx-uninformative-error-no-such-file-or-directory-os-error-2/10904)

<div class="topic-metadata">

**Author:** [@Nakamotik](https://forum.dfinity.org/u/Nakamotik)\
**Replies:** 1\
**Last updated:** [March 8, 2022, 1:00am UTC](https://forum.dfinity.org/t/dfx-uninformative-error-no-such-file-or-directory-os-error-2/10904 "2022-03-08T01:00:18Z")

</div>

For assets canister, when source key in dfx.json is not a valid path, it shows an error: The post-build step failed for canister 'ai7t5-aibaq-aaaaa-aaaaa-c' with an embedded error: No such file or directory (os error 2) …

[Previous page](https://forum.dfinity.org/c/developers/command-line/22.md?page=3)

[Next page](https://forum.dfinity.org/c/developers/command-line/22.md?page=5)
