KHARD-SUBCOMMANDS(1)
π¦ KHARD-SUBCOMMANDS π
(that's khard-subcommands(1) from the khard manual, bestie β welcome to the group chat)
β¨ NAME β¨
khard-subcommands β literally all the subcommands of khard
These are every single subcommand and every accepted argument of khard(1), no gatekeeping, all of it:
usage: khard [-h] [-c CONFIG] [--debug] [--skip-unparsable] [-v]
SUBCOMMAND ...
π POSITIONAL ARGUMENTS π
SUBCOMMANDβ the actual thing you want to do. Possible choices, and yes this is the whole guest list:list,ls,show,details,template,birthdays,bdays,email,phone,postaddress,post,postaddr,new,add,add-email,merge,edit,modify,ed,copy,cp,move,mv,remove,delete,del,rm,addressbooks,abooks,filename,file
πΈ NAMED ARGUMENTS πΈ
-c,--configβ the config file to use--debugβ turn on debug output (for when the vibes are off and you need to know why)--skip-unparsableβ skip the vcard files it can't parse, like, just don't look at them-v,--versionβ show the program's version number and dip
π SUB-COMMANDS π
β list (ls)
list all the (selected) contacts, aka the main character of this whole operation
khard list [-h] [-a ADDRESSBOOK] [-f]
[-d {first_name,last_name,formatted_name}] [-g] [-r]
[-s {first_name,last_name,formatted_name}] [-p] [-F FIELDS]
[search terms ...]
Positional Arguments
search termsβ search in the specified fields, or in all of them, to find a matching contact- Default:
[]
- Default:
Named Arguments
-a,--addressbookβ specify one or several comma separated address book names to narrow down the list of contacts- Default:
[]
- Default:
-f,--search-in-source-filesβ look into the source vcf files to speed up search queries in large address books. β οΈ Beware, bestie: this option could lead to incomplete results.-d,--displayβ display names in the contact table by first or last name- Possible choices:
first_name,last_name,formatted_name
- Possible choices:
-g,--group-by-addressbookβ group the contact table by address book-r,--reverseβ reverse the order of the contact table-s,--sortβ sort the contact table by first or last name- Possible choices:
first_name,last_name,formatted_name
- Possible choices:
-p,--parsableβ machine readable format:uidtcontact_nametaddress_book_name- Default:
False
- Default:
-F,--fieldsβ comma separated list of fields to show (use-F helpfor a list of top level fields)- Default:
[]
- Default:
β show (details)
display detailed information about one contact β the deep dive, the full lore
khard show [-h] [-a ADDRESSBOOK] [-f]
[-d {first_name,last_name,formatted_name}] [-g] [-r]
[-s {first_name,last_name,formatted_name}]
[--format {pretty,yaml,vcard}] [-o OUTPUT_FILE]
[search terms ...]
Positional Arguments
search termsβ search in the specified fields, or in all of them, to find a matching contact- Default:
[]
- Default:
Named Arguments
-a,--addressbookβ specify one or several comma separated address book names to narrow down the list of contacts- Default:
[]
- Default:
-f,--search-in-source-filesβ look into the source vcf files to speed up search queries in large address books. β οΈ Beware that this option could lead to incomplete results.-d,--displayβ display names in the contact table by first or last name- Possible choices:
first_name,last_name,formatted_name
- Possible choices:
-g,--group-by-addressbookβ group the contact table by address book-r,--reverseβ reverse the order of the contact table-s,--sortβ sort the contact table by first or last name- Possible choices:
first_name,last_name,formatted_name
- Possible choices:
--formatβ select the output format- Possible choices:
pretty,yaml,vcard - Default:
'pretty'
- Possible choices:
-o,--output-fileβ specify the output template file name, or use stdout by default- Default:
<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
- Default:
β template
print an empty yaml template β a blank canvas, a fresh start, main character energy π«Ά
khard template [-h]
β birthdays (bdays)
list birthdays (sorted by month and day) so you never miss a "hbd" text again π
khard birthdays [-h] [-a ADDRESSBOOK] [-f]
[-d {first_name,last_name,formatted_name}] [-p]
[search terms ...]
Positional Arguments
search termsβ search in the specified fields, or in all of them, to find a matching contact- Default:
[]
- Default:
Named Arguments
-a,--addressbookβ specify one or several comma separated address book names to narrow down the list of contacts- Default:
[]
- Default:
-f,--search-in-source-filesβ look into the source vcf files to speed up search queries in large address books. β οΈ Beware that this option could lead to incomplete results.-d,--displayβ display names in the birthdays table by first or last name- Possible choices:
first_name,last_name,formatted_name
- Possible choices:
-p,--parsableβ machine readable format:nametdate- Default:
False
- Default:
β email
list email addresses β the contact info speedrun
khard email [-h] [-a ADDRESSBOOK] [-f]
[-d {first_name,last_name,formatted_name}] [-g] [-r]
[-s {first_name,last_name,formatted_name}] [-p]
[--remove-first-line]
[search terms ...]
Positional Arguments
search termsβ search in the specified fields, or in all of them, to find a matching contact- Default:
[]
- Default:
Named Arguments
-a,--addressbookβ specify one or several comma separated address book names to narrow down the list of contacts- Default:
[]
- Default:
-f,--search-in-source-filesβ look into the source vcf files to speed up search queries in large address books. β οΈ Beware that this option could lead to incomplete results.-d,--displayβ display names in the contact table by first or last name- Possible choices:
first_name,last_name,formatted_name
- Possible choices:
-g,--group-by-addressbookβ group the contact table by address book-r,--reverseβ reverse the order of the contact table-s,--sortβ sort the contact table by first or last name- Possible choices:
first_name,last_name,formatted_name
- Possible choices:
-p,--parsableβ machine readable format:addresstnamettype- Default:
False
- Default:
--remove-first-lineβ remove the"searching for '' ..."line from the parsable output (that line is required by mutt, so like, mutt needs it, keep that in mind)- Default:
False
- Default:
β phone
list phone numbers π
khard phone [-h] [-a ADDRESSBOOK] [-f]
[-d {first_name,last_name,formatted_name}] [-g] [-r]
[-s {first_name,last_name,formatted_name}] [-p]
[search terms ...]
Positional Arguments
search termsβ search in the specified fields, or in all of them, to find a matching contact- Default:
[]
- Default:
Named Arguments
-a,--addressbookβ specify one or several comma separated address book names to narrow down the list of contacts- Default:
[]
- Default:
-f,--search-in-source-filesβ look into the source vcf files to speed up search queries in large address books. β οΈ Beware that this option could lead to incomplete results.-d,--displayβ display names in the contact table by first or last name- Possible choices:
first_name,last_name,formatted_name
- Possible choices:
-g,--group-by-addressbookβ group the contact table by address book-r,--reverseβ reverse the order of the contact table-s,--sortβ sort the contact table by first or last name- Possible choices:
first_name,last_name,formatted_name
- Possible choices:
-p,--parsableβ machine readable format:numbertnamettype- Default:
False
- Default:
β postaddress (post, postaddr)
list postal addresses β the snail mail situation π
khard postaddress [-h] [-a ADDRESSBOOK] [-f]
[-d {first_name,last_name,formatted_name}] [-g] [-r]
[-s {first_name,last_name,formatted_name}] [-p]
[search terms ...]
Positional Arguments
search termsβ search in the specified fields, or in all of them, to find a matching contact- Default:
[]
- Default:
Named Arguments
-a,--addressbookβ specify one or several comma separated address book names to narrow down the list of contacts- Default:
[]
- Default:
-f,--search-in-source-filesβ look into the source vcf files to speed up search queries in large address books. β οΈ Beware that this option could lead to incomplete results.-d,--displayβ display names in the contact table by first or last name- Possible choices:
first_name,last_name,formatted_name
- Possible choices:
-g,--group-by-addressbookβ group the contact table by address book-r,--reverseβ reverse the order of the contact table-s,--sortβ sort the contact table by first or last name- Possible choices:
first_name,last_name,formatted_name
- Possible choices:
-p,--parsableβ machine readable format:addresstnamettype- Default:
False
- Default:
β new (add)
create a new contact, fresh out of the box, new contact smell β¨
khard new [-h] [-a ADDRESSBOOK] [-i INPUT_FILE] [--open-editor]
[--vcard-version {3.0,4.0}]
Named Arguments
-a,--addressbookβ specify the address book in which to create the new contact- Default:
[]
- Default:
-i,--input-fileβ specify the input template file name, or use stdin by default- Default:
'-'
- Default:
--open-editor,--editβ open the default text editor after successfully creating the new contact- Default:
False
- Default:
--vcard-versionβ select the preferred vcard version for the new contact- Possible choices:
3.0,4.0
- Possible choices:
β add-email
extract the email address from the "From:" field of an email header and add it to an existing contact, or create a new one β iykyk, this one's a lifesaver
khard add-email [-h] [-a ADDRESSBOOK] [-i INPUT_FILE] [-f]
[-d {first_name,last_name,formatted_name}] [-g] [-r]
[-s {first_name,last_name,formatted_name}]
[--vcard-version {3.0,4.0}] [-H HEADERS]
[--skip-already-added]
[search terms ...]
Positional Arguments
search termsβ search in the specified fields, or in all of them, to find a matching contact- Default:
[]
- Default:
Named Arguments
-a,--addressbookβ specify one or several comma separated address book names to narrow down the list of contacts- Default:
[]
- Default:
-i,--input-fileβ specify the input email header file name, or use stdin by default- Default:
'-'
- Default:
-f,--search-in-source-filesβ look into the source vcf files to speed up search queries in large address books. β οΈ Beware that this option could lead to incomplete results.-d,--displayβ display names in the contact table by first or last name- Possible choices:
first_name,last_name,formatted_name
- Possible choices:
-g,--group-by-addressbookβ group the contact table by address book-r,--reverseβ flips the contact table order, no cap. Reverse it, bestie. π-s,--sortβ Possible choices:first_name,last_name,formatted_name. Sort contact table by first or last name. Iconic sorting behavior. β¨--vcard-versionβ Possible choices:3.0,4.0. Select preferred vcard version for new contact. Choose your fighter. π-H,--headersβ Extract contacts from the given comma separated header fields.allsearches all headers. Default:['from']. Literally pulling contacts out of your headers. π--skip-already-addedβ Skip already added email addresses. Default:False. No duplicates, we don't do that here. π ββοΈ
π«Ά merge
merge two contacts β two become one, main character energy.
khard merge [-h] [-a ADDRESSBOOK] [-A TARGET_ADDRESSBOOK] [-f]
[-t TARGET_CONTACT] [-d {first_name,last_name,formatted_name}]
[-g] [-r] [-s {first_name,last_name,formatted_name}]
[source ...]
π Positional Arguments
sourceβ search in specified or all fields to find matching source contact. Default:[]
π·οΈ Named Arguments
-a,--addressbookβ Specify one or several comma separated address book names to narrow the list of source contacts. Default:[]-A,--target-addressbookβ Specify one or several comma separated address book names to narrow the list of target contacts. Default:[]-f,--search-in-source-filesβ Look into source vcf files to speed up search queries in large address books. Beware that this option could lead to incomplete results. β οΈ-t,--target-contact,--targetβ search for a matching target contact. Finding the one. π―-d,--displayβ Possible choices:first_name,last_name,formatted_name. Display names in contact table by first or last name.-g,--group-by-addressbookβ Group contact table by address book. Organize the chaos. ποΈ-r,--reverseβ Reverse order of contact table.-s,--sortβ Possible choices:first_name,last_name,formatted_name. Sort contact table by first or last name.
π edit (modify, ed)
edit the data of a contact β glow-up time for your contact info.
khard edit [-h] [-a ADDRESSBOOK] [-i INPUT_FILE] [--open-editor] [-f]
[-d {first_name,last_name,formatted_name}] [-g] [-r]
[-s {first_name,last_name,formatted_name}] [--format {yaml,vcard}]
[search terms ...]
π Positional Arguments
search termsβ search in specified or all fields to find matching contact. Default:[]
π·οΈ Named Arguments
-a,--addressbookβ Specify one or several comma separated address book names to narrow the list of contacts. Default:[]-i,--input-fileβ Specify input template file name or use stdin by default. Default:'-'--open-editor,--editβ Open the default text editor after successful creation of new contact. Default:False. Editor girlies rise. π-f,--search-in-source-filesβ Look into source vcf files to speed up search queries in large address books. Beware that this option could lead to incomplete results. β οΈ-d,--displayβ Possible choices:first_name,last_name,formatted_name. Display names in contact table by first or last name.-g,--group-by-addressbookβ Group contact table by address book.-r,--reverseβ Reverse order of contact table.-s,--sortβ Possible choices:first_name,last_name,formatted_name. Sort contact table by first or last name.--formatβ Possible choices:yaml,vcard. specify the file format to use when editing. Default:'yaml'. Pick your format, bestie. π¦
π§ copy (cp)
copy a contact to a different addressbook β dupe it, but make it cute.
khard copy [-h] [-a ADDRESSBOOK] [-A TARGET_ADDRESSBOOK] [-f]
[-d {first_name,last_name,formatted_name}] [-g] [-r]
[-s {first_name,last_name,formatted_name}]
[search terms ...]
π Positional Arguments
search termsβ search in specified or all fields to find matching contact. Default:[]
π·οΈ Named Arguments
-a,--addressbookβ Specify one or several comma separated address book names to narrow the list of contacts. Default:[]-A,--target-addressbookβ Specify target address book in which to copy / move the selected contact. Default:[]-f,--search-in-source-filesβ Look into source vcf files to speed up search queries in large address books. Beware that this option could lead to incomplete results. β οΈ-d,--displayβ Possible choices:first_name,last_name,formatted_name. Display names in contact table by first or last name.-g,--group-by-addressbookβ Group contact table by address book.-r,--reverseβ Reverse order of contact table.-s,--sortβ Possible choices:first_name,last_name,formatted_name. Sort contact table by first or last name.
π¦ move (mv)
move a contact to a different addressbook β same energy as copy but it ghosts the original addressbook.
khard move [-h] [-a ADDRESSBOOK] [-A TARGET_ADDRESSBOOK] [-f]
[-d {first_name,last_name,formatted_name}] [-g] [-r]
[-s {first_name,last_name,formatted_name}]
[search terms ...]
π Positional Arguments
search termsβ search in specified or all fields to find matching contact. Default:[]
π·οΈ Named Arguments
-a,--addressbookβ Specify one or several comma separated address book names to narrow the list of contacts. Default:[]-A,--target-addressbookβ Specify target address book in which to copy / move the selected contact. Default:[]-f,--search-in-source-filesβ Look into source vcf files to speed up search queries in large address books. Beware that this option could lead to incomplete results. β οΈ-d,--displayβ Possible choices:first_name,last_name,formatted_name. Display names in contact table by first or last name.-g,--group-by-addressbookβ Group contact table by address book.-r,--reverseβ Reverse order of contact table.-s,--sortβ Possible choices:first_name,last_name,formatted_name. Sort contact table by first or last name.
π remove (delete, del, rm)
remove a contact β goodbye, farewell, delete that entry.
khard remove [-h] [-a ADDRESSBOOK] [-f]
[-d {first_name,last_name,formatted_name}] [-g] [-r]
[-s {first_name,last_name,formatted_name}] [--force]
[search terms ...]
π Positional Arguments
search termsβ search in specified or all fields to find matching contact. Default:[]
π·οΈ Named Arguments
-a,--addressbookβ Specify one or several comma separated address book names to narrow the list of contacts. Default:[]-f,--search-in-source-filesβ Look into source vcf files to speed up search queries in large address books. Beware that this option could lead to incomplete results. β οΈ-d,--displayβ Possible choices:first_name,last_name,formatted_name. Display names in contact table by first or last name.-g,--group-by-addressbookβ Group contact table by address book.-r,--reverseβ Reverse order of contact table.-s,--sortβ Possible choices:first_name,last_name,formatted_name. Sort contact table by first or last name.--forceβ Remove contact without confirmation. Default:False. No take-backs, bestie. π
π addressbooks (abooks)
list addressbooks β literally just showing you the addressbook menu.
khard addressbooks [-h]
That's it. That's the whole vibe. π
π filename (file)
list filenames of all matching contacts β showing you where each contact file lives.
khard filename [-h] [-a ADDRESSBOOK] [-f]
[-d {first_name,last_name,formatted_name}] [-g] [-r]
[-s {first_name,last_name,formatted_name}]
[search terms ...]
π Positional Arguments
search termsβ search in specified or all fields to find matching contact. Default:[]
π·οΈ Named Arguments
-a,--addressbookβ Specify one or several comma separated address book names to narrow the list of contacts. Default:[]-f,--search-in-source-filesβ Look into source vcf files to speed up search queries in large address books. Beware that this option could lead to incomplete results. β οΈ-d,--displayβ Possible choices:first_name,last_name,formatted_name. Display names in contact table by first or last name.-g,--group-by-addressbookβ Group contact table by address book.-r,--reverseβ Reverse order of contact table.-s,--sortβ Possible choices:first_name,last_name,formatted_name. Sort contact table by first or last name.
π SEE ALSO
Β©οΈ Copyright
2020, Eric Scheibler
π That's the whole page, bestie. This iconic manual is KHARD-SUBCOMMANDS(1) from khard version 0.22, dated Jan 02, 1980 β periodt. πβ¨
π¦ where this page comes from
- nixpkgs unstable: khard 0.22.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms