-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Support CLI command for placeholder replacement in a file #11657
Comments
Use |
Using |
You'd have to help me decode that blog more. How exactly do they provide the credentials (or fill in) directly to the running app and not writing it to the file? Also our general position for CLI is to focus on enabling access to Database data and NOT integrate with anything. Wrapper scripts are the preferred approach for us. |
They write to the files (or alternatively populate environment variables): https://developer.1password.com/docs/cli/reference/commands/run/ A wrapper script would need to do the same but I think for those common use cases there should be no need for those. |
This is a similar request: #4847 |
Have you searched for an existing feature request?
Brief Summary
Similar to what https://developer.1password.com/docs/cli/reference/commands/inject offers there should be a dedicated CLI command which supports placeholder replacement in a file/stdin with output written to file/stdout. Currently the only way to retrieve secrets is via the
clip
option (https://github.com/keepassxreboot/keepassxc/blob/develop/docs/man/keepassxc-cli.1.adoc#commands) which always requires some glue code to use it with arbitrary config filesExample
This would be useful e.g. for https://docs.npmjs.com/cli/v9/configuring-npm/npmrc#auth-related-configuration but also a lot of other applications still expect secrets only via config files.
Context
No response
The text was updated successfully, but these errors were encountered: