# Dfx deploy failed to create canister

**URL:** <https://forum.dfinity.org/t/dfx-deploy-failed-to-create-canister/27729>\
**Category:** Developers\
**Tags:** dfx\
**Created:** [February 21, 2024, 5:45am UTC](https://forum.dfinity.org/t/dfx-deploy-failed-to-create-canister/27729 "2024-02-21T05:45:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nolma](https://avatars.discourse-cdn.com/v4/letter/n/9f8e36/32.png) [@nolma](https://forum.dfinity.org/u/nolma)\
**Post date:** [February 21, 2024, 5:45am UTC](https://forum.dfinity.org/t/dfx-deploy-failed-to-create-canister/27729/1 "2024-02-21T05:45:38Z")

</div>

I have a wallet create using dfx.  
I sent IC to it, I see it has a balance  
I try to run `dfx deploy --network ic` and get an error “In order to create a canister on this network, you must use a wallet in order to allocate cycles to the new canister”  
then it says to remove the “no-wallet” argument and try again, but I didn’t have the no-wallet argument.

I have a funded account - well I thought I did, I tried “dfx wallet balance --network ic” tells me “failed to setup wallet caller. no wallet configured for combination of identity icdev and network ic)”

`dfx ledger balance --network=ic` does show a balance

How do I deploy my canister from the dfx command line?

---

<div class="post-metadata">

**Author:** ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Post date:** [February 21, 2024, 8:58am UTC](https://forum.dfinity.org/t/dfx-deploy-failed-to-create-canister/27729/2 "2024-02-21T08:58:18Z")

</div>

Dfx (intentionally) does not automatically use your ICP. You can set up a cycles wallet like described [here](https://internetcomputer.org/docs/current/developer-docs/getting-started/cycles/cycles-wallet#creating-a-cycles-wallet-on-the-mainnet). Once that is set up you can `dfx deploy`

---

<div class="post-metadata">

**Author:** ![aterga](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/aterga/32/4143_2.png) [@aterga](https://forum.dfinity.org/u/aterga)\
**Post date:** [November 12, 2024, 9:40am UTC](https://forum.dfinity.org/t/dfx-deploy-failed-to-create-canister/27729/3 "2024-11-12T09:40:15Z")

</div>

Hi @Vivienne, this link is now broken, could you point me to the place where this part is now documented, please?

---

<div class="post-metadata">

**Author:** ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Post date:** [November 12, 2024, 12:38pm UTC](https://forum.dfinity.org/t/dfx-deploy-failed-to-create-canister/27729/4 "2024-11-12T12:38:48Z")

</div>

We no longer suggest using cycles wallets. dfx now defaults to keeping users’ cycles on the cycles ledger. [Here](https://internetcomputer.org/docs/current/developer-docs/getting-started/deploy/mainnet#register-build-and-deploy-the-application) one of the steps is converting ICP to cycles using `dfx cycles convert`.

dfx still allows you to use wallets. If you really want to go that route, the steps are:

```bash
> dfx ledger create-canister
# returns <canister_id>
> dfx identity deploy-wallet <canister_id>

# to top up the wallet some more:
> dfx ledger top-up <canister_id>

```
