# Command Line Tools

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

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

**Page:** 6

---

## [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) …

---

## [Wallet upgrade not possible](https://forum.dfinity.org/t/wallet-upgrade-not-possible/11113)

<div class="topic-metadata">

**Author:** [@cryptoschindler](https://forum.dfinity.org/u/cryptoschindler)\
**Replies:** 14\
**Last updated:** [February 28, 2022, 5:29pm UTC](https://forum.dfinity.org/t/wallet-upgrade-not-possible/11113 "2022-02-28T17:29:57Z")

</div>

i’m currently trying to upgrade my wallet, but it fails with the following error: ❯ dfx wallet --network ic upgrade The replica returned an HTTP Error: Http Error: status 403 Forbidden, content type "", content: Request…

---

## [Canister type "custom" getting Permission Denied error](https://forum.dfinity.org/t/canister-type-custom-getting-permission-denied-error/11156)

<div class="topic-metadata">

**Author:** [@Fulco](https://forum.dfinity.org/u/Fulco)\
**Replies:** 2\
**Last updated:** [February 27, 2022, 9:28am UTC](https://forum.dfinity.org/t/canister-type-custom-getting-permission-denied-error/11156 "2022-02-27T09:28:22Z")

</div>

I’m trying to build a general canister that people can use to embed their frontend into the canister binary instead of using the asset canister. I’m trying to copy the same mechanism as in the nns dapp nns-dapp/dfx.j…

---

## [The replica returned an HTTP Error: Http Error: status 400 Bad Request, content type "text/plain; charset=utf-8", content: Failed to connect to host: Connection refused (os error 111)](https://forum.dfinity.org/t/the-replica-returned-an-http-error-http-error-status-400-bad-request-content-type-text-plain-charset-utf-8-content-failed-to-connect-to-host-connection-refused-os-error-111/10964)

<div class="topic-metadata">

**Author:** [@free\_will5](https://forum.dfinity.org/u/free_will5)\
**Replies:** 4\
**Last updated:** [February 19, 2022, 1:06pm UTC](https://forum.dfinity.org/t/the-replica-returned-an-http-error-http-error-status-400-bad-request-content-type-text-plain-charset-utf-8-content-failed-to-connect-to-host-connection-refused-os-error-111/10964 "2022-02-19T13:06:37Z")

</div>

I’ve tried deploying and keeps failing with this error message on windows. any help would be appreciate. Everything seems good but for deploying.

---

## [How to upgrade dfx to version other than latest via the CLI](https://forum.dfinity.org/t/how-to-upgrade-dfx-to-version-other-than-latest-via-the-cli/10719)

<div class="topic-metadata">

**Author:** [@icme](https://forum.dfinity.org/u/icme)\
**Replies:** 2\
**Last updated:** [February 5, 2022, 11:34pm UTC](https://forum.dfinity.org/t/how-to-upgrade-dfx-to-version-other-than-latest-via-the-cli/10719 "2022-02-05T23:34:54Z")

</div>

I would love to use the latest 0.9.0 release of dfx, but am currently unable to do so via the cli. \>% dfx upgrade Current version: 0.8.4 Fetching manifest https://sdk.dfinity.org/manifest.json Already up to date This m…

---

## [Dfx 0.9.0 gets stuck when trying to deploy canister with wrong identity](https://forum.dfinity.org/t/dfx-0-9-0-gets-stuck-when-trying-to-deploy-canister-with-wrong-identity/10623)

<div class="topic-metadata">

**Author:** [@Nakamotik](https://forum.dfinity.org/u/Nakamotik)\
**Replies:** 1\
**Last updated:** [February 1, 2022, 5:01pm UTC](https://forum.dfinity.org/t/dfx-0-9-0-gets-stuck-when-trying-to-deploy-canister-with-wrong-identity/10623 "2022-02-01T17:01:01Z")

</div>

When I run dfx deploy --network ic with selected identity that doesn’t have permissions to deploy that canister it gets stuck in step Starting batch. with no errors.

---

## [Upgrading derivative canisters](https://forum.dfinity.org/t/upgrading-derivative-canisters/5189)

<div class="topic-metadata">

**Author:** [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Replies:** 6\
**Last updated:** [January 22, 2022, 3:29am UTC](https://forum.dfinity.org/t/upgrading-derivative-canisters/5189 "2022-01-22T03:29:00Z")

</div>

If my canister spawns a new canister by instantiating an actor class, how do I upgrade that derivative canister? It won’t necessarily be in my dfx configs. It will be out there on the network somewhere and I guess I can…

---

## [DFX Latest Version](https://forum.dfinity.org/t/dfx-latest-version/10313)

<div class="topic-metadata">

**Author:** [@Motokoder](https://forum.dfinity.org/u/Motokoder)\
**Replies:** 8\
**Last updated:** [January 18, 2022, 7:19pm UTC](https://forum.dfinity.org/t/dfx-latest-version/10313 "2022-01-18T19:19:50Z")

</div>

I see that dfx 0.8.6 has been released and it is listed in the manifest, but 0.8.4 is still tagged as the latest. Is this an error, or does it mean that 0.8.6 is unstable? Thank you.

---

## [\[dfx\] How to call a canister as the identity's wallet canister Principal](https://forum.dfinity.org/t/dfx-how-to-call-a-canister-as-the-identitys-wallet-canister-principal/2174)

<div class="topic-metadata">

**Author:** [@dpdp](https://forum.dfinity.org/u/dpdp)\
**Replies:** 6\
**Last updated:** [December 22, 2021, 2:21am UTC](https://forum.dfinity.org/t/dfx-how-to-call-a-canister-as-the-identitys-wallet-canister-principal/2174 "2021-12-22T02:21:42Z")

</div>

Hello When creating and deploying a canister; the deployer is the wallet’s canister of the default identity. But when I do dfx --identity id\_alice canister call icpTopuper setCanisters "(vec { principal \\"$(dfx canist…

---

## [Introducing SLY -- An Alternative CLI Tool to DFX for Canister Development and Management](https://forum.dfinity.org/t/introducing-sly-an-alternative-cli-tool-to-dfx-for-canister-development-and-management/9725)

<div class="topic-metadata">

**Author:** [@Sherlocked](https://forum.dfinity.org/u/Sherlocked)\
**Replies:** 1\
**Last updated:** [December 17, 2021, 8:41am UTC](https://forum.dfinity.org/t/introducing-sly-an-alternative-cli-tool-to-dfx-for-canister-development-and-management/9725 "2021-12-17T08:41:05Z")

</div>

Hey all, today Psychedelic is announcing SLY, an open source, friendly, and collaborative CLI tool for the IC. SLY aims to be a streamlined and easy to use version of DFINITY’s DFX CLI. We’ve also got plans to bring tem…

---

## [Calling Functions with Custom Type Parameters](https://forum.dfinity.org/t/calling-functions-with-custom-type-parameters/9296)

<div class="topic-metadata">

**Author:** [@dev111](https://forum.dfinity.org/u/dev111)\
**Replies:** 2\
**Last updated:** [December 4, 2021, 8:02pm UTC](https://forum.dfinity.org/t/calling-functions-with-custom-type-parameters/9296 "2021-12-04T20:02:18Z")

</div>

Is it possible to call functions with custom types with dfx? A function with the parameters: testFunction(principal\_id: Principal) Would be called with the following: dfx canister call testCanister testFunction ‘(pri…

---

## [Dfx new generate a configuration that use webpack-dev-server version 3](https://forum.dfinity.org/t/dfx-new-generate-a-configuration-that-use-webpack-dev-server-version-3/8152)

<div class="topic-metadata">

**Author:** [@rbolog](https://forum.dfinity.org/u/rbolog)\
**Replies:** 0\
**Last updated:** [October 26, 2021, 9:28am UTC](https://forum.dfinity.org/t/dfx-new-generate-a-configuration-that-use-webpack-dev-server-version-3/8152 "2021-10-26T09:28:20Z")

</div>

Hello, The current dfx new command generate a project that use webpack-dev-server version 3. It would be nice if an update was made by default. In the meantime I share my modifications to move to version 4: webpack.c…

---

## [Connecting pre-existing Wallets to NNS](https://forum.dfinity.org/t/connecting-pre-existing-wallets-to-nns/7426)

<div class="topic-metadata">

**Author:** [@wole](https://forum.dfinity.org/u/wole)\
**Replies:** 1\
**Last updated:** [October 7, 2021, 12:03am UTC](https://forum.dfinity.org/t/connecting-pre-existing-wallets-to-nns/7426 "2021-10-07T00:03:33Z")

</div>

The nns.ic0.app interface is quite basic, so it’s difficult to figure out exactly how to achieve some things. For example generating cycles from faucet.dfinity.org: If I were to generate the cycles using my dfx/laptop p…

---

## [What delete means?](https://forum.dfinity.org/t/what-delete-means/7609)

<div class="topic-metadata">

**Author:** [@bytesun](https://forum.dfinity.org/u/bytesun)\
**Replies:** 1\
**Last updated:** [September 30, 2021, 5:55pm UTC](https://forum.dfinity.org/t/what-delete-means/7609 "2021-09-30T17:55:09Z")

</div>

I tried to use dfx to delete a canister, it said canister has been deleted, but I still can see it on ic.rocks list dfx canister delete

---

## [The DFINITY Canister Smart Contract SDK, DFX, Is Now Open Source!](https://forum.dfinity.org/t/the-dfinity-canister-smart-contract-sdk-dfx-is-now-open-source/7507)

<div class="topic-metadata">

**Author:** [@flyq](https://forum.dfinity.org/u/flyq)\
**Replies:** 6\
**Last updated:** [September 24, 2021, 8:55am UTC](https://forum.dfinity.org/t/the-dfinity-canister-smart-contract-sdk-dfx-is-now-open-source/7507 "2021-09-24T08:55:20Z")

</div>

---

## [Use commands to manage neurons](https://forum.dfinity.org/t/use-commands-to-manage-neurons/7409)

<div class="topic-metadata">

**Author:** [@1082](https://forum.dfinity.org/u/1082)\
**Replies:** 3\
**Last updated:** [September 22, 2021, 8:19pm UTC](https://forum.dfinity.org/t/use-commands-to-manage-neurons/7409 "2021-09-22T20:19:40Z")

</div>

Can we use commands to manage neurons? I want to do the following from command line: Stake a new neuron Set its dissolve delay (in a high-precision fashion, rather than using mouse cursor) Merge maturity (with option …

---

## [Can you recover a lost PEM file/identity?](https://forum.dfinity.org/t/can-you-recover-a-lost-pem-file-identity/7378)

<div class="topic-metadata">

**Author:** [@wole](https://forum.dfinity.org/u/wole)\
**Replies:** 1\
**Last updated:** [September 20, 2021, 12:26pm UTC](https://forum.dfinity.org/t/can-you-recover-a-lost-pem-file-identity/7378 "2021-09-20T12:26:04Z")

</div>

What happens if for some reason $HOME/.config…/identity.pem gets deleted or corrupted? Is it possible to re-generate the same principal, or would you have permanently lost access to any canisters (and cycles) for which t…

---

## [Create full Actor model](https://forum.dfinity.org/t/create-full-actor-model/6921)

<div class="topic-metadata">

**Author:** [@gilbert](https://forum.dfinity.org/u/gilbert)\
**Replies:** 3\
**Last updated:** [September 3, 2021, 7:34am UTC](https://forum.dfinity.org/t/create-full-actor-model/6921 "2021-09-03T07:34:40Z")

</div>

Hi, I am working on a project where I want to use the actor model on the Internet Computer. I know how to create Motoko source canisters and how to address them from a browser and from dfx. I also know how to call functi…

---

## [A trick way to run Motoko in Mac M1](https://forum.dfinity.org/t/a-trick-way-to-run-motoko-in-mac-m1/2201)

<div class="topic-metadata">

**Author:** [@flyq](https://forum.dfinity.org/u/flyq)\
**Replies:** 7\
**Last updated:** [September 2, 2021, 2:58pm UTC](https://forum.dfinity.org/t/a-trick-way-to-run-motoko-in-mac-m1/2201 "2021-09-02T14:58:38Z")

</div>

I tried installing the dfx to a Mac with M1 CPU. Following the Document: sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)" And it failed: info: ... Do you agree and wish to install the DFINITY Canister SDK \[y…

---

## [Fixed-size naturals in command line](https://forum.dfinity.org/t/fixed-size-naturals-in-command-line/6340)

<div class="topic-metadata">

**Author:** [@matteo](https://forum.dfinity.org/u/matteo)\
**Replies:** 1\
**Last updated:** [August 7, 2021, 1:17am UTC](https://forum.dfinity.org/t/fixed-size-naturals-in-command-line/6340 "2021-08-07T01:17:42Z")

</div>

How can I encode fixed-size naturals (like Nat16) to use them as arguments of dfx canister call instructions? Thanks

---

## [Neuron not gaining rewards](https://forum.dfinity.org/t/neuron-not-gaining-rewards/6186)

<div class="topic-metadata">

**Author:** [@jonit](https://forum.dfinity.org/u/jonit)\
**Replies:** 1\
**Last updated:** [July 30, 2021, 10:48am UTC](https://forum.dfinity.org/t/neuron-not-gaining-rewards/6186 "2021-07-30T10:48:43Z")

</div>

I have found that at least one of my early contributor neutrons is not gaining rewards. Its set to dissolve in April 2023 and has been voting and has +20 voting power. When I get full neuron info its says maturity\_e8s …

---

## [How to use dfx to interact with NNS canisters instead of nns app](https://forum.dfinity.org/t/how-to-use-dfx-to-interact-with-nns-canisters-instead-of-nns-app/6013)

<div class="topic-metadata">

**Author:** [@flyq](https://forum.dfinity.org/u/flyq)\
**Replies:** 0\
**Last updated:** [July 20, 2021, 3:50pm UTC](https://forum.dfinity.org/t/how-to-use-dfx-to-interact-with-nns-canisters-instead-of-nns-app/6013 "2021-07-20T15:50:06Z")

</div>

Contents Contents Background How dfx Create neurons Query neuron information Operating neuron Set dissolve delay Neuron voting Background My users do not have WebAuthn-supported devices, can them still participat…

---

## ['dfx' is not a recognized command. $PATH help](https://forum.dfinity.org/t/dfx-is-not-a-recognized-command-path-help/5776)

<div class="topic-metadata">

**Author:** [@shakespeare1212](https://forum.dfinity.org/u/shakespeare1212)\
**Replies:** 1\
**Last updated:** [July 8, 2021, 9:29am UTC](https://forum.dfinity.org/t/dfx-is-not-a-recognized-command-path-help/5776 "2021-07-08T09:29:13Z")

</div>

Hello I am a real novice at Lunux. Can you please tell me: What directory is dfx install to by default? How can I add this location to my $PATH variable on linux 20.04? I am running on a Windows 10 laptop using the Ubu…

---

## [Calling public functions not in main.mo with "dfx canister call"](https://forum.dfinity.org/t/calling-public-functions-not-in-main-mo-with-dfx-canister-call/5678)

<div class="topic-metadata">

**Author:** [@Jeremy](https://forum.dfinity.org/u/Jeremy)\
**Replies:** 5\
**Last updated:** [July 5, 2021, 8:27am UTC](https://forum.dfinity.org/t/calling-public-functions-not-in-main-mo-with-dfx-canister-call/5678 "2021-07-05T08:27:17Z")

</div>

I’ve been using “dfx canister call” to test my backend motoko functions and it has worked pretty well so far. Recently I’ve refactored my code so that more of the logic is split across multiple files, which are imported …

---

## [Want to use makefile but not dfx? You are not alone!](https://forum.dfinity.org/t/want-to-use-makefile-but-not-dfx-you-are-not-alone/5698)

<div class="topic-metadata">

**Author:** [@PaulLiu](https://forum.dfinity.org/u/PaulLiu)\
**Replies:** 0\
**Last updated:** [July 4, 2021, 10:39am UTC](https://forum.dfinity.org/t/want-to-use-makefile-but-not-dfx-you-are-not-alone/5698 "2021-07-04T10:39:02Z")

</div>

I created a side project that includes a bunch of utilities and a Makefile. All interactions with IC are either through simple open source utilities, or packaged in shell scripts. No more dfx or cycles wallet, although I…

---

## [Unable to deploy hello](https://forum.dfinity.org/t/unable-to-deploy-hello/5691)

<div class="topic-metadata">

**Author:** [@mparikh](https://forum.dfinity.org/u/mparikh)\
**Replies:** 2\
**Last updated:** [July 4, 2021, 6:50am UTC](https://forum.dfinity.org/t/unable-to-deploy-hello/5691 "2021-07-04T06:50:26Z")

</div>

with node 10.19.0, npm 6.14.4, dfx 0.7.2 npm install warns … npm WARN @dfinity/agent@0.9.1-beta-1 requires a peer of @dfinity/candid@^0.9.1-beta-1 but none is installed. You must install peer dependencies yourself. …

---

## [Staking, spawn and icp reward in command line](https://forum.dfinity.org/t/staking-spawn-and-icp-reward-in-command-line/5444)

<div class="topic-metadata">

**Author:** [@jonit](https://forum.dfinity.org/u/jonit)\
**Replies:** 0\
**Last updated:** [June 23, 2021, 7:24am UTC](https://forum.dfinity.org/t/staking-spawn-and-icp-reward-in-command-line/5444 "2021-06-23T07:24:14Z")

</div>

If anyone can help I have some questions regarding controlling the seed neurons in the command line. 1.If our nerons are not set to dissolve and have more than 6 month dissolve delay are we automatically staking? 2.If …

---

## [How to call canister another backend](https://forum.dfinity.org/t/how-to-call-canister-another-backend/5325)

<div class="topic-metadata">

**Author:** [@SvyatobatkoVlad](https://forum.dfinity.org/u/SvyatobatkoVlad)\
**Replies:** 7\
**Last updated:** [June 20, 2021, 10:48pm UTC](https://forum.dfinity.org/t/how-to-call-canister-another-backend/5325 "2021-06-20T22:48:08Z")

</div>

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 --…

---

## [The replica returned Http Error - status 500 Internal Server Error](https://forum.dfinity.org/t/the-replica-returned-http-error-status-500-internal-server-error/4928)

<div class="topic-metadata">

**Author:** [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Replies:** 2\
**Last updated:** [June 17, 2021, 8:30pm UTC](https://forum.dfinity.org/t/the-replica-returned-http-error-status-500-internal-server-error/4928 "2021-06-17T20:30:10Z")

</div>

Note: this entry has been edited like 10 times because the message board software hates double dashes or parens or something that makes it really hard to paste in terminal output.:joy: I’m trying to deploy the ledger fo…

---

## [Canister Types File Does Not Include idlFactory or canisterId Exports](https://forum.dfinity.org/t/canister-types-file-does-not-include-idlfactory-or-canisterid-exports/4998)

<div class="topic-metadata">

**Author:** [@k3yb0ardn1nja](https://forum.dfinity.org/u/k3yb0ardn1nja)\
**Replies:** 0\
**Last updated:** [June 9, 2021, 7:15pm UTC](https://forum.dfinity.org/t/canister-types-file-does-not-include-idlfactory-or-canisterid-exports/4998 "2021-06-09T19:15:49Z")

</div>

Hello, I am having a little bit of trouble coming up with the best way to address an issue I ran into with using the typings file generated during the canister build of the dfx sample app. I downloaded the latest releas…

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

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