Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions RECORD_ADD_DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -403,13 +403,15 @@ The `--self-destruct` option creates temporary records that automatically delete
### Syntax

```bash
--self-destruct <NUMBER>[(m)inutes|(h)ours|(d)ays]
--self-destruct <NUMBER>[(mi)nutes|(h)ours|(d)ays|(mo)nths|(y)ears]
```

**Time Units:**
- `m` or `minutes` - Minutes (default if no unit specified)
- `mi` or `minutes` - Minutes (default if no unit specified)
- `h` or `hours` - Hours
- `d` or `days` - Days
- `mo` or `months` - Months
- `y` or `years` - Years

### Examples

Expand All @@ -428,7 +430,7 @@ record-add -t "Temporary Server Access" -rt login \
record-add -t "Guest WiFi Access" -rt wifiCredentials \
text.ssid="Company-Guest" \
password=TempPass123 \
--self-destruct 30m \
--self-destruct 30mi \
--notes "Visitor access for meeting"
```

Expand Down Expand Up @@ -647,4 +649,4 @@ record-add --syntax-help

# View record-update syntax help
record-update --help
```
```
2 changes: 1 addition & 1 deletion keepercommander/commands/discoveryrotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -3701,7 +3701,7 @@ class PAMGatewayActionRotateCommand(Command):

# Email and share link arguments
parser.add_argument('--self-destruct', dest='self_destruct', action='store',
metavar='<NUMBER>[(m)inutes|(h)ours|(d)ays]',
metavar='<NUMBER>[(mi)inutes|(h)ours|(d)ays|(mo)nths|(y)ears]',
help='Create one-time share link that expires after duration')
parser.add_argument('--email-config', dest='email_config', action='store',
help='Email configuration name to use for sending (required with --send-email)')
Expand Down
2 changes: 1 addition & 1 deletion keepercommander/commands/record_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
record_add_parser.add_argument('--folder', dest='folder', action='store',
help='folder name or UID to store record')
record_add_parser.add_argument('--self-destruct', dest='self_destruct', action='store',
metavar='<NUMBER>[(m)inutes|(h)ours|(d)ays]',
metavar='<NUMBER>[(mi)nutes|(h)ours|(d)ays|(mo)nths|(y)ears]',
help='Time period record share URL is valid. The record will be deleted in your vault in 5 minutes since open')
record_add_parser.add_argument('--pam-config', dest='pam_config', action='store',
help='PAM configuration UID or name to sync password to cloud provider (Azure AD, AWS IAM)')
Expand Down