Access your Filen Drive
$ filen [options...] <cmd...>
Options:
--root <path>
,-r <path
: execute a stateless command from a different working directory--json
: format output as JSON--no-autocomplete
: disable autocompletion (for performance or bandwidth reasons)
Available commands
Many common Unix-style commands are available:
ls <path to directory>
: list items inside a directory (pass-l
for more detailed output)cat <path to file>
: print content of a text filehead <path to file>
/tail <path to file>
: print first / last 10 lines of a text file (pass-n 3
for only 3 lines etc.)mkdir <path to directory>
: create a directoryrm <path>
: delete a file or directory (--no-trash
to delete permanently)stat <path>
: display information about a file or directorystatfs
: display information about your Filen cloud drivewhoami
: print the current usermv <from> <to>
/cp <from> <to>
: move or copy a file to a path (parent directory or file)
There are also non-standard commands specific to Filen:
download <cloud path> <local destination>
: download a file or directory from the cloud into a local destinationupload <local file> <cloud path>
: upload a local file into the cloud at a specified pathwrite <file> <content...>
: write text to a fileopen <file>
: open a file locally in the associated applicationedit <file>
: edit a file locally in the associated application (save and close to re-upload)view <path>
: view a directory in the Web Drive (you can also invokefilen drive
to quickly open the Web Drive)favorites
/recents
: display favorites or recentsfavorite <path>
/unfavorite <path>
: favorite or unfavorite a file or directory
Interactive mode
Invoke the Filen CLI without any specified commands to enter interactive mode.
There you can specify paths as absolute (starting with /
) or relative to the current working directory (supports .
and ..
).
Additional available commands:
help
: display available commandscd <path>
: navigate to a different pathls
: list items inside current directoryexit
: exit interactive mode
Trash
filen trash
: view trash itemsfilen trash restore
: restore a trash itemfilen trash delete
: permanently delete a trash itemfilen trash empty
: permanently delete all trash items
Public Links
filen links
: view all public linksfilen links <path>
: create, view, edit or delete a public link for the given path