Skip to content

Commit d46824d

Browse files
domenkozarclaude
andcommitted
fix(lastpass): use correct lpass add command for new secrets
The lastpass CLI uses `lpass add` for creating new items, not `lpass set` which doesn't exist. This was a typo introduced in commit 3221782. Fixes #54 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5d61a58 commit d46824d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
- LastPass provider: Fix creating new secrets by using correct `lpass add` command instead of non-existent `lpass set` (#54)
12+
1013
## [0.5.1] - 2026-01-02
1114

1215
### Changed

secretspec/src/provider/lastpass.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ impl Provider for LastPassProvider {
348348
/// Creates or updates a secret in LastPass at the path
349349
/// determined by the folder_prefix format string. The method first checks if
350350
/// the item exists to determine whether to use `lpass edit` (for updates)
351-
/// or `lpass set` (for new items).
351+
/// or `lpass add` (for new items).
352352
///
353353
/// # Arguments
354354
///
@@ -409,9 +409,9 @@ impl Provider for LastPassProvider {
409409
));
410410
}
411411
} else {
412-
// Create new item using lpass set
412+
// Create new item using lpass add
413413
let args = vec![
414-
"set",
414+
"add",
415415
"--sync=now",
416416
&item_name,
417417
"--password",

0 commit comments

Comments
 (0)