# Deploying SUI smart contract on devnet **Published by:** [Vitamine](https://paragraph.com/@vitamine777/) **Published on:** 2023-01-25 **URL:** https://paragraph.com/@vitamine777/deploying-sui-smart-contract-on-devnet ## Content I will do all the necessary steps on Ubuntu. We have two options: easy (my guide) and not so easy (server rental). We will go the simple way. For this one, you must have a Github account. Create a new repository and name it "Hello SUI", for example.After creating the repository, go to this site https://www.gitpod.io/ and log in with our Github profile. Next, create a new workspace and select our created repository.The terminal opens (the Get started window at the top can be closed).We need to install all the necessary components to deploy a smart contract. Now paste the commands one by one into the terminal and click Enter (to paste the copied text into the terminal right-click).sudo apt-get update sudo apt install curl -y sudo apt-get install git-all -y sudo apt install cmake -y dpkg -L cmake sudo apt-get install libssl-dev sudo apt-get install libclang-dev -y curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shType 1 and press Entercargo install --locked --git https://github.com/MystenLabs/sui.git --branch devnet suiThis part takes a very long time to install. Just waiting. Continue.echo $PATH cargo install --git https://github.com/move-language/move move-analyzer --features "address20" sui clientType next: 1) y and press Enter, 2) then just press Enter, 3) then type 0 and press EnterContinue.sui client new-address ed25519A wallet was created. Save the seed phrase and address to a text file. We need to request test tokens to this wallet. There are several waysRequest tokens in SUI discord to our address.Transfer some test tokens from another wallet.Import the seed phrase into one of the SUI wallets (SUI wallet, Suiet etc) and request tokens in it. Continue.sui client switch --address [ADDRESS]replace [ADDRESS] with the address obtained from the previous commandContinue.sui move new forgeCreated a forge folder with an empty source folder and a Move.toml file Go to the source folder and create the file forge.moveGo here https://github.com/Salvatorenodes/Hello-SUI/blob/main/example.move copy the code and paste the code into the forge.move fileContinue.cd forge sui client publish --gas-budget 1000Congratulations, you have deployed a smart contract! Save everything that goes into Created ojects. Go to Sui explorer and search for your contract by typing the ID from Created objects. https://explorer.sui.io/ ## Publication Information - [Vitamine](https://paragraph.com/@vitamine777/): Publication homepage - [All Posts](https://paragraph.com/@vitamine777/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@vitamine777): Subscribe to updates - [Twitter](https://twitter.com/nlabplay): Follow on Twitter