Day One / Tools
Command Line Interface
The Day One CLI makes it possible for programs and scripts to interact with a Day One Journal from the command line.
$ ./dayone new
Waits for input from stdin then creates a new entry in the default journal
$ echo "an entry from yesterday" | ./dayone -d="yesterday" new
Creates a new entry using yesterday’s date with the specified text
$ ./dayone -d="25/03/2011 5:30PM" -s=true new < ~/Desktop/note.txt
Creates a starred entry using the contents of note.txt
$ echo "an entry in my other journal" | ./dayone -j=~/Documents/WorkJournal.dayone new
Creates an entry in a journal other than the default
- Import markdown journal entries (txt files) to Day One
- Export Evernote Items to Day One by @Veritrope
- Logging With Day One Geek Style by Brett Terpstra
- System Service Clip to Day One by Brett Terpstra
- Logging with Alfred by @viticci
- Import from MacJournal (Sample Ruby script)
- Import from OhLife by @BooneJS
- Export to HTML, Text and more In addition to the Mac App Export to text.
- Aperture Photo to Day One Journal Entry by Jordan Patterson More info
- AppleScript to link Apple’s Reminders program to Day One
- Import from Racounter iPhone app by Pawel Witan
- DayOne Windows Client by Nitin Khanna
- A script to add timezone information to older entries by Al Pasechnik
- jrnl Command Line writing with more options.
To see available options and examples, use the
$ ./dayone --help
Presently, there is one supported command: “new”. The “new” command allows users to write scripts to import entries from another program or to write utilities that allow for automated entry creation.
The CLI automatically uses the Day One Journal that is configured in the Day One Preferences window. You can specify a different Journal using the
When creating a new entry, the current time is used by default as the entry creation date. To specify a different date, use the
--date option. This option accepts dates in most formats, including some natural language strings such as
yesterday. The system’s locale is used when deciding how to parse a date.