github.com/artpar/rclone@v1.67.3/docs/content/commands/rclone_link.md (about) 1 --- 2 title: "rclone link" 3 description: "Generate public link to file/folder." 4 slug: rclone_link 5 url: /commands/rclone_link/ 6 versionIntroduced: v1.41 7 # autogenerated - DO NOT EDIT, instead edit the source code in cmd/link/ and as part of making a release run "make commanddocs" 8 --- 9 # rclone link 10 11 Generate public link to file/folder. 12 13 ## Synopsis 14 15 rclone link will create, retrieve or remove a public link to the given 16 file or folder. 17 18 rclone link remote:path/to/file 19 rclone link remote:path/to/folder/ 20 rclone link --unlink remote:path/to/folder/ 21 rclone link --expire 1d remote:path/to/file 22 23 If you supply the --expire flag, it will set the expiration time 24 otherwise it will use the default (100 years). **Note** not all 25 backends support the --expire flag - if the backend doesn't support it 26 then the link returned won't expire. 27 28 Use the --unlink flag to remove existing public links to the file or 29 folder. **Note** not all backends support "--unlink" flag - those that 30 don't will just ignore it. 31 32 If successful, the last line of the output will contain the 33 link. Exact capabilities depend on the remote, but the link will 34 always by default be created with the least constraints – e.g. no 35 expiry, no password protection, accessible without account. 36 37 38 ``` 39 rclone link remote:path [flags] 40 ``` 41 42 ## Options 43 44 ``` 45 --expire Duration The amount of time that the link will be valid (default off) 46 -h, --help help for link 47 --unlink Remove existing public link to file/folder 48 ``` 49 50 51 See the [global flags page](/flags/) for global options not listed here. 52 53 # SEE ALSO 54 55 * [rclone](/commands/rclone/) - Show help for rclone commands, flags and backends. 56