Metadata-Version: 2.1
Name: onepassword-tools
Version: 0.0.8
Summary: This is a collection of 1Password related CLI tools and helpers
Home-page: https://github.com/mickaelperrin/onepassword-tools
Author: Mickaël Perrin
Author-email: dev@mickaelperrin.fr
License: GPLv3
Keywords: onepassword 1password cli password secrets tools
Platform: UNKNOWN
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Information Technology
Classifier: Natural Language :: French
Classifier: Topic :: Security
Classifier: Topic :: Security :: Cryptography
Classifier: Topic :: Utilities
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.7.0
Description-Content-Type: text/markdown
Requires-Dist: onepassword-local-search (>=0.14.0)
Requires-Dist: click (==7.0)
Requires-Dist: click-log (==0.3.2)
Requires-Dist: PyYAML (==5.1)
Requires-Dist: pexpect (==4.7.0)
Requires-Dist: plumbum (==1.6.7)


# 1Password Tools

> This is a collection of 1Password related CLI tools and helpers.

## new-server-account

```
Usage: op-tools new-server-account [OPTIONS]

  Create a new Server item in 1Password with the given credentials.

Options:
  --host TEXT                Host where the account is created  [required]
  --username TEXT            Account username  [required]
  --password TEXT            Password to use, default autogenerated
  --password-length INTEGER  Autogenerated password length, default 25
  --vault TEXT               Vault uuid where to store the information
  --help                     Show this message and exit.
```

## new ssh-key

```
Usage: op-tools new-ssh-key [OPTIONS]

  Generates a new SSH key and store it in 1Password. Additional information
  are stored also to generate SSH config file when imported.

Options:
  --from-host TEXT             Host from where the SSH connection starts,
                               default current hostname.
  --from-user TEXT             User who is responsible from initiating the
                               connection, default current user.
  --to-host TEXT               Remote server hostname, prompted if empty.
                               [required]
  --to-user TEXT               Remote user, prompted if empty.  [required]
  --to-host-abbreviated TEXT   Alias of the remote server hostname used to
                               initialize connection.
  --no-passphrase TEXT         Create ssh key without passphrase.
  --passphrase TEXT            Use this passphrase instead of an autogenerated
                               one.
  --passphrase-length INTEGER  Length of the autogenerated passphrase.
  --port INTEGER               Remote port
  --vault TEXT                 1Password vault uuid where to store the SSH key
  --help                       Show this message and exit.

```

## ssh-add

```
Usage: op-tools ssh-add [OPTIONS] [SEARCH]

  Loads a SSH key stored in 1Password by searching [SEARCH] in uuid or in
  item title, and creates a ssh configuration file of the following format:

  Match originalhost <Hostname> user <Remote user>
    IdentitiesOnly yes
    IdentityFile <path to key file>
    Hostname <Hostname>
    User <Remote user>
    Port <Port>

Options:
  -D                    cleanup ssh agent and remove all 1Password managed
                        keys and configuration
  --no-ssh-config TEXT  Do not create ssh config file
  --help                Show this message and exit.

```



