Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
mjktfw
4 months agoNew Contributor
How to get/set url/webiste autofill behaviour through CLI
Hello, I'd like to kindly ask if 1password CLI allows to get or set "autofill behaviour" attribute assigned to a specific website/url. I didn't find such information in documentation, only a brief ...
br8dy
22 days agoNew Contributor
+1 It would be helpful to be able to create or edit items with an autofill policy defined. I often create login items at different subdomains (example: foo.lndo.site, bar.lndo.site) using an https://developer.1password.com/docs/cli/reference/management-commands/item#item-template. Having the ability to present the autofill behavior to 'only fill on this exact host,' would reduce the clutter when autofilling in the browser UI. I could imagine the create command working like the following, with ['exact', 'host', 'never'] as possible options.
op item create --category=login --title='My Example Item' --vault='Test' \
--url https://www.acme.com/login \
--autofill 'exact'{
"title": "Example Login",
"category": "LOGIN",
"urls": [
{
"label": "Lando",
"href": "https://foo.lndo.site/",
"autofill": "exact"
}
]
}