Closed
Description
❓ 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

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

The specific difficulties encountered here are:
- The output structure (on stdout) is extremely verbose, clearly meant for humans only, and unstable over time
- 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
- There appears to be no CLI option (such as
--quiet
or--silent
) for silencing all spurious output - There appears to be no CLI option (such as
--output json
) for printing machine-readable output - The error output (all on stderr) has intermixed into it progress output and tutorial output, and is also overly verbose
- The exit status in case of any error is an undifferentiated exit code 1, instead of something useful such as sysexits(3) exit codes