files-cli

command module
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2021 License: MIT Imports: 9 Imported by: 0

README

Files.com Command Line App

The Files.com CLI App provides convenient access to the Files.com API.

Installation

Download latest release for Windows, MacOS, or Linux here

Homebrew
brew tap Files-com/homebrew-tap
brew install files-cli

Documentation

Setting API Key
Setting by ENV
export FILES_API_KEY="XXXX-XXXX..."
Set Via a Flag
files-cli folders list-for --api-key "XXXX-XXXX..."
List files

Return root folder listing

files-cli folders list-for --fields path,type

[{
    "path": "document.docx",
    "type": "file"
},
{
    "path": "other",
    "type": "directory"
}]

List a Folder

files-cli folders list-for other
Download a File/Folder
files-cli download [remote-path] [local-path]
Upload a File/Folder
files-cli upload [source-path] [remote-path]
Command Help
files-cli [command] --help

Development

To build for testing it assumes the go package is in parallel directory.

DEVELOPMENT_BUILD ./build.sh

This will build both the compressed release version and an uncompressed executable for the 3 platforms.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
lib

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL