How to disable installation prompt?

Options
philmcole
philmcole
Community Member
edited July 2023 in CLI

Installing 1Password CLI on a Debian server with apt results in the following prompt.

No accounts configured for use with 1Password CLI.

You can either:
 - Connect 1Password CLI with the 1Password app to use the accounts you've added to the app and sign in using the 1Password app. Learn more: https://developer.1password.com/docs/cli/get-started/#sign-in for details.
 - Add an account manually with 'op account add' and sign in by entering your password on the command line. See 'op account add --help' for details.
 - Use 1Password CLI with a Connect instance by setting the 'OP_CONNECT_HOST' and 'OP_CONNECT_TOKEN' environment variables to your Connect host and token, respectively. Learn more: https://developer.1password.com/docs/connect
 - Authenticate using a 1Password service account by setting the 'OP_SERVICE_ACCOUNT_TOKEN' environment variable to your service account token. Learn more: https://developer.1password.com/docs/service-accounts/

Do you want to add an account manually now? [Y/n]

If this is run by an automated setup script on a remote server, this blocks the whole installation.

I tried setting set DEBIAN_FRONTEND=noninteractive but this didn't help.

Is there another way to turn this prompt off?


1Password Version: 2.19.0
Extension Version: Not Provided
OS Version: Debian 12
Browser: Not Provided

Comments

  • ArunV1P
    Options

    Hi @philmcole, thanks for reaching out to share that!

    Could you help me with some additional context on how you are using the CLI on your Debian setup? Is there something that you are doing that doesn't require a login? I'd love to understand your use case better!

  • philmcole
    philmcole
    Community Member
    Options

    I’m using 1Password on a remote server that’s provisioned and managed automatically using Terraform scripts without manual login.

    As mentioned, the apt installation instructions force a prompt which breaks automatic scripts.

    I was able to work around this by using the zip download as described here https://developer.1password.com/docs/cli/install-server

  • Horia.Culea_1P
    edited July 2023
    Options

    Glad you got it working!

    I'd love however if we could document this as a blocker for installation on a remote server, such that other folks with similar workflows will get to this solution faster, next time. :D

    Can you let me know which command leaded to the No accounts configured for use with 1Password CLI. prompt, from the apt installation instructions?

This discussion has been closed.