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.

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.

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.2.1.linux-x86_64.tar.gz (28.4 kB view hashes)

Uploaded Source

Built Distribution

onepassword_tools-0.2.1-py3-none-any.whl (31.5 kB view hashes)

Uploaded Python 3

Supported by

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