StarkFiStarkFi

CLI Overview

All StarkFi CLI commands at a glance — installation, authentication, and usage

Installation

No global install required — run everything via npx:

npx starkfi@latest <command> [arguments] [flags]

Or install globally:

npm install -g starkfi@latest
starkfi <command> [arguments] [flags]

Requirements

  • Node.js v18 or later
  • StarkFi Auth Server running (required for authentication and transaction signing)

Authentication (Required First)

Before using any command, authenticate with your email:

# Step 1: Request OTP
starkfi auth login user@example.com

# Step 2: Verify OTP (check your email)
starkfi auth verify user@example.com 123456

# Check session status
starkfi status

# Logout
starkfi auth logout

Important: Authentication is required before executing any wallet, trading, staking, or lending commands. The session persists across restarts.

Command Groups

GroupCommandsDescription
Authenticationauth login, auth verify, auth logoutEmail OTP authentication
Walletaddress, balance, send, deployWallet management
Tradingtrade, multi-swapToken swaps via Fibrous
Stakingstake, unstake, rewards, pools, validators, stake-statusStaking operations
Lendinglend-pools, lend-supply, lend-withdraw, lend-borrow, lend-repay, lend-close, lend-statusVesu V2 lending
PortfolioportfolioFull DeFi dashboard
OperationsbatchAtomic multicall
ConfigurationconfigRPC, network, gas settings
Systemstatus, tx-status, mcp-startStatus checks, MCP server

Global Flags

Available on all commands:

FlagDescription
--jsonOutput as JSON instead of formatted table
--simulateDry-run — estimate fees without executing (transaction commands only)
--helpShow help for any command

Quick Start

# 1. Authenticate
starkfi auth login user@example.com
starkfi auth verify user@example.com 123456

# 2. Check your wallet
starkfi balance
starkfi address

# 3. Swap tokens
starkfi trade 0.1 ETH USDC

# 4. Check transaction
starkfi tx-status 0x123abc...

# 5. View full portfolio
starkfi portfolio

Simulation

Every transaction command supports --simulate for dry-run execution:

starkfi trade 100 USDC ETH --simulate
starkfi send 10 STRK 0x04a3... --simulate
starkfi batch --swap "0.1 ETH USDC" --stake "100 STRK karnot" --simulate

Simulation returns estimated fees, call count, and validates the transaction without spending gas.

Edit on GitHub

Last updated on

On this page