Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Raggaer committed Jun 3, 2019
1 parent 1a460a5 commit 7ac937d
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Basic wrapper for the 1Password `op` command line application, mostly for items.
Basically its just a simple wrapper to do `op` actions (view, edit, delete an item, ...)

You can use the flag `-h` to get more help about all the possible options.
You can use the flag `-h` (or `--help`) to get more help about all the possible options.

- [x] View an item.
- [x] View a list of users.
Expand All @@ -15,21 +15,8 @@ This application does not handle authentication, you should use `op signin` befo
Its recommended to signin everytime you want to retrieve a password. You can do the `eval ...` trick and keep the terminal session ope,
that way you can use `opcli` before your session ends.

This tool is meant to be used on your terminal, maybe creating a helper function to quickly access your secure passwords:

```bash
# Function to retrieve 1Password items using opcli
function pwget {
if [ -n "$1" ]; then
if [ -z "${OP_SESSION_my}" ]; then
eval $(op signin)
fi
opcli -c "get" -s "item" -i "$1" --pw
else
echo "Provide an item to retrieve the password!"
fi
}
```
This tool is meant to be used on your terminal,
maybe creating a helper function to quickly access your secure passwords (checkout **opcli_helper.sh**)

## Get an item

Expand All @@ -56,7 +43,7 @@ In order to search for an item (for example you dont remember the exact name, or
you need to use the following flags:

- `-c`: Specify the command we want to run, in this case `list`.
- `-s`: The type of object we want to retrieve, in this case `item`.
- `-s`: The type of object we want to retrieve, in this case `items`.
- `--search` Substring of the item name or URL you want to look for.

```
Expand Down

0 comments on commit 7ac937d

Please sign in to comment.