User Guide
CampusLink is a desktop app for managing contacts, optimized for use via a Command Line Interface (CLI) while still having the benefits of a Graphical User Interface (GUI). If you can type fast, CampusLink can get your contact management tasks done faster than traditional GUI apps.
- Quick start
-
Features
- Viewing help :
help - Adding a person:
add - Listing all persons :
list - Editing a person :
edit - Locating persons by name:
find - Deleting a person :
delete - Pinning a person :
pin - Sorting contacts :
sort - Adding or replacing a profile picture :
pic - Toggling dark / light mode :
toggle color mode - Clearing all entries :
clear - Setting a password :
setpassword - Removing password protection :
removepassword - Exporting all contacts :
export - Importing contacts :
import - Setting a follow-up reminder :
followup - Clearing a follow-up reminder :
clearfollowup - Exiting the program :
exit - Saving the data
- Editing the data file
- Viewing help :
- FAQ
- Known issues
- Command summary
Quick start
-
Ensure you have Java
17or above installed in your Computer.
Mac users: Ensure you have the precise JDK version prescribed here. -
Download the latest
.jarfile from here. -
Copy the file to the folder you want to use as the home folder for CampusLink.
-
Open a command terminal,
cdinto the folder you put the jar file in, and use thejava -jar addressbook.jarcommand to run the application.
A GUI similar to the below should appear in a few seconds. Note how the app contains some sample data.

-
Type the command in the command box and press Enter to execute it. e.g. typing
helpand pressing Enter will open the help window.
Some example commands you can try:-
list: Lists all contacts. -
add n/John Doe p/98765432 e/johnd@example.com a/John street, block 123, #01-01: Adds a contact namedJohn Doeto the Address Book. -
delete 3: Deletes the 3rd contact shown in the current list. -
edit 2 g/student: Edits the group information of the 2nd contact in the current list. -
clear: Deletes all contacts. -
pic 1: Opens a file picker to set a profile picture for the 1st contact. -
followup 1 f/Send project files: Sets a follow-up reminder on the 1st contact. -
clearfollowup 1: Removes the follow-up reminder from the 1st contact. -
toggle color mode: Switches between dark and light mode. -
exit: Exits the app.
-
-
Refer to the Features below for details of each command.
Features
Notes about the command format:
-
Words in
UPPER_CASEare the parameters to be supplied by the user.
e.g. inadd n/NAME,NAMEis a parameter which can be used asadd n/John Doe. -
Items in square brackets are optional.
e.gn/NAME [t/TAG]can be used asn/John Doe t/friendor asn/John Doe. -
Items with
… after them can be used multiple times including zero times.
e.g.[t/TAG]…can be used as(i.e. 0 times),t/friend,t/friend t/familyetc. -
Parameters can be in any order.
e.g. if the command specifiesn/NAME p/PHONE_NUMBER,p/PHONE_NUMBER n/NAMEis also acceptable. -
Extraneous parameters for commands that do not take in parameters (such as
help,list,exitandclear) will be ignored.
e.g. if the command specifieshelp 123, it will be interpreted ashelp. -
If you are using a PDF version of this document, be careful when copying and pasting commands that span multiple lines as space characters surrounding line-breaks may be omitted when copied over to the application.
Viewing help : help
Shows a message explaining how to access the help page.

Format: help
Adding a person: add
Adds a person to the address book.
Format: add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS [t/TAG]… [g/GROUP]… [po/POSITION]… [m/MAJOR]… [h/AVAILABLE_HOURS]
duplicate name, phone detected).
Examples:
add n/John Doe p/98765432 e/johnd@example.com a/John street, block 123, #01-01 m/Biologyadd n/Betsy Crowe t/friend e/betsycrowe@example.com a/Newgate Prison p/1234567 t/criminal
Listing all persons : list
Shows a list of all persons in the address book.
Format: list
Editing a person : edit
Edits an existing person in the address book.
Format: edit [FLAG] INDEX [n/NAME] [p/PHONE] [e/EMAIL] [a/ADDRESS] [t/TAG]…
- Edits the person at the specified
INDEX. The index refers to the index number shown in the displayed person list. The index must be a positive integer 1, 2, 3, … - If “-a” is used as flag, new fields will be appended to existing ones; if “-r” is used, then existing fields will be overwritten.
- If no flag is given, then by default existing fields will be overwritten.
- For fields where a contact can have at most one (e.g., name, address), “-a” flag will overwrite the existing fields.
- At least one of the optional fields (excluding flag) must be provided.
- You can remove all the person’s tags, groups, etc., by typing
t/without specifying any tags after it.
Examples:
-
edit 1 p/91234567 e/johndoe@example.comEdits the phone number and email address of the 1st person to be91234567andjohndoe@example.comrespectively. -
edit -a 2 t/visibleAdds tag “visible” to the 2nd person.
Locating persons by name: find
Finds persons whose names contain any of the given keywords.
Format: find [[FLAG] [PREFIX/KEYWORDS]].
- The search is case-insensitive. e.g
hanswill matchHans. Keywords themselves have no restriction, but they must be nonempty when leading and trailing spaces are trimmed (i.e., “n/Al?ce” is allowed but “n/[SPACE]” is not). - The order of the keywords does not matter. e.g.
n/Hans n/Bowill matchBo Hans - User supplies at least one of search keywords, all of which should be preceded by corresponding prefix (e.g., n/).
- For names, only full words will be matched e.g.
Hanwill not matchHans - User can use flags: “-o” for optional fields, “-c” for compulsory fields. All keywords following a certain flag will be processed according to that flag. By default (no flag) fields are all optional.
- Flags should be preceded and followed by one space each. Where a part of input can be interpreted as both flag and keyword, it will be treated as a flag.
- When more than two flags exist, keywords will be processed according to the last flag before it. E.g., for “-c -o n/James -c po/Principal”, parse result will be an optional name “James” and a compulsory position “Principal”.
- Persons matching all compulsory fields (if any) AND, when optional keywords exist, at least one optional keyword, will be returned (i.e., for “-c n/James -o po/Principal”, find result will contain everyone who is both named “James” and has position “Principal”).
Examples:
-
find n/JohnreturnsjohnandJohn Doe -
find n/alex n/davidreturnsAlex Yeoh,David Li
Deleting a person : delete
Deletes the specified person from the address book.
Format: delete INDEX
- Deletes the person at the specified
INDEX. - The index refers to the index number shown in the displayed person list.
- The index must be a positive integer 1, 2, 3, …
Examples:
-
listfollowed bydelete 2deletes the 2nd person in the address book. -
find Betsyfollowed bydelete 1deletes the 1st person in the results of thefindcommand.
Pinning a person : pin
Toggles the pin status of the specified person. Pinned persons are moved to the top of the list and display a 📌 icon.
Format: pin INDEX
- Pins the person at the specified
INDEXif they are not already pinned. - If the person is already pinned, running
pin INDEXagain will unpin them. - The index refers to the index number shown in the displayed person list.
- The index must be a positive integer 1, 2, 3, …
- A maximum of 3 persons can be pinned at a time. Attempting to pin a 4th person will show an error.
- Pin status is saved and persists across sessions.
Examples:
-
pin 1pins the 1st person in the list. -
pin 1again unpins that person.
Sorting contacts : sort
Sorts the displayed contact list by a specified field and order. Pinned contacts always remain at the top.
Format: sort CONDITION ORDER (ORDER can be ASC, DESC, a, or d)
-
CONDITION:firstname,lastname, orrecent-
firstnamesorts by the first word of the person’s name. -
lastnamesorts by the last word of the person’s name. -
recentsorts contacts by their underlying storage/import order (newly imported contacts appear at the top).
-
-
ORDER:ASC(ascending, A→Z) orDESC(descending, Z→A)- Note: For
recent,ASCandDESCdetermine the ordering direction of the underlying list structure.
- Note: For
- The sort is case-insensitive.
- Pinned contacts always appear at the top of the list, with the sort applied within pinned and unpinned groups.
Examples:
-
sort firstname ASC(orsort firstname a) sorts all contacts by first name, A to Z. -
sort lastname DESC(orsort lastname d) sorts all contacts by last name, Z to A. -
sort recent arestores the list to its original insertion order, displaying recently imported contacts at the top.
Adding or replacing a profile picture : pic
Opens a file picker to set or replace the profile picture for the specified contact. The picture is displayed on the right side of the contact card.
- If no picture has been set, a 📷 button appears — clicking it opens the file picker.
- If a picture already exists, clicking on it also opens the file picker to replace it.
Format: pic INDEX
-
INDEXmust be a positive integer referring to a contact in the current list. - Supported formats: PNG, JPG, JPEG, GIF, BMP.
- The picture is saved persistently and will appear on next launch.
Examples:
-
pic 1— opens a file picker to set or replace the picture for the 1st contact. -
pic 3— opens a file picker to set or replace the picture for the 3rd contact.
Toggling dark / light mode : toggle color mode
Switches the application between dark mode and light mode. A ☀ / 🌙 button at the top-right corner of the window does the same thing.
Format: toggle color mode
Clearing all entries : clear
Clears all entries from the address book.
Format: clear
Setting a password : setpassword
Sets a password to protect the address book. You will be prompted to enter this password every time you start CampusLink.
Format: setpassword pw/PASSWORD
-
PASSWORDmust not be empty or consist solely of spaces. - If a password is already set, this command replaces it with the new password.
- The password is stored as a SHA-256 hash — your plaintext password is never saved.
Examples:
setpassword pw/mySecret123
Removing password protection : removepassword
Removes the password from the address book. The app will no longer prompt for a password on startup.
Format: removepassword
- If no password is currently set, a message is shown and no changes are made.
Exporting all contacts :
export
Exports all contacts in the address book to a JSON file at the specified path. The exported file uses the same JSON format as the app’s data file, so it can be imported back later.
Format: export fp/FILE_PATH
-
FILE_PATHis the path to the output file (e.g.backup.jsonordata/contacts_backup.json). - If the file already exists it will be overwritten.
- The export includes all contacts regardless of any active filter.
Examples:
-
export fp/backup.jsonexports all contacts tobackup.jsonin the current working directory. -
export fp/data/team_contacts.jsonexports all contacts todata/team_contacts.json.
Importing contacts : import
Imports contacts from a JSON file into the current address book. Existing contacts are kept; entries whose name matches an existing contact are skipped (not overwritten).
Format: import fp/FILE_PATH
-
FILE_PATHis the path to a valid JSON file previously exported from CampusLink (or any file in the same format). - The import is additive — your current contacts are never removed or overwritten.
- Newly imported contacts will be stacked on top of all current contacts, preserving their relative order from the imported file.
- Contacts with the same name as an existing contact are considered duplicates and are skipped.
- After import, the result message shows how many contacts were added and how many were skipped.
Examples:
-
import fp/backup.jsonimports contacts frombackup.json. -
import fp/data/team_contacts.jsonimports contacts fromdata/team_contacts.json.
export on one computer and import on another to transfer your contacts easily.
Setting a follow-up reminder : followup
Attaches a short reminder note to a contact so you know what to follow up on with them. The note is shown automatically in the result display every time the app starts.
Format: followup INDEX f/NOTE
- Sets the follow-up note for the person at the specified
INDEX. - The index refers to the index number shown in the displayed person list. The index must be a positive integer 1, 2, 3, …
-
NOTEmust not be blank and must not start with whitespace. - If a follow-up note already exists on that contact, it is replaced by the new note.
Examples:
-
followup 1 f/Email about internship by Friday— sets a reminder on the 1st person. -
followup 3 f/Discuss project deadline next week— sets a reminder on the 3rd person.
Clearing a follow-up reminder : clearfollowup
Removes the follow-up note from a contact once you are done with it.
Format: clearfollowup INDEX
- Clears the follow-up note for the person at the specified
INDEX. - The index must be a positive integer 1, 2, 3, …
- If the contact has no follow-up note, an error is shown.
Examples:
-
clearfollowup 1— removes the follow-up reminder from the 1st person.
Exiting the program : exit
Exits the program.
Format: exit
Saving the data
AddressBook data are saved in the hard disk automatically after any command that changes the data. There is no need to save manually.
Editing the data file
AddressBook data are saved automatically as a JSON file [JAR file location]/data/addressbook.json. Advanced users are welcome to update data directly by editing that data file.
Furthermore, certain edits can cause the AddressBook to behave in unexpected ways (e.g., if a value entered is outside of the acceptable range). Therefore, edit the data file only if you are confident that you can update it correctly.
FAQ
Q: How do I transfer my data to another Computer?
A: On your current computer, run export fp/backup.json to save all contacts to a file. Copy backup.json to the other computer, then run import fp/backup.json in CampusLink there. Alternatively, you can manually copy the data file at [JAR file location]/data/addressbook.json to the same location on the other computer.
Known issues
-
When using multiple screens, if you move the application to a secondary screen, and later switch to using only the primary screen, the GUI will open off-screen. The remedy is to delete the
preferences.jsonfile created by the application before running the application again. -
If you minimize the Help Window and then run the
helpcommand (or use theHelpmenu, or the keyboard shortcutF1) again, the original Help Window will remain minimized, and no new Help Window will appear. The remedy is to manually restore the minimized Help Window. -
If you forget your password, there is currently no password recovery mechanism. You can reset the app by deleting
preferences.json(removes password) anddata/addressbook.json(removes all contacts) from the app’s home folder.
Command summary
| Action | Format, Examples |
|---|---|
| Add |
add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS [t/TAG]… e.g., add n/James Ho p/22224444 e/jamesho@example.com a/123, Clementi Rd, 1234665 t/friend t/colleague
|
| Clear | clear |
| Delete |
delete INDEXe.g., delete 3
|
| Edit |
edit [FLAG] INDEX [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [t/TAG]…e.g., edit -r 2 n/James Lee e/jameslee@example.com
|
| Export |
export fp/FILE_PATHe.g., export fp/backup.json
|
| Find |
find [[FLAG] [PREFIX/KEYWORDS]]e.g., find n/James Jake
|
| Follow-up |
followup INDEX f/NOTEe.g., followup 1 f/Email about internship by Friday
|
| Clear Follow-up |
clearfollowup INDEXe.g., clearfollowup 1
|
| Import |
import fp/FILE_PATHe.g., import fp/backup.json
|
| List | list |
| Pin |
pin INDEXe.g., pin 1
|
| Sort |
sort CONDITION ORDERe.g., sort firstname a
|
| Help | help |
| Set Password |
setpassword pw/PASSWORDe.g., setpassword pw/mySecret123
|
| Remove Password | removepassword |
| Profile Picture |
pic INDEXe.g., pic 2
|
| Toggle Color Mode | toggle color mode |