# Deploying to Mainnet

**URL:** https://forum.dfinity.org/t/deploying-to-mainnet/1843
**Category:** Developers
**Created:** [January 22, 2021, 8:35pm UTC](https://forum.dfinity.org/t/deploying-to-mainnet/1843 "2021-01-22T20:35:19Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Steve](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@Steve](https://forum.dfinity.org/u/Steve)
#### Post date: [January 22, 2021, 8:35pm UTC](https://forum.dfinity.org/t/deploying-to-mainnet/1843/1 "2021-01-22T20:35:19Z")

</div>

Are we able to deploy applications to the mainnet yet? If so how are cycles added to the canister?

---

<div class="post-metadata">

### Author: ![Steve](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@Steve](https://forum.dfinity.org/u/Steve)
#### Post date: [January 22, 2021, 9:03pm UTC](https://forum.dfinity.org/t/deploying-to-mainnet/1843/2 "2021-01-22T21:03:33Z")

</div>

> [@Usage of Random Base Package](https://forum.dfinity.org/t/usage-of-random-base-package/1668/11):
>
> @d2k you can follow the instructions [here](https://sdk.dfinity.org/docs/quickstart/network-quickstart.html) to deploy to the Sodium network today. We will be providing more details in the coming weeks for mainnet onboarding, so stay tuned!

Accidentally found my answer!

---

<div class="post-metadata">

### Author: ![AndyW](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@AndyW](https://forum.dfinity.org/u/AndyW)
#### Post date: [May 23, 2021, 8:48am UTC](https://forum.dfinity.org/t/deploying-to-mainnet/1843/3 "2021-05-23T08:48:48Z")

</div>

Network deployment  
Following the instructions given here 🙂

> **[The Internet Computer | Documentation](https://sdk.dfinity.org/docs/quickstart/network-quickstart.html)**
>
> Documentation for the internet computer.

Enjoying learning. However, I have stumbled on this. Please help

% dfx ledger account-id  
error: Found argument ‘ledger’ which wasn’t expected, or isn’t valid in this context

% dfx --help  
dfx 0.6.26  
No options or subcommands: ‘ledger’

---

<div class="post-metadata">

### Author: ![lsgunn](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/lsgunn/32/124_2.png) [@lsgunn](https://forum.dfinity.org/u/lsgunn)
#### Post date: [May 23, 2021, 2:19pm UTC](https://forum.dfinity.org/t/deploying-to-mainnet/1843/4 "2021-05-23T14:19:41Z")

</div>

Hi  
You’ll need to upgrade dfx to 0.7.0 to see the ledger sub command.  
Add DFX\_VERSION=0.7.0 before the installation command.  
DFX\_VERSION=0.7.0 sh -ci “$(curl -fsSL [https://sdk.dfinity.org/install.sh](https://sdk.dfinity.org/install.sh))”

---

<div class="post-metadata">

### Author: ![guillaumestols](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/guillaumestols/32/119_2.png) [@guillaumestols](https://forum.dfinity.org/u/guillaumestols)
#### Post date: [May 23, 2021, 11:03pm UTC](https://forum.dfinity.org/t/deploying-to-mainnet/1843/5 "2021-05-23T23:03:42Z")

</div>

**Impossible to deploy on the mainnet !!**

The commands took me some ICP, not a big amount fortunately, but guys, is it nice to give the information in the bottom of a page that is not the getting started tutorial ?

> **[The Internet Computer | Documentation](https://sdk.dfinity.org/docs/token-holders/nns-app-quickstart.html#_deploy_a_canister_with_cycles)**
>
> Documentation for the internet computer.

```
Because application subnets are not yet widely available to the general public, you should not convert ICP tokens to cycles on the Internet Computer.

For an introduction to developing applications locally, see the Local development quick start and Tutorials.

```

See below my journey results:

`lisica@lisica-20n2000lfr:~/prog/dfinity/hello$ dfx ledger --network ic balance`  
0.00010000 ICP

`lisica@lisica-20n2000lfr:~/prog/dfinity/hello$ dfx ledger --network ic create-canister blah-blih... --amount .00001`  
The Replica returned an error: code 5, message: “Canister ryjl3-tyaaa-aaaaa-aaaba-cai trapped explicitly: Panicked at ‘You have tried to spend more than the balance of your account’, rosetta-api/ledger\_canister/src/lib.rs:300:13”  
**OK, I need more ICPs for the transaction fees. Lets transfer more and try again…**  
`lisica@lisica-20n2000lfr:~/prog/dfinity/hello$ dfx ledger --network ic balance`  
0.10010000 ICP

`lisica@lisica-20n2000lfr:~/prog/dfinity/hello$ dfx ledger --network ic create-canister blah-blih... --amount .001`  
Transfer sent at BlockHeight: 101622  
Refunded at block height 101625 with message :No subnets in which to create a canister.  
`lisica@lisica-20n2000lfr:~/prog/dfinity/hello$ dfx ledger --network ic balance`  
**Nice, I lost 0.0007 ICPs…wait how much is this in dollars ? $400+ that I paid near introduction, ~$100 that they are “worth” right now ? $4.20 (500/119) that they were worth for the airdrop beneficiary (you know, those earthworms that were constantly whining on the telegram group “when airdrop, you scammers blabla I paid $10 for registration fees, refund !” that can now get ~$10000 by selling them on exchanges to people like you and me that need them for… yes, for losing them in failed transactions)?**  
0.09940000 ICP  
`lisica@lisica-20n2000lfr:~/prog/dfinity/hello$ dfx ledger --network ic create-canister blah-blih...`  
Transfer sent at BlockHeight: 101678  
Refunded with message: No subnets in which to create a canister.  
`lisica@lisica-20n2000lfr:~/prog/dfinity/hello$ dfx ledger --network ic balance`  
0.09920000 ICP  
**This time I lost only 0.0002…**

---

<div class="post-metadata">

### Author: ![cryptoschindler](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/cryptoschindler/32/26_2.png) [@cryptoschindler](https://forum.dfinity.org/u/cryptoschindler)
#### Post date: [May 24, 2021, 10:18pm UTC](https://forum.dfinity.org/t/deploying-to-mainnet/1843/6 "2021-05-24T22:18:26Z")

</div>

The team is still adding subnets, until this process hasn’t finished you cannot deploy to mainnet just yet. If you want to deploy a frontend you can try [fleek.co](http://fleek.co) to bypass this restriction 🙂

---

<div class="post-metadata">

### Author: ![svemir](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/svemir/32/1356_2.png) [@svemir](https://forum.dfinity.org/u/svemir)
#### Post date: [May 31, 2021, 9:06pm UTC](https://forum.dfinity.org/t/deploying-to-mainnet/1843/7 "2021-05-31T21:06:39Z")

</div>

I am getting that same error when deploying on fleek. Super-simple static site, tried different docker images with no luck.

---

<div class="post-metadata">

### Author: ![gladguy](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/gladguy/32/11145_2.png) [@gladguy](https://forum.dfinity.org/u/gladguy)
#### Post date: [June 1, 2021, 9:27am UTC](https://forum.dfinity.org/t/deploying-to-mainnet/1843/8 "2021-06-01T09:27:13Z")

</div>

Whats your error ? I deployed in [fleek.co](http://fleek.co)

---

<div class="post-metadata">

### Author: ![gladguy](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/gladguy/32/11145_2.png) [@gladguy](https://forum.dfinity.org/u/gladguy)
#### Post date: [June 1, 2021, 9:27am UTC](https://forum.dfinity.org/t/deploying-to-mainnet/1843/9 "2021-06-01T09:27:34Z")

</div>

Whats your error ? I deployed in [fleek.co](http://fleek.co)

Have a look but this simple static  
[https://xhboi-liaaa-aaaad-qac6q-cai.raw.ic0.app/index.html](https://xhboi-liaaa-aaaad-qac6q-cai.raw.ic0.app/index.html)

---

<div class="post-metadata">

### Author: ![cryptoschindler](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/cryptoschindler/32/26_2.png) [@cryptoschindler](https://forum.dfinity.org/u/cryptoschindler)
#### Post date: [June 2, 2021, 7:34am UTC](https://forum.dfinity.org/t/deploying-to-mainnet/1843/10 "2021-06-02T07:34:23Z")

</div>

You might ask them for support, they have a slack channel and are super helpful!

---

<div class="post-metadata">

### Author: ![Raviteja](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@Raviteja](https://forum.dfinity.org/u/Raviteja)
#### Post date: [June 9, 2021, 2:12pm UTC](https://forum.dfinity.org/t/deploying-to-mainnet/1843/11 "2021-06-09T14:12:53Z")

</div>

Is still the deployment to mainnet is not supported?  
I am still getting issue with dfx deploy --network=ic…  
@all  
@cryptoschindler

---

<div class="post-metadata">

### Author: ![Seb](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/seb/32/10340_2.png) [@Seb](https://forum.dfinity.org/u/Seb)
#### Post date: [June 9, 2021, 2:15pm UTC](https://forum.dfinity.org/t/deploying-to-mainnet/1843/12 "2021-06-09T14:15:10Z")

</div>

Still not… I’m sure it will come soon( matter of weeks I believe)

---

<div class="post-metadata">

### Author: ![Raviteja](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@Raviteja](https://forum.dfinity.org/u/Raviteja)
#### Post date: [June 9, 2021, 2:38pm UTC](https://forum.dfinity.org/t/deploying-to-mainnet/1843/13 "2021-06-09T14:38:14Z")

</div>

Okay, thanks for reply
