You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use `opLoadEnvironment()` with `@setValuesBulk` to load all variables from a [1Password environment](https://developer.1password.com/docs/sdks/concepts/environments/) at once:
> **Note:** When using desktop app auth (`allowAppAuth`), the `op environment` command requires a beta version of the 1Password CLI (v2.33.0+). Download it from the [CLI release history](https://app-updates.agilebits.com/product_history/CLI2) (click "show betas"). Service account auth via the SDK does not have this requirement.
162
+
136
163
---
137
164
138
165
## Reference
@@ -166,6 +193,20 @@ Fetch an individual field using a 1Password secret reference.
166
193
- Format: `op://vault-name/item-name/field-name`
167
194
- Example: `op://production/database/password`
168
195
196
+
#### `opLoadEnvironment()`
197
+
198
+
Load all variables from a 1Password environment. Intended for use with `@setValuesBulk`.
199
+
200
+
**Signatures:**
201
+
202
+
-`opLoadEnvironment(environmentId)` - Load from default instance
203
+
-`opLoadEnvironment(instanceId, environmentId)` - Load from a specific instance
204
+
205
+
**Parameters:**
206
+
207
+
-`environmentId: string` - The 1Password environment ID
208
+
-`instanceId?: string` - Instance identifier (static, when using multiple instances)
209
+
169
210
### Data Types
170
211
171
212
-`opServiceAccountToken` - 1Password service account token (sensitive, validated format)
0 commit comments