Skip to content

Conversation

@fnando
Copy link
Member

@fnando fnando commented Aug 6, 2025

What

$ stellar doctor
✅ You are using the latest version of Stellar CLI: 23.0.0
ℹ️ Rust version: 1.85.0
✅ Rust target `wasm32v1-none` is installed
⚙️ Config directory: /Users/fnando/.config/stellar
ℹ️ XDR version: 4b7a2ef7931ab2ca2499be68d849f38190b443ca
🌎 Default network "local" (http://localhost:8000/rpc)
   protocol 23
   rpc 23.0.0-rc.2
🌎 Default network "futurenet" (https://rpc-futurenet.stellar.org:443)
   protocol 23
   rpc 23.0.0~rc3-33982801b3d320ef9aac958dff97348159b0e989
🌎 Default network "testnet" (https://soroban-testnet.stellar.org)
   protocol 23
   rpc 23.0.0~rc2-f384ceb94914d80eed0f59524de7096c726b9054
🌎 Network "mainnet" (https://mainnet.sorobanrpc.com)
   protocol 22
   rpc 22.1.5-d3fceb70d3b1fd585a5076aef1beabc408aa6142

Why

To help with troubleshooting.

Known limitations

N/A

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new stellar doctor command to help users diagnose and troubleshoot CLI and network connectivity issues. The command displays version information, checks for available updates, and tests connectivity to configured networks.

  • Refactors upgrade checking logic to return structured data instead of directly printing
  • Adds a new doctor command module with network connectivity testing
  • Integrates the doctor command into the CLI's command structure

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
cmd/soroban-cli/src/upgrade_check.rs Refactors upgrade checking to return structured data and adds a public has_available_upgrade function
cmd/soroban-cli/src/commands/mod.rs Integrates the new doctor command into the CLI command structure
cmd/soroban-cli/src/commands/doctor.rs Implements the doctor command with version checking and network connectivity testing
FULL_HELP_DOCS.md Updates documentation to include the new doctor command

@fnando fnando enabled auto-merge (squash) August 8, 2025 12:38
@fnando fnando merged commit 54248a9 into main Aug 8, 2025
33 of 34 checks passed
@fnando fnando deleted the doctor branch August 8, 2025 12:55
@github-project-automation github-project-automation bot moved this from Backlog (Not Ready) to Done in DevX Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants