Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usability of the NEAR CLI in scripting? #437

Open
artob opened this issue Jan 18, 2025 · 0 comments
Open

Usability of the NEAR CLI in scripting? #437

artob opened this issue Jan 18, 2025 · 0 comments

Comments

@artob
Copy link

artob commented Jan 18, 2025

❓ What is the plan to make the CLI usable for scripting? Because as it stands currently, that seems rather difficult:

Invoking: near account view-account-summary near network-config testnet now

Image

Invoking: near account view-account-summary notfound network-config testnet now

Image

The specific difficulties encountered here are:

  1. The output structure (on stdout) is extremely verbose, clearly meant for humans only, and unstable over time
  2. There is spurious extra output being emitted (onto stderr), and there appear to be no CLI options to disable:
    • The "Here is your console command if you need to script it or re-run" tutorial output
    • The "Receiving an inquiry about your account" progress output
  3. There appears to be no CLI option (such as --quiet or --silent) for silencing all spurious output
  4. There appears to be no CLI option (such as --output json) for printing machine-readable output
  5. The error output (all on stderr) has intermixed into it progress output and tutorial output, and is also overly verbose
  6. The exit status in case of any error is an undifferentiated exit code 1, instead of something useful such as sysexits(3) exit codes
@github-project-automation github-project-automation bot moved this to NEW❗ in DevTools Jan 18, 2025
@artob artob changed the title Usage of the NEAR CLI in scripting? Usability of the NEAR CLI in scripting? Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: NEW❗
Development

No branches or pull requests

1 participant