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

solana-keygen flag options #5163

Open
babyfist opened this issue Mar 6, 2025 · 0 comments
Open

solana-keygen flag options #5163

babyfist opened this issue Mar 6, 2025 · 0 comments

Comments

@babyfist
Copy link

babyfist commented Mar 6, 2025

Problem

flag --outfile doesnt work with "solana-keygen grind"

solana-keygen grind --outfile example.json gives error

error: Found argument '--outfile' which wasn't expected, or isn't valid in this context

	Did you mean '--no-outfile'?

	If you tried to supply `--outfile` as a value rather than a flag, use `-- --outfile`

When using "solana-keygen grind" there is no option to assign an output file. But one for --no-output file.
It seems the rust code allows for an output file but is not implemented as a flag in the cli for the grind command.
This feature works fine using the "new" command just not for "grind".

I am working on some bash scripting to automate and create config files for tokens/keys/ and other features.

Proposed Solution

line 123 - 135 of keygen.rs seems to address the mechanics of it.
line 512 seems to implement the function for the "new" command.
line 547 seems to implement it for key recovery.

Can we add this flag to grind also.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant