# Command Line Tools

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

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

**Page:** 3

---

## [How do I get the last upgrade timestamp of a canister?](https://forum.dfinity.org/t/how-do-i-get-the-last-upgrade-timestamp-of-a-canister/13208)

<div class="topic-metadata">

**Author:** [@jzxchiang](https://forum.dfinity.org/u/jzxchiang)\
**Replies:** 2\
**Last updated:** [February 18, 2024, 7:02am UTC](https://forum.dfinity.org/t/how-do-i-get-the-last-upgrade-timestamp-of-a-canister/13208 "2024-02-18T07:02:58Z")

</div>

dfx canister status \<canister-id\> doesn’t seem to have it. Is this information even available?

---

## [Dfx 0.16.1 is promoted](https://forum.dfinity.org/t/dfx-0-16-1-is-promoted/27196)

<div class="topic-metadata">

**Author:** [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Replies:** 0\
**Last updated:** [February 1, 2024, 5:41pm UTC](https://forum.dfinity.org/t/dfx-0-16-1-is-promoted/27196 "2024-02-01T17:41:27Z")

</div>

Dfx 0.16.1 is promoted. You can read the release notes here. We’re releasing this version so quickly after 0.16.0 because of this bug found by @lastmjs. The new release contains a fixed replica. Please let us know if yo…

---

## [Correct account Identifier of Canister](https://forum.dfinity.org/t/correct-account-identifier-of-canister/26938)

<div class="topic-metadata">

**Author:** [@noobie\_doobie\_doo](https://forum.dfinity.org/u/noobie_doobie_doo)\
**Replies:** 7\
**Last updated:** [January 25, 2024, 9:45am UTC](https://forum.dfinity.org/t/correct-account-identifier-of-canister/26938 "2024-01-25T09:45:56Z")

</div>

I am trying to send some ICP to my canister and then burn them to cycles using cycles minting canister. Here are the steps I followed STEP 1 : Fetch account id for my canister dfx ledger account-id --of-principal gq3rs…

---

## [Possible BUG: Running into "Payload Too Large" error even though my canister is around 1 MB in size](https://forum.dfinity.org/t/possible-bug-running-into-payload-too-large-error-even-though-my-canister-is-around-1-mb-in-size/19387)

<div class="topic-metadata">

**Author:** [@saikatdas0790](https://forum.dfinity.org/u/saikatdas0790)\
**Replies:** 21\
**Last updated:** [January 15, 2024, 1:39pm UTC](https://forum.dfinity.org/t/possible-bug-running-into-payload-too-large-error-even-though-my-canister-is-around-1-mb-in-size/19387 "2024-01-15T13:39:39Z")

</div>

This is what I’m seeing on my terminal when trying to upgrade a canister: I can see that an optimized build was created from further up in the log: My build script looks something like this: Essentially I’m g…

---

## [CLARIFICATION: Unable to setup following for \`ExecuteGenericNervousSystemFunction\`](https://forum.dfinity.org/t/clarification-unable-to-setup-following-for-executegenericnervoussystemfunction/26402)

<div class="topic-metadata">

**Author:** [@saikatdas0790](https://forum.dfinity.org/u/saikatdas0790)\
**Replies:** 2\
**Last updated:** [January 10, 2024, 8:49am UTC](https://forum.dfinity.org/t/clarification-unable-to-setup-following-for-executegenericnervoussystemfunction/26402 "2024-01-10T08:49:11Z")

</div>

I am unable to setup following for neurons using quill for the type of ExecuteGenericNervousSystemFunction I am using the latest quill version, 0.4.2. Here: When I try to execute the follow-neuron subcommand, it onl…

---

## [Rdeploy with remote replica](https://forum.dfinity.org/t/rdeploy-with-remote-replica/26299)

<div class="topic-metadata">

**Author:** [@Lagertha](https://forum.dfinity.org/u/Lagertha)\
**Replies:** 4\
**Last updated:** [January 8, 2024, 7:57pm UTC](https://forum.dfinity.org/t/rdeploy-with-remote-replica/26299 "2024-01-08T19:57:39Z")

</div>

Any way to run the replica on a remote machine?

---

## [Outdated version of II in NNS dfx extension](https://forum.dfinity.org/t/outdated-version-of-ii-in-nns-dfx-extension/25992)

<div class="topic-metadata">

**Author:** [@Samer](https://forum.dfinity.org/u/Samer)\
**Replies:** 1\
**Last updated:** [December 29, 2023, 7:02pm UTC](https://forum.dfinity.org/t/outdated-version-of-ii-in-nns-dfx-extension/25992 "2023-12-29T19:02:22Z")

</div>

When we install NNS extension on dfx 0.15.2, we get an outdated version of II. This version of II does not allow alternative origins with the icp0.io domain. A custom build of II wasm from latest release and manual depl…

---

## [Moc version management](https://forum.dfinity.org/t/moc-version-management/19011)

<div class="topic-metadata">

**Author:** [@ZenVoich](https://forum.dfinity.org/u/ZenVoich)\
**Replies:** 3\
**Last updated:** [December 25, 2023, 8:16am UTC](https://forum.dfinity.org/t/moc-version-management/19011 "2023-12-25T08:16:29Z")

</div>

Motoko Compiler version manager If you want to use the latest moc version. If you want to easily switch between moc versions. If you don’t want to prefix all deploy commands with DFX\_MOC\_PATH = ... Please, welcome mocv!…

---

## [How can I delete my canister after I create it](https://forum.dfinity.org/t/how-can-i-delete-my-canister-after-i-create-it/25546)

<div class="topic-metadata">

**Author:** [@skyhigh](https://forum.dfinity.org/u/skyhigh)\
**Replies:** 3\
**Last updated:** [December 18, 2023, 4:06pm UTC](https://forum.dfinity.org/t/how-can-i-delete-my-canister-after-i-create-it/25546 "2023-12-18T16:06:23Z")

</div>

I created canister and install the code dfx canister create hello --network ic dfx.json is empty { "canisters": { "hello": {} } } But I cannot delete it any ways. Need Help!!! dfx canister status hello --network…

---

## [Getting a custom domain to work for a non-asset canister](https://forum.dfinity.org/t/getting-a-custom-domain-to-work-for-a-non-asset-canister/25275)

<div class="topic-metadata">

**Author:** [@mymikemiller](https://forum.dfinity.org/u/mymikemiller)\
**Replies:** 5\
**Last updated:** [December 9, 2023, 1:23am UTC](https://forum.dfinity.org/t/getting-a-custom-domain-to-work-for-a-non-asset-canister/25275 "2023-12-09T01:23:01Z")

</div>

I’m following the steps here to set up a custom domain so my users don’t have to remember (or ever see) the non-user-friendly canister-id.ic0.io domains and can instead use my domain. I’ve gotten it to work with my fron…

---

## [Feature discussion: Replica-signed queries](https://forum.dfinity.org/t/feature-discussion-replica-signed-queries/21793)

<div class="topic-metadata">

**Author:** [@THLO](https://forum.dfinity.org/u/THLO)\
**Replies:** 14\
**Last updated:** [December 5, 2023, 8:22am UTC](https://forum.dfinity.org/t/feature-discussion-replica-signed-queries/21793 "2023-12-05T08:22:35Z")

</div>

Hi everyone, I’d like to start a discussion about a new feature that is currently being worked on at DFINITY. While responses to update calls bear a subnet signature, query calls are handled by single replicas and thei…

---

## [How to transfer cycles to Plug from dfx wallet?](https://forum.dfinity.org/t/how-to-transfer-cycles-to-plug-from-dfx-wallet/6779)

<div class="topic-metadata">

**Author:** [@cyaolong](https://forum.dfinity.org/u/cyaolong)\
**Replies:** 6\
**Last updated:** [December 4, 2023, 9:35am UTC](https://forum.dfinity.org/t/how-to-transfer-cycles-to-plug-from-dfx-wallet/6779 "2023-12-04T09:35:42Z")

</div>

I have created a principal id by CLI and got cycles from the faucet. How can I transfer them to my Plug wallet? I can’t find any commands. Furthermore, why I can’t see any balance of my principal id on ic.rocks?

---

## [Dfx start --background leads to thread 'main' panicked at 'Error creating persistent pool error](https://forum.dfinity.org/t/dfx-start-background-leads-to-thread-main-panicked-at-error-creating-persistent-pool-error/25124)

<div class="topic-metadata">

**Author:** [@princess\_eth](https://forum.dfinity.org/u/princess_eth)\
**Replies:** 1\
**Last updated:** [November 29, 2023, 5:51am UTC](https://forum.dfinity.org/t/dfx-start-background-leads-to-thread-main-panicked-at-error-creating-persistent-pool-error/25124 "2023-11-29T05:51:45Z")

</div>

I am on a Mac. I previously ran dfx start --background without any issues. However, now when I run dfx start --background, I am getting this error: Running dfx start for version 0.15.1 Using the default definition for t…

---

## [Why is local deployment so slow?](https://forum.dfinity.org/t/why-is-local-deployment-so-slow/23115)

<div class="topic-metadata">

**Author:** [@qwertytrewq](https://forum.dfinity.org/u/qwertytrewq)\
**Replies:** 6\
**Last updated:** [November 25, 2023, 4:04am UTC](https://forum.dfinity.org/t/why-is-local-deployment-so-slow/23115 "2023-11-25T04:04:42Z")

</div>

Local deployments are too slow. For example the following code took 4m50.281s: dfx deploy zon\_pst --argument 'record { owner = $(FOUNDER); subaccount = null; }' dfx deploy NacDBIndex --argument 'vec { $(FOUNDER) }' dfx …

---

## [Feature Request - DFX Password](https://forum.dfinity.org/t/feature-request-dfx-password/24001)

<div class="topic-metadata">

**Author:** [@NS01](https://forum.dfinity.org/u/NS01)\
**Replies:** 2\
**Last updated:** [October 26, 2023, 7:56am UTC](https://forum.dfinity.org/t/feature-request-dfx-password/24001 "2023-10-26T07:56:30Z")

</div>

Just a quick feature request - I’d really like a way to stay ‘signed into’ a DFX identity for a period of time. Even an hour would be good, 24 hours would be better. I’m losing my mind entering my password every 10 seco…

---

## [I can't create frontend: it says "out of cycles" despite I added cycles](https://forum.dfinity.org/t/i-cant-create-frontend-it-says-out-of-cycles-despite-i-added-cycles/23543)

<div class="topic-metadata">

**Author:** [@qwertytrewq](https://forum.dfinity.org/u/qwertytrewq)\
**Replies:** 0\
**Last updated:** [October 6, 2023, 3:36pm UTC](https://forum.dfinity.org/t/i-cant-create-frontend-it-says-out-of-cycles-despite-i-added-cycles/23543 "2023-10-06T15:36:27Z")

</div>

I asked this in the middle of another thread. It was unanswered, so I ask it again, as the first message in a thread. $ dfx deploy --ic --with-cycles 110000000000 frontend ... Installing canisters... Module hash 2ee9c16…

---

## [Error Deploying Canister on Playground](https://forum.dfinity.org/t/error-deploying-canister-on-playground/23030)

<div class="topic-metadata">

**Author:** [@zohaib29](https://forum.dfinity.org/u/zohaib29)\
**Replies:** 12\
**Last updated:** [October 5, 2023, 11:02am UTC](https://forum.dfinity.org/t/error-deploying-canister-on-playground/23030 "2023-10-05T11:02:26Z")

</div>

I am getting an error when deploying on Playground, but the same canister successfully deployed on a local replica The command I use to deploy: dfx deploy --argument ‘()’ providers --playground --no-wallet Failed whil…

---

## [How to create the .env file?](https://forum.dfinity.org/t/how-to-create-the-env-file/23186)

<div class="topic-metadata">

**Author:** [@qwertytrewq](https://forum.dfinity.org/u/qwertytrewq)\
**Replies:** 2\
**Last updated:** [September 20, 2023, 12:25pm UTC](https://forum.dfinity.org/t/how-to-create-the-env-file/23186 "2023-09-20T12:25:36Z")

</div>

I noticed that in my project there was created an .env file. I removed it. Now I am trying to automatically create the .env file again, but can’t find how. Please, explain how to make DFX create the .env file with cani…

---

## [Too short principal? It isn't](https://forum.dfinity.org/t/too-short-principal-it-isnt/22977)

<div class="topic-metadata">

**Author:** [@qwertytrewq](https://forum.dfinity.org/u/qwertytrewq)\
**Replies:** 4\
**Last updated:** [September 14, 2023, 11:59am UTC](https://forum.dfinity.org/t/too-short-principal-it-isnt/22977 "2023-09-14T11:59:18Z")

</div>

I call my canister with my principal: dfx deploy zon\_pst --argument 'record { owner = principal "qobqg-7qjc5-twsoq-gpyl7-ouflv-ftbw4-dxzof-lhkgp-qayke-unhpz-rae"; subaccount = null; }' Error: Failed while trying to dep…

---

## [Running code from a not compiled WASM? (I'm confused.)](https://forum.dfinity.org/t/running-code-from-a-not-compiled-wasm-im-confused/23014)

<div class="topic-metadata">

**Author:** [@qwertytrewq](https://forum.dfinity.org/u/qwertytrewq)\
**Replies:** 1\
**Last updated:** [September 14, 2023, 10:23am UTC](https://forum.dfinity.org/t/running-code-from-a-not-compiled-wasm-im-confused/23014 "2023-09-14T10:23:34Z")

</div>

I run code from https://github.com/vporton/test-nonexistent-canister: $ dfx start --clean (switch to another terminal) $ make … (the string BBBBBBB is output in another terminal) $ find -name \*.wasm ./.dfx/local/c…

---

## [Can I implement moc version select as a dfx extension?](https://forum.dfinity.org/t/can-i-implement-moc-version-select-as-a-dfx-extension/22797)

<div class="topic-metadata">

**Author:** [@ZenVoich](https://forum.dfinity.org/u/ZenVoich)\
**Replies:** 0\
**Last updated:** [September 8, 2023, 7:16am UTC](https://forum.dfinity.org/t/can-i-implement-moc-version-select-as-a-dfx-extension/22797 "2023-09-08T07:16:56Z")

</div>

Waiting for for the dfx extension to be released and I wonder if it is possible to implement an extension that will use mocv to select moc version for canister building? How I see it: One time? For each project? dfx …

---

## [Is it possible to increase timeout for \`dfx canister call\`?](https://forum.dfinity.org/t/is-it-possible-to-increase-timeout-for-dfx-canister-call/22508)

<div class="topic-metadata">

**Author:** [@qwertytrewq](https://forum.dfinity.org/u/qwertytrewq)\
**Replies:** 0\
**Last updated:** [September 2, 2023, 9:23pm UTC](https://forum.dfinity.org/t/is-it-possible-to-increase-timeout-for-dfx-canister-call/22508 "2023-09-02T21:23:33Z")

</div>

Is it possible to increase timeout for dfx canister call? If not, I should add a feature request to specify the timeout.

---

## [How do I pass a canister wasm built using dfx as an argument to another canister call?](https://forum.dfinity.org/t/how-do-i-pass-a-canister-wasm-built-using-dfx-as-an-argument-to-another-canister-call/22411)

<div class="topic-metadata">

**Author:** [@saikatdas0790](https://forum.dfinity.org/u/saikatdas0790)\
**Replies:** 4\
**Last updated:** [August 28, 2023, 12:34pm UTC](https://forum.dfinity.org/t/how-do-i-pass-a-canister-wasm-built-using-dfx-as-an-argument-to-another-canister-call/22411 "2023-08-28T12:34:42Z")

</div>

I am trying to take the build output of a dfx build step which is a canister wasm file and trying to pass it as an argument to another canister via dfx canister call. I imagine it has to be the blob type as documented h…

---

## [New Dev Blog post: Introducing dfx deps!](https://forum.dfinity.org/t/new-dev-blog-post-introducing-dfx-deps/21758)

<div class="topic-metadata">

**Author:** [@Jessie](https://forum.dfinity.org/u/Jessie)\
**Replies:** 3\
**Last updated:** [July 27, 2023, 10:18pm UTC](https://forum.dfinity.org/t/new-dev-blog-post-introducing-dfx-deps/21758 "2023-07-27T22:18:21Z")

</div>

Good afternoon developers! There is a new feature blog post introducing dfx deps! dfx deps is a new set of subcommands designed to provide a consistent developer workflow for integrating and testing third-party canister…

---

## [Pulling Canister Dependencies - Q&A](https://forum.dfinity.org/t/pulling-canister-dependencies-q-a/21728)

<div class="topic-metadata">

**Author:** [@lwshang](https://forum.dfinity.org/u/lwshang)\
**Replies:** 0\
**Last updated:** [July 26, 2023, 4:49pm UTC](https://forum.dfinity.org/t/pulling-canister-dependencies-q-a/21728 "2023-07-26T16:49:25Z")

</div>

dfx supports pulling canister dependencies directly from the IC mainnet. Developer docs page dfx CLI reference for dfx deps Dev blog post Should you have any questions about this feature, please ask in this f…

---

## [Ubuntu VM on MacBook M1 - dfx install - unknown CPU type: aarch64](https://forum.dfinity.org/t/ubuntu-vm-on-macbook-m1-dfx-install-unknown-cpu-type-aarch64/21486)

<div class="topic-metadata">

**Author:** [@Motokoder](https://forum.dfinity.org/u/Motokoder)\
**Replies:** 3\
**Last updated:** [July 21, 2023, 7:20am UTC](https://forum.dfinity.org/t/ubuntu-vm-on-macbook-m1-dfx-install-unknown-cpu-type-aarch64/21486 "2023-07-21T07:20:39Z")

</div>

I have Ubuntu Desktop 22, running in a VM on VMWare Fusion, on a MacBook Pro with an M1 (Apple Silicon) processor. When I try to install dfx with: sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)" I get the fol…

---

## [DFX\_NETWORK is not supported in \`dfx canister id\`](https://forum.dfinity.org/t/dfx-network-is-not-supported-in-dfx-canister-id/21206)

<div class="topic-metadata">

**Author:** [@ZenVoich](https://forum.dfinity.org/u/ZenVoich)\
**Replies:** 1\
**Last updated:** [July 6, 2023, 3:56pm UTC](https://forum.dfinity.org/t/dfx-network-is-not-supported-in-dfx-canister-id/21206 "2023-07-06T15:56:55Z")

</div>

dfx 0.14.1 dfx canister id main --network ic - working DFX\_NETWORK=ic dfx canister id main - no effect Probably there are other dfx commands where DFX\_NETWORK is not supported

---

## [Dfx canister --network=ic status canister-id did not print out result](https://forum.dfinity.org/t/dfx-canister-network-ic-status-canister-id-did-not-print-out-result/21089)

<div class="topic-metadata">

**Author:** [@zire](https://forum.dfinity.org/u/zire)\
**Replies:** 1\
**Last updated:** [June 30, 2023, 6:57am UTC](https://forum.dfinity.org/t/dfx-canister-network-ic-status-canister-id-did-not-print-out-result/21089 "2023-06-30T06:57:20Z")

</div>

I ran into this problem just now. It didn’t become a show-stopper in the end but probably reveal something buggy of dfx or the network. It might be good if someone from the SDK team can look into it. Thanks! My site wen…

---

## [Make canister calls with delegations](https://forum.dfinity.org/t/make-canister-calls-with-delegations/20853)

<div class="topic-metadata">

**Author:** [@sea-snake](https://forum.dfinity.org/u/sea-snake)\
**Replies:** 4\
**Last updated:** [June 21, 2023, 8:49am UTC](https://forum.dfinity.org/t/make-canister-calls-with-delegations/20853 "2023-06-21T08:49:43Z")

</div>

Having the possibility to make canister calls with delegations would make it possible to use any identity in DFX indirectly including Internet Identity. This also seems like a safer approach than exporting an identity f…

---

## [How to know more about DFX Deps](https://forum.dfinity.org/t/how-to-know-more-about-dfx-deps/20792)

<div class="topic-metadata">

**Author:** [@tiago89](https://forum.dfinity.org/u/tiago89)\
**Replies:** 3\
**Last updated:** [June 20, 2023, 2:23pm UTC](https://forum.dfinity.org/t/how-to-know-more-about-dfx-deps/20792 "2023-06-20T14:23:44Z")

</div>

Hi, On DFX 14.1 (two weeks ago), it was released the sub command “deps”, which I think is really cool and useful! I want to give it a try on a project I am in, but I am not finding any deeper explanation / reference or…

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

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