github.com/soulteary/pocket-bookcase@v0.0.0-20240428065142-0b5a9a0fc98a/docs/CLI.md (about)

     1  Content
     2  ---
     3  
     4  <!-- TOC -->
     5  
     6  - [Add bookmark](#add-bookmark)
     7  
     8  <!-- /TOC -->
     9  
    10  Add bookmark
    11  ---
    12  
    13  To add bookmark with CLI you can use `shiori add`.
    14  
    15  Shiori has flags to add bookmark: `shiori add --help`
    16  
    17  ```
    18  Bookmark the specified URL
    19  
    20  Usage:
    21    shiori add url [flags]
    22  
    23  Flags:
    24    -e, --excerpt string   Custom excerpt for this bookmark
    25    -h, --help             help for add
    26        --log-archival     Log the archival process
    27    -a, --no-archival      Save bookmark without creating offline archive
    28    -o, --offline          Save bookmark without fetching data from internet
    29    -t, --tags strings     Comma-separated tags for this bookmark
    30    -i, --title string     Custom title for this bookmark
    31  
    32  Global Flags:
    33        --log-caller                 logrus report caller or not
    34        --log-level string           set logrus loglevel (default "info")
    35        --portable                   run shiori in portable mode
    36        --storage-directory string   path to store shiori data
    37  ```
    38  
    39  Examples:
    40  
    41  Add url:
    42  `shiori add https://example.com`
    43  
    44  Add url with tags:
    45  `shiori add https://example.com -t "example-1,example-2"`
    46  
    47  Add url with custom title:
    48  `shiori add https://example.com --title "example example"`