ScPrime Cloud Storage
  • Token Info
    • Tokenomics
    • Staking Information
    • Stake Tokens
    • SPF Information
      • Migrating SPF to DeFi on Solana
      • What are SPF?
      • What are SPF Part 2
  • Resources
    • At-a-Glance
    • Software
    • Project Timeline
    • Team
    • Telemetrics
    • Youtube
    • Whitepaper
    • Explorer
    • Consensus Mining (ASIC)
    • Logo and Style Guide
    • Source Code
  • Documentation
    • Xa-Miner
    • Wallet/DIY
  • Blog
  • Xa-Miner Storage Nodes
  • Menu Menu
Popular Search walletupgradeconsensus.dbtheupdate

DIY Getting Started

  • Storage Provider Overview
  • Provider Requirements/Configs
  • Port Forwarding Guide
  • Collateral
  • Licensing FAQ

Storage Provider Setup

  • Windows Command-Line Interface Guide (CLI)
  • Linux Setup
  • Synology/Docker Setup
  • Windows Supervisor-Lite Installation Guide
  • Linux Supervisor-Lite Installation Guide
  • Post-Announce Guide
  • Provider Settings
  • Windows Update Guide
  • Linux Update Guide – Basic
  • Linux Update Guide – Advanced
  • Linux Full License Software Installation Guide
  • Linux Full License Software Fresh Installation Guide
  • Uptime Robot Guide for ScPrime Storage Providers
  • Smart Contract Backups

Software/Wallets

  • Windows WebWallet Guide
  • Linux WebWallet Guide
  • Mac WebWallet Guide
  • Cold Wallet Generator Setup
  • Command-Line Interface (CLI)/Wallet Setup – Windows
  • Command-Line Interface (CLI)/Wallet Setup – Linux
  • Wallet Sweep
  • Transporter Guide

Tutorials

  • Linux Folder Provisioning Guide
  • Linux Metadata Guide
  • Linux Multiple Provider Guide
  • Windows to Linux Migration Guide
  • Windows UI to CLI Migration Guide

Information

  • Block 109,000 Fork Technical Issues
  • Grafana Provider Status Messages
  • Storage Provider Earnings
  • ScPrime Community FAQ
  • SCP Supply
  • SCP Supply Precision Change
  • May 15th Fork FAQ
View Categories

Windows UI to CLI Migration Guide

This guide will help DIY Windows users to migrate away from providing using the Windows UI app to using the CLI. It has been well documented and discussed on Discord that the Windows UI app has many failings when it comes to being used for a stable provider, namely it starts the renter module by default, there’s no way to change the ports if you have a 2nd provider, it has a memory leak, it often will show you offline when you are online to name a few. If starting spd from the CLI it can be used to configure folders and to view the wallet but now it’s better to use the WebWallet for that purpose.

This guide assumes you installed the UI using the default location and that the metadata is in the default location, these are as follows:

C:\Users\<USER>\AppData\Local\Programs\SiaPrime-UI\ – ScPrime UI

C:\Users\<USER>\AppData\Local\ScPrime\ – metadata folder

If you have installed the UI app to a different folder then you will need to find that and adjust these steps accordingly.

In the above we can see our host with a single storage folder configured for just under 600GB at C:\Data, the various Host Settings for Max Duration, Collateral per TB/month, Storage per TB/month, Download Per TB and Upload per TB.

Below we can see the Wallet page and any transactions in the wallet.

So to start to move away from using the UI, first check what version of the daemon you are running by clicking the About icon:

Here we are running 1.6.0 still. So unless you are running the latest version of the daemon already, head to the software page on the ScPrime website and download the Windows Command Line daemon which contains both spd.exe and spc.exe. Now close the UI app by right clicking on the P icon in the System Tray and select Quit. Then unzip the file you downloaded and copy the files within it to the resources/bin folder in the location you have the UI installed to, so for example in the default location it will be;

C:\Users\<USER>\AppData\Local\Programs\SiaPrime-UI\resources\bin

Overwrite the existing spd.exe and spc.exe files there (these will be the 1.6.0 version in our case).

Now to make life easier in the command prompt we are going to add the above folder into our PATH variable, this will allow us to run spd and spc from any location in a Command Prompt rather than having to change directory to that folder every time. To do this, type in ‘environment’ in to the Windows search bar and select “Edit the system environment variables”.

Then click on Environment Variables in the bottom right of the dialog box:

Then click on Path in the Variable column and click on Edit:

In the Edit environment variable dialog box, click on Browse, navigate to the C:\Users\<USER>\AppData\Local\Programs\SiaPrime-UI\resources\bin folder and click on OK.

You should now see that folder path as a new line along with any other paths which were already present.

Click on OK, OK and then OK. For the path environment variable to be loaded you need to reboot Windows at this point for it to take effect.

Once Windows has rebooted, open a Command Prompt and now rather than opening the UI to start up spd, you can just type:

spd -M gctwh

Notice how the renter module is not loaded, without the “-M gctwh” flag then all 6 modules would have been loaded and as a provider you have no need to run the renter module. Once you see the API is now available message, open another Command Prompt, do NOT close the one where spd was started as that always needs to be running for spd to be running, just minimize it.

In the 2nd command prompt type spc to check on the blockchain sync and out wallet:

The Consensus should show Synced: Yes, if not but the Height is increasing each time you run the spc command then the blockchain is still in the progress of syncing which is fine, just let it complete. Notice above our wallet is showing as locked so we need to unlock it, this is the same as when you load the UI it prompts you to enter the wallet seed phrase or password. In the CLI you simply type:

spc wallet unlock

Then enter either your seed or password the same as you did in the UI.

Note if successful you won’t see any message. Now type:

spc host

This will check on the host status:

We can see here our Provider ID which will be the same as it was before when using the UI, our announced IP address and port number, some of the provider settings like Storage Price and Max Duration, exactly the same as was set in the UI and our storage folder. What you should see once your provider is fully working is the Connectability Status as “Host appears to be working” (this can take a few mins after starting up).

And now you are running with the CLI. To understand the other CLI commands available you can either use the context help (add -h to the end of any command to see what the next options are and a brief description, for example type ‘spc -h’ to see what the next commands like wallet, host, etc are) or refer to the Windows CLI guide here. It’s also worth referring to that guide to setup the auto startup script so that spd always runs on Windows bootup and then you won’t need the command prompt open with spd running all the time, it will simply run in the background.

 

What are your Feelings

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Table of Contents
  • Windows UI to CLI Migration Guide

Developer

About
Logos
Contact

Resource

Software
Explorer
Docs/Guides
Whitepaper
Open Source

Legal

Privacy Policy
Licensed Provider Terms of Service

© Copyright - SCP, Corp. - Privacy Policy
Scroll to top Scroll to top Scroll to top

This site uses cookies. By continuing to browse the site, you are agreeing to our use of cookies.

OKLearn more

Cookie and Privacy Settings



How we use cookies

We may request cookies to be set on your device. We use cookies to let us know when you visit our websites, how you interact with us, to enrich your user experience, and to customize your relationship with our website.

Click on the different category headings to find out more. You can also change some of your preferences. Note that blocking some types of cookies may impact your experience on our websites and the services we are able to offer.

Essential Website Cookies

These cookies are strictly necessary to provide you with services available through our website and to use some of its features.

Because these cookies are strictly necessary to deliver the website, refusing them will have impact how our site functions. You always can block or delete cookies by changing your browser settings and force blocking all cookies on this website. But this will always prompt you to accept/refuse cookies when revisiting our site.

We fully respect if you want to refuse cookies but to avoid asking you again and again kindly allow us to store a cookie for that. You are free to opt out any time or opt in for other cookies to get a better experience. If you refuse cookies we will remove all set cookies in our domain.

We provide you with a list of stored cookies on your computer in our domain so you can check what we stored. Due to security reasons we are not able to show or modify cookies from other domains. You can check these in your browser security settings.

Google Analytics Cookies

These cookies collect information that is used either in aggregate form to help us understand how our website is being used or how effective our marketing campaigns are, or to help us customize our website and application for you in order to enhance your experience.

If you do not want that we track your visit to our site you can disable tracking in your browser here:

Other external services

We also use different external services like Google Webfonts, Google Maps, and external Video providers. Since these providers may collect personal data like your IP address we allow you to block them here. Please be aware that this might heavily reduce the functionality and appearance of our site. Changes will take effect once you reload the page.

Google Webfont Settings:

Google Map Settings:

Google reCaptcha Settings:

Vimeo and Youtube video embeds:

Other cookies

The following cookies are also needed - You can choose if you want to allow them:

Privacy Policy

You can read about our cookies and privacy settings in detail on our Privacy Policy Page.

Privacy
Accept settingsHide notification only