Saga Docs
Back to Saga
  • Introduction
    • Pegasus Overview
    • Saga Overview
      • Saga Topology
      • Saga Chainlets
      • Saga Shared Security
      • Validator Orchestration Tools
      • Token Mechanism and Economics
      • Validator Selection
      • Partnership Models
      • Paying for Chainlets
      • Staking on Saga
        • Staking your Saga on Keplr
        • Auto-compound your staking rewards with Restake.app
  • Saga Web App
    • Getting Access
    • Quickstart Guide
      • Testnet Quickstart Guide
      • Mainnet Quickstart Guide
    • Account Management
      • Requesting Tokens from Saga Faucet
      • Deposit Funds into Escrow
      • Withdraw Funds from Escrow
      • View Escrow Account Information
    • Working with Chainlet
      • Launch your Chainlet on Testnet
      • Launch your Chainlet on Mainnet
      • Get Chainlet Information
      • View Listing of Chainlets Launched
      • Chainlet APIs & BlockExplorer
      • Configuring Metamask Network
      • Chainlet Billing
      • Restarting a Stopped Chainlet
  • Sagacli
    • Getting Access
    • Quickstart Guide
      • Testnet Quickstart Guide
      • Mainnet Quickstart Guide
    • Download Saga CLI
    • Install Saga CLI
    • Configure Saga CLI
    • Key Management
      • Adding Keys
      • Listing Keys
      • Display Key Details
      • Deleting Keys
      • Renaming Keys
    • Account Management
      • Checking Account Balances
      • Requesting Tokens from Saga Faucet
      • Deposit Funds into Escrow
      • Withdraw Funds from Escrow
      • View Escrow Account Information
    • Working with Chainlet
      • View Listing of Chainlet Types
      • Launch your Chainlet on Testnet
      • Launch your Chainlet on Mainnet
      • Get Chainlet Information
      • View Listing of Chainlets Launched
      • Chainlet APIs & BlockExplorer
      • Configuring Metamask Network
      • Update Chainlet Version
      • Chainlet Billing
      • Restarting a Stopped Chainlet
    • Configuring sagacli - A Deep Dive
    • Searching for Transactions
  • Get Help & Support
Powered by GitBook
On this page
  • Configure sagacli for Saga Mainnet
  • Configure sagacli for Saga Testnet
  • Next Steps
  1. Sagacli

Configure Saga CLI

Configure sagacli for Saga Mainnet

The sagacli executable communicates with our Pegasus server applications securely over HTTPS. Before you can start using sagacli, you must configure it talk to the Saga Platform Chain as well as the Saga Controller.

If you've used sagacli in the past on Cassiopeia, we recommend carefully verifying that all of the config parameters below are set correctly otherwise your CLI might fail.

Execute the following commands provided below to configure sagacli:

sagacli config network-rpc https://spc.sagarpc.io
sagacli config controller https://controller.sagarpc.io
sagacli config platform-chain-id spc-1
sagacli config denom upsaga
sagacli config broadcast-mode sync
sagacli config faucet https://spc-faucet.sagarpc.io

Ok, now that we have configured the endpoints, it's time to check if they actually work. To do that, run the following command:

sagacli status

You should see the following output:

Saga Platform Chain     Controller
-------------------     ----------
Online                  Online                   

IMPORTANT: If either of the two applications indicate a value of false, the configuration was not successful. Check your local network connection to ensure that you are connected to the internet, and that your firewall application isn't blocking outgoing traffic over HTTPS.

Configure sagacli for Saga Testnet

The sagacli executable communicates with our Pegasus server applications securely over HTTPS. Before you can start using sagacli, you must configure it talk to the Saga Platform Chain as well as the Saga Controller.

If you've used sagacli in the past on Cassiopeia, we recommend carefully verifying that all of the config parameters below are set correctly otherwise your CLI might fail.

Execute the following commands provided below to configure sagacli:

sagacli config network-rpc https://spc.testnet.sagarpc.io
sagacli config controller https://controller.testnet.sagarpc.io
sagacli config platform-chain-id spc-testnet-2
sagacli config denom upsaga
sagacli config broadcast-mode sync
sagacli config faucet https://spc-faucet.testnet.sagarpc.io

Ok, now that we have configured the endpoints, it's time to check if they actually work. To do that, run the following command:

sagacli status

You should see the following output:

Saga Platform Chain     Controller
-------------------     ----------
Online                  Online                   

IMPORTANT: If either of the two applications indicate a value of false, the configuration was not successful. Check your local network connection to ensure that you are connected to the internet, and that your firewall application isn't blocking outgoing traffic over HTTPS.

Next Steps

To launch your very first chainlet, there are a few easy steps you will need to go through. Broadly:

You can access the help for any of the commands by running sagacli [command?] [subcommand?] --help.

PreviousInstall Saga CLINextKey Management

Last updated 1 year ago

or , in sagacli and provide that to your Saga contact person

Your sagacli account will receive airdropped tokens. If you do not have tokens, please request them via the page

and run commands against it

Getting Access
Launch your chainlet
Create a key,
import your existing key