Skip to content

Commit

Permalink
edit readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
laaqxdze1k committed Aug 19, 2023
1 parent 88d1df5 commit 12cbe5f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var (
)

func main() {
fmt.Printf("immich-go %s, commit %s, built at %s", version, commit, date)
fmt.Printf("immich-go %s, commit %s, built at %s\n", version, commit, date)
var err error
app := &Application{
Logger: logger.NewLogger(logger.Info),
Expand Down
16 changes: 8 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,29 +50,29 @@ The `immich-go` program uses the Immich API. Hence it need the server address an


```sh
immich-go -server URL -key KEY -options... folder1|zip1 folder2|zip2....
immich-go -server URL -key KEY COMMAND -options... folder1|zip1 folder2|zip2....
```

## Switches and options:
`-server URL` URL of the Immich service, example http://<your-ip>:2283 or https://your-domain<br>
`-key KEY` A key generated by the user. Uploaded photos will belong to the key's owner.<br>

## Command `upload`

### Switches and options:
`-album "ALBUM NAME"` Import assets into the Immich album `ALBUM NAME`.<br>
`-device-uuid VALUE` Force the device identification (default $HOSTNAME).<br>
`-dry-run` Preview all actions as they would be done.<br>
`-delete` Delete local assets after successful upload. <br>
`-create-album-folder` Generate immich albums after folder names.<br>


## Date selection:

### Date selection:
Fine-tune import based on specific dates:<br>
`-date YYYY-MM-DD` import photos taken on a particular day.<br>
`-date YYYY-MM` select photos taken during a particular month.<br>
`-date YYYY` select photos taken during a particular year.<br>
`-date YYYY-MM-DD,YYYY-MM-DD` select photos taken within this date range.<br>

## Google photos options:

### Google photos options:
Specialized options for Google Photos management:
`-google-photos` import from a Google Photos structured archive, recreating corresponding albums.<br>
`-from-album "GP Album"` import assets for the given album, and mirrors it in Immich.<br>
Expand All @@ -86,7 +86,7 @@ Specialized options for Google Photos management:
To illustrate, here's a command importing photos from a Google Photos takeout archive captured between June 1st and June 30th, 2019, while auto-generating albums:

```sh
./immich-go -server=http://mynas:2283 -key=zzV6k65KGLNB9mpGeri9n8Jk1VaNGHSCdoH1dY8jQ
./immich-go -server=http://mynas:2283 -key=zzV6k65KGLNB9mpGeri9n8Jk1VaNGHSCdoH1dY8jQ upload
-create-albums -google-photos -date=2019-06 ~/Download/takeout-20230715T073439Z-001.zip ~/Download/takeout-20230715T073439Z-002.zip
```

Expand Down

0 comments on commit 12cbe5f

Please sign in to comment.