mirror of
https://github.com/ente-io/ente.git
synced 2025-08-07 23:18:10 +00:00
[cli] Update README
This commit is contained in:
parent
d7926e05bb
commit
f4d44e484d
@ -107,11 +107,7 @@ docker-compose up -d
|
||||
|
||||
`exec` into the container
|
||||
```shell
|
||||
docker-compose exec ente /bin/sh
|
||||
docker-compose exec ente-cli /bin/sh -c "./ente-cli version"
|
||||
docker-compose exec ente-cli /bin/sh -c "./ente-cli account add"
|
||||
```
|
||||
|
||||
#### Directly executing commands
|
||||
|
||||
```shell
|
||||
docker run -it --rm ente:latest ls
|
||||
```
|
||||
|
@ -4,8 +4,11 @@ services:
|
||||
image: ente-cli:latest
|
||||
command: /bin/sh
|
||||
volumes:
|
||||
# Replace /Volumes/Data/ with a folder path on your system, typically $HOME/.ente-cli/
|
||||
- ~/.ente-cli/:/cli-data:rw
|
||||
# - ~/Downloads/export-data:/data:rw
|
||||
# This is mandatory to mount the local directory to the container at /cli-data
|
||||
# CLI will use this directory to store the data required for syncing export
|
||||
- /path/to/local/directory/cli/:/cli-data:rw
|
||||
# You can add additional volumes to mount the export directory to the container
|
||||
# While adding account for export, you can use /data as the export directory.
|
||||
- /path/to/local/directory/export:/data:rw
|
||||
stdin_open: true
|
||||
tty: true
|
||||
|
@ -23,7 +23,7 @@ func main() {
|
||||
cliDBPath = constants.CliDataPath
|
||||
_, err := internal.ValidateDirForWrite(cliDBPath)
|
||||
if err != nil {
|
||||
log.Fatalf("Please mount a volume to %s to persist cli data\n%v\n", cliDBPath, err)
|
||||
log.Fatalf("Please mount a volume to %s\n%v\n", cliDBPath, err)
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user