All Collections
Our Command-line Tool
Using the command-line tool
Archiving files and folders with Jottacloud CLI
Archiving files and folders with Jottacloud CLI

Learn how to Archive files and folders with Jottacloud CLI

Updated over a week ago

To upload a file or folder directly to the Jottacloud Web Archive, simply use the jotta-cli archive command.

Example:
jotta-cli archive "path/to/file" 

If a single file is selected, Jottacloud CLI will then start to checksum and upload the file. This is visible in the terminal GUI.

Note: Files are stored in a subfolder of the Archive with the same name as the device
name.

If a folder is uploaded, it can be checked with the following commands:

  • jotta-cli list uploads will show all ongoing uploads

  • jotta-cli observe --uploadid=UPLOADID will show the progress of each file in the folder being uploaded.


You can also specify a path under Archive to save the file or folder to.

Example:

jotta-cli archive "path/to/file" --remote=folder/subfolder/filename

This will save the file to Archive/folder/subfolder/filename

You can share the file immediately after uploading it, and optionally copy the share link to your clipboard.

Example:

jotta-cli archive "path/to/file" --share --clipboard


If you don't need/want the 'ui' ( for instance if you are using a script of some kind ) you can specify --nogui and the terminal will not switch to raw mode.

Example:

jotta-cli archive "path/to/file" --nogui

 

You can also pipe data from stdin to archive. When doing this the ui is disabled. Also make sure you specify the desired filename and path as otherwise it will be assigned a random name.

Example:

echo "Hello world!" | jotta-cli archive -I --remote="helloworld.txt"

Did this answer your question?