Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
Former Member
5 years ago1Password CLI 2.0 Early Access 🥳
👋 Welcome everyone!
Today we’re stoked to announce our first early access for 1Password’s CLI 2.0!
We have spent the last 6 months taking the time to reimagine the future of the CLI for adm...
Former Member
4 years agoThanks for including me in the early access!
I'm finding the "inject" command particularly useful, and I had one question/suggestion about this command. When writing the "reference format" string, is there any way to specify sections/fields with spaces in the names?
For instance, I'm trying to write a reference string for the "api key" field within the "API KEYS" section of my item names "Twitter", and the closest I can get is the following:
op://Personal/Twitter/API_KEYS/api_key
Seeing this docs page mentions that the https://developer.1password.com/docs/cli/reference/commands/inject#:%7E:text=The%20reference%20names%20cannot%20contain%20any%20whitespaces%20or%20special%20characters%2C%20with%20the%20exception%20of%20hyphens%20(%2D)%20and%20underscores%20(_).. However, a lot of my custom sections/fields have spaces in their names. If possible, I would really like to avoid going back and editing them all to use "-" or "_" instead.
Perhaps there could be a way to specify a UUID for the specific section/field instead of inputting the name (assuming such a UUID exists under the hood)? I have already been using the item UUID in the reference string when I have duplicate item names within the same vault, and I've found this alternative very useful.
Thanks in advance, and apologies if I've missed a docs page that explains everything...