Skip to main content

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

Project description

1Password Tools

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

Usage: op-tools [OPTIONS] COMMAND [ARGS]...

Options:
  -v, --verbosity LVL  Either CRITICAL, ERROR, WARNING, INFO or DEBUG
  --help               Show this message and exit.

Commands:
  new-database-account  Create a new Database item in 1Password with the...
  new-server-account    Create a new Server item in 1Password with the
                        given...
  new-ssh-key           Generates a new SSH key and store it in 1Password.
  new-website-account   Create a new Login item in 1Password with the given...
  ssh-add               Loads a SSH key stored in 1Password by searching...

new-database-account

Usage: op-tools new-database-account [OPTIONS]

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

Options:
  --return-field TEXT        Field value to return
  --account TEXT             Account to use (shorthand)
  --vault TEXT               Vault uuid where to store the information
  --title TEXT               Name of the 1Password item
  --notes TEXT               Note
  --password-length INTEGER  Autogenerated password length, default 25
  --password TEXT            Password to use, default autogenerated
  --database TEXT            Database name  [required]
  --hostname TEXT            Host where the account is created  [required]
  --port TEXT                Database port
  --username TEXT            Account username  [required]

new-server-account

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

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

Options:
  --return-field TEXT        Field value to return
  --account TEXT             Account to use (shorthand)
  --vault TEXT               Vault uuid where to store the information
  --title TEXT               Name of the 1Password item
  --notes TEXT               Note
  --password-length INTEGER  Autogenerated password length, default 25
  --password TEXT            Password to use, default autogenerated
  --hostname TEXT            Host where the account is created  [required]
  --username TEXT            Account username  [required]
  --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:
  --return-field TEXT          Field value to return
  --account TEXT               Account to use (shorthand)
  --vault TEXT                 Vault uuid where to store the information
  --title TEXT                 Name of the 1Password item
  --notes TEXT                 Note
  --from-user TEXT             User who is responsible from initiating the
                               connection, default current user.
  --from-host TEXT             Host from where the SSH connection starts,
                               default current hostname.
  --to-user TEXT               Remote user, prompted if empty.  [required]
  --to-host TEXT               Remote server hostname, 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
  --help                       Show this message and exit.

new-website-account

Usage: op-tools new-website-account [OPTIONS]

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

Options:
  --return-field TEXT        Field value to return
  --account TEXT             Account to use (shorthand)
  --vault TEXT               Vault uuid where to store the information
  --title TEXT               Name of the 1Password item
  --notes TEXT               Note
  --password-length INTEGER  Autogenerated password length, default 25
  --password TEXT            Password to use, default autogenerated
  --url TEXT                 URL of the website where the account is created
                             [required]
  --username TEXT            Account username  [required]
  --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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

onepassword tools-0.8.1.linux-x86_64.tar.gz (31.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

onepassword_tools-0.8.1-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

Details for the file onepassword tools-0.8.1.linux-x86_64.tar.gz.

File metadata

  • Download URL: onepassword tools-0.8.1.linux-x86_64.tar.gz
  • Upload date:
  • Size: 31.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for onepassword tools-0.8.1.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 f622c27e810b1225739575faad6fce32e82848886b2ca398946259642af8e0c0
MD5 6f87dbec72bd2ce5cc65ce02e616d2f6
BLAKE2b-256 01541a3d262d6bbf302b28e4ae4c4293c6f22ecd238be7280024847deec0b33b

See more details on using hashes here.

File details

Details for the file onepassword_tools-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: onepassword_tools-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 34.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for onepassword_tools-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 170b3f6e783d5d4c9440651a1fb58bc5156b6215119c92f4f25cf4a256999c7b
MD5 a1308ca90939e376fba6f37f56a5fb7e
BLAKE2b-256 307d20759ea1a933b4a99bcd8e4265e42d2851e2935620872c3413a1cac18f73

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page