dayone2 CLI Tool

dayone(05 October 2016) dayone(05 October 2016)

NNAAMMEE ddaayyoonnee - Command line interface for the Day One journaling application.

SSYYNNOOPPSSIISS ddaayyoonnee [op_t_i_o_n_s] co_m_m_a_n_d [co_m_m_a_n_d_-ar_g_u_m_e_n_t] [co_m_m_a_n_d_-ar_g_u_m_e_n_t]...

DDEESSCCRRIIPPTTIIOONN The ddaayyoonnee tool provides a way to interact with your Day One journal file through the co_m_m_a_n_d line. It is typically used for custom import scripts and utilities.

   ddaayyoonnee will only work properly if you have purchased the Day One
   application and have run it at least one time on your computer.  You can
   purchase Day One by visiting https://dayoneapp.com.

   You must always specify a _c_o_m_m_a_n_d. Currently the only supported _c_o_m_m_a_n_d
   is new. The entry text is read from stdin.

CCOOMMMMAANNDDSS nneeww [[tteexxtt]] [[tteexxtt]]...... Creates new entry with optional text. Every text argument will be separated by a single space when placed into the new entry. If no text arguments are provided then standard input is used by default for the entry text. Use ----nnoo--ssttddiinn to override this behavior.

   hheellpp   Display help.

OOPPTTIIOONNSS --pp,, ----pphhoottooss <<ppaatthh11>> [[ppaatthh22]]...... Path to one or more photo files. If desired you can use [{photo}] in entry text to position photo. Can only have up to 10 photos listed. If this option is the last one listed, you must place a -- at the end of the list prior to the co_m_m_a_n_d, otherwise the co_m_m_a_n_d would be considered.

          Example: --pp photo1 photo2

   --dd, ----ddaattee=<date> Date to use, otherwise will use today/now.  Example
   Format: yyyy-mm-dd [hh:mm[:ss]] [AM|PM], time/seconds are optional.  Uses
   current system time zone unless you use the ----ttiimmeeZZoonnee option.  Other
   formats are possible, such as 'Next Tuesday' or '12/30/2016', etc.

          Example Use: ----ddaattee='2015-06-01 15:53:10'

   ----iissooDDaattee=2016-06-01T15:30:12Z Date to use in ISO 8601 format. Format:
   yyyy-mm-ddThh:mm:ssZ Always interprets the time in the UTC time zone in
   the gregorian calendar.  Entry its self will still use current system
   time zone unless ----ttiimmeeZZoonnee option is used.

          Example: ----ddaattee=2015-06-01T15:53:10Z

   --zz, ----ttiimmee--zzoonnee=<name> Name of the timezone in which the entry was
   created. If you do not specify this option then the current system
   timezone is used. The name is expected to be a name from the IANA Time
   Zone Database (see http://www.iana.org/time-zones or
   /usr/share/zoneinfo). Alternatively, you can specify the name as a GMT
   offset.

          Examples: --tt America/Anchorage --tt Australia/Victoria --tt Etc/Zulu
          --tt GMT-0700 --tt GMT+1200

   --ss, ----ssttaarrrreedd Whether or not to star the entry. If not specified the
   entry is not starred.

   --jj, ----jjoouurrnnaall=<name> Name of Journal to place entry in. Journal must
   already exist.  If not specified then the default journal will be used.

   ----ccoooorrddiinnaattee=<latitude> <longitude> Location the entry should be placed
   at. The timezone of entry will use this location regardless of what
   timezone option is passed in.

   ----nnoo--ssttddiinn Ignore standard in. By default standard in is used if no text
   arguments are used for the new _c_o_m_m_a_n_d.  Example: ----nnoo--ssttddiinn

EENNVVIIRROONNMMEENNTT DAYONE_APP_PATH: If defined will look for day one at path in variable. The Day One app is needed for CLI to work.

          These paths are searched in order, first one that works is the one
          used:

                 1.  DAYONE_APP_PATH

                 2.  /Applications/Day One.app

                 3.  Asking system for path to app for
                     com.bloombuilt.dayone-mac

EEXXAAMMPPLLEESS ddaayyoonnee new Entry text. Creates a new entry with text "Entry text." in the default journal.

   ddaayyoonnee --pp=~/Pictures/image.jpg new Entry text with photo: [{photo}]

          CCrreeaatteess aann eennttrryy wwiitthh aa pphhoottoo..
                 [{photo}] is replaced with the photo, use multiple
                 [{photo}] if needed If a [{photo}] location is not
                 specified in text, they are appended to end of entry by
                 default.

   ddaayyoonnee --ss --dd="03/03/2011 5:30 PM" new Entry text.  Creates a starred
   entry with a specified creation date.

   ddaayyoonnee --ttzz=Australia/Victoria new My day in victoria.  Creates an entry
   with a custom timezone.

AAUUTTHHOORR Joshua Orr - @jorr39 BJ Homer - @bjhomer

                                                     dayone(05 October 2016)