mirror of
https://github.com/gopasspw/gopass.git
synced 2025-12-08 19:24:54 +00:00
This commit adds yet another config handler for gopass. It is based on the format used by git itself. This has the potential to address a lot of long standing issues, but it also causes a lot of changes to how we handle configuration, so bugs are inevitable. Fixes #1567 Fixes #1764 Fixes #1819 Fixes #1878 Fixes #2387 Fixes #2418 RELEASE_NOTES=[BREAKING] New config format based on git config. Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> Co-authored-by: Yolan Romailler <AnomalRoil@users.noreply.github.com> address comments Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
1.4 KiB
1.4 KiB
create command
The create command creates a new secret using a set of built-in or custom templates.
It implements a wizard that guides inexperienced users through the secret creating.
The main design goal of this command was to guide users through the creation of a secret and asking for the necessary information to create a reasonable secret location.
Synopsis
gopass create
gopass create --store=foo
Modes of operation
- Create a new secret using a wizard
Templates
gopass create will look for files ending in .yml in the folder .gopass/create inside
the selected store (by default the root store).
To add new templates to the wizard add templates to this folder.
Example:
$ cat $(gopass config mounts.path)/.gopass/create/aws.yml
---
priority: 5
name: "AWS"
prefix: "aws"
name_from:
- "org"
- "user"
welcome: "🧪 Creating AWS credentials"
attributes:
- name: "org"
type: "string"
prompt: "Organization"
min: 1
- name: "user"
type: "string"
prompt: "User"
min: 1
- name: "password"
type: "password"
prompt: "Password"
- name: "comment"
type: "string"
prompt: "Comments"
Flags
| Flag | Aliases | Description |
|---|---|---|
--store |
-s |
Select the store to use. Will be used to look up user templates. |
--force |
-f |
For overwriting existing entries. |
--print |
-p |
Print the password to STDOUT. |