-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpass2bitwardencsv.man
89 lines (78 loc) · 2.45 KB
/
pass2bitwardencsv.man
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
.TH PASSFORMAT-TO-CSV 1 "2024-01-25" "version 1.0" "Pass to Bitwarden CSV Converter Manual"
.SH NAME
pass-to-bitwarden-csv \- Convert Pass format data to Bitwarden CSV format.
.SH SYNOPSIS
.B passformat-to-csv
.RI [ options ]...
.SH DESCRIPTION
.PP
The \fBpass-to-bitwarden-csv\fR script is used to convert password data in a specific format (referred to as "passformat") into a Bitwarden CSV file. It is especially designed to work with password entries retrieved using the \fBpass\fR command-line utility. The script can append data to an existing CSV file, ensuring the format consistency and avoiding header duplication.
.SH OPTIONS
.PP
.TP
.B \-\-pass_entry
The pass entry to retrieve data from. This is a required argument.
.TP
.B \-\-folder
Folder field value for the CSV. This is an optional argument.
.TP
.B \-\-favorite
Favorite field value for the CSV. This is an optional argument.
.TP
.B \-\-type
Type field value for the CSV. This is an optional argument.
.TP
.B \-\-name
Name field value for the CSV. This is a required argument.
.TP
.B \-\-notes
Notes field value for the CSV. This is an optional argument.
.TP
.B \-\-fields
Fields field value for the CSV. This is an optional argument.
.TP
.B \-\-reprompt
Reprompt field value for the CSV. This is an optional argument.
.SH EXAMPLES
.PP
Convert a pass entry named "my_pass_entry" with the name "Example Site":
.RS
.nf
\fB./script.py \-\-pass_entry "my_pass_entry" \-\-name "Example Site" \-\-folder "Personal" \-\-type "Login"\fR
.fi
.RE
.PP
Convert another pass entry named "another_pass_entry" with the name "Another Site":
.RS
.nf
\fB./script.py \-\-pass_entry "another_pass_entry" \-\-name "Another Site" \-\-favorite "Yes" \-\-notes "My notes"\fR
.fi
.RE
.SH INPUT FORMAT
.PP
The input data in "passformat" should contain:
.RS
.nf
Password
Username: someusername
URL: https://someurl.com
otpauth://...
.fi
.RE
.PP
The first line contains the password, followed by other fields like username, URL, and otpauth, each prefixed with their field name and a colon.
.SH OUTPUT FORMAT
.PP
The output is a CSV file with columns for folder, favorite, type, name, notes, fields, reprompt, login_uri, login_username, login_password, and login_totp.
.SH "SEE ALSO"
.PP
\fBpass(1)\fR, \fBcsv(5)\fR
.SH AUTHOR
.PP
This manual page was written by ScourgeTheTracker.
.SH "REPORTING BUGS"
.PP
Report bugs to https://github.com/scourgethetracker/pass2bitwarden/issues.
.SH COPYRIGHT
.PP
Copyleft © 2024 by ScourgeTheTracker. All rights reserved.