Skip to main content
January 13, 2022
Question

[16,17,20,37,38] Support for both versions in scripts

  • January 13, 2022
  • 12 replies
  • 243 views

Hi,

Initial impression of the new version is great! The UI with grouping by category makes sense.
And I can't wait for the TouchID support. :)

Unfortunately the changed UI also breaks all existing scripts and https://direnv.net configurations.

Maybe a note to https://developer.1password.com/docs/cli/upgrade/ about supporting both versions in shell scripts?

With Bash e.g.:

```bash
OP_VERSION="$(op --version)"

if [[ "$OP_VERSION" == 1.* ]]; then
op get item ...
else
op item get ...
fi
```

Or this should be Posix compliant:

```sh
OP_VERSION="$(op --version)"

case "$OP_VERSION" in
1.*) op get item ...;;
*) op read op://...;;
esac
```

Cheers,
- Teemu


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: macOS 12.1

12 replies

1Password Employee
February 4, 2022

💙

Sadia_A1P
1Password Employee
June 16, 2022

Hi @r00t ,

I'm Sadia, a Product Manager at 1Password, and have some news that may be interesting to you. I am looking for some developers and administrators that would be interested in chatting with me about a new feature our team has been working on: Service Accounts. Earlier this year, we introduced the CLI 2.0, where users can use “run” and “inject” commands to substitute secret references for secrets stored in 1Password vaults. With our new Service Account capabilities, organizations can use a separate non-user account to control and manage access to secrets without deploying additional services like Connect.

We are currently building out service accounts and want to understand your pain-points and experiences with secrets management, and gather some feedback, so we could deliver the best product for our customers.

If you are interested, please feel free to reach out to me at sadia.azmal@agilebits.com or sign-up for a 30 minute slot on Calendly. I look forward to hearing from you :)