-
-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document delete, env, find and others (#1533)
RELEASE_NOTES=n/a Signed-off-by: Dominik Schulz <[email protected]>
- Loading branch information
1 parent
9d8313a
commit dc65f6e
Showing
9 changed files
with
131 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# `delete` command | ||
|
||
The `delete` command is used to remove a single secret or a whole subtree. | ||
|
||
Note: Recursive operations crossing mount points are intentionally not supported. | ||
|
||
## Synopsis | ||
|
||
``` | ||
$ gopass delete entry | ||
$ gopass rm -r path/to/folder | ||
$ gopass rm -f entry | ||
$ gopass delete entry key | ||
``` | ||
|
||
## Modes of operation | ||
|
||
* Delete a single secret | ||
* Delete a single key from an existing secret | ||
* Delete a directoy of secrets | ||
|
||
## Flags | ||
|
||
Flag | Aliases | Description | ||
---- | ------- | ----------- | ||
`--recursive` | `-r` | Recursively delete files and folders. | ||
`--force` | `-f` | Do not ask for confirmation. | ||
|
||
## Details | ||
|
||
* Removing a single key will need to decrypt the secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# `env` command | ||
|
||
The `env` command runs a binary as a subprocess with a pre-populated environment. | ||
The environment of the subprocess is populated with a set of environment variables corresponding | ||
to the secret subtree specified on the command line. | ||
|
||
## Synopsis | ||
|
||
``` | ||
$ gopass env entry env | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# `find` command | ||
|
||
The `find` command will attempt to do a simple substring match on the names of all secrets. | ||
If there is a single match it will directly invoke `show` and display the result. | ||
If there are multiple matches a selection will be shown. | ||
|
||
Note: The find command will not fall back to a fuzzy search. | ||
|
||
## Synopsis | ||
|
||
``` | ||
$ gopass find entry | ||
$ gopass find -f entry | ||
$ gopass find -c entry | ||
``` | ||
|
||
## Flags | ||
|
||
Flag | Aliases | Description | ||
---- | ------- | ----------- | ||
`--clip` | `-c` | Copy the password into the clipboard. | ||
`--unsafe` | `-u` | Display any unsafe content, even if `safecontent` is enabled. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# `move` command | ||
|
||
Note: The implementations for `copy` and `move` are exactly the same. The only difference is that `move` will remove the source after a successful copy. | ||
|
||
The `move` command works like the Unix `mv` or `rsync` binaries. It allows moving either single entries or whole folders around. Moving across mounts is supported. | ||
|
||
If the source is a directory, the source directory is re-created at the destination if no trailing slash is found. Otherwise the contained secrets are placed into the destination directory (similar to what `rsync` does). | ||
|
||
Please note that `move` will always decrypt the source and re-encrypt at the destination. | ||
|
||
Moving a secret onto itself is a no-op. | ||
|
||
## Synopsis | ||
|
||
``` | ||
# Overwrite new/leaf | ||
$ gopass move path/to/leaf new/leaf | ||
# Move the content of path/to/somedir to new/dir/somedir | ||
$ gopass move path/to/somedirdir new/dir | ||
# Does nothing | ||
$ gopass move entry entry | ||
``` | ||
|
||
## Modes of operation | ||
|
||
* Move a single secret from source to destination | ||
* Move a folder of secrets, possibly with sub folders, from source to destination | ||
|
||
## Flags | ||
|
||
Flag | Aliases | Description | ||
---- | ------- | ----------- | ||
`--force` | `-f` | Overwrite existing destination without asking. | ||
|
||
## Details | ||
|
||
* To simplify the implementation and support multiple backends a `copy` or `move` operation will always decrypt and re-encrypt all affected secrets. Even if moving encrypted files around might be possible. | ||
* You can move a secret to another secret, i.e. overwrite the destination. But `gopass` won't let you move a directory over a file. In that case you have to delete the destination first. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# `sync` command | ||
|
||
The `sync` command is the preferred way to manually synchronize changes between | ||
your local stores and any configured remotes. | ||
|
||
You can always `cd` into a git-based store and manually perform git operations, | ||
but executing these through `gopass git` is deprecated and might be removed | ||
at soe point. | ||
|
||
Note: `gopass sync` only supports one remote per store. | ||
|
||
## Flags | ||
|
||
Flag | Description | ||
---- | ----------- | ||
`--store` | Only sync a specific sub store | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters