Skip to content
Permalink
Browse files

Update README

  • Loading branch information...
Raggaer committed Jun 3, 2019
1 parent 1a460a5 commit 7ac937d2033ec827c99b71eba14b1172b7e343c3
Showing with 4 additions and 17 deletions.
  1. +4 −17 README.md
@@ -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.
@@ -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

@@ -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.

```

0 comments on commit 7ac937d

Please sign in to comment.
You can’t perform that action at this time.