Skip to main content

EepyFileServer API CLI written in Python

Project description

efs-cli (formerly eepyfileserver-cli)

command line interface for eepyfileserver written in python

prerequisites

  • python 3.10 (3.12+ recommended)
  • eepyfileserver 1.1.0-alpha (or later for some features, such as users)

install

pip install efs-cli

usage

log in to an instance

#login fully (lets you upload and download files)
#password is saved in PLAIN TEXT
efs-cli auth "https://example.com" "password123" --custom-api-path (optional) "/meow/v123"

#login only using the url (lets you download PUBLIC files)
efs-cli auth  "https://example.com"

efs-cli login ...

see and edit your configs

cli config

efs-cli config
efs-cli config --reset # resets your entire config

efs-cli conf
efs-cli cli-config

efs config

efs-cli efs-config
efs-cli efs-conf

view version

efs-cli version
efs-cli ver

view instance information

efs-cli instance
efs-cli info

list files

efs-cli list
efs-cli ls
efs-cli files

view file/directory metadata

efs-cli metadata <path> --public (optional) # uses public url
efs-cli meta ...

edit a file

efs-cli edit <file_path>

get a url for a file

efs-cli url-for <file_path> --public (optional) --check-if-exists (optional) # --public uses public url, --check-if-exists checks if the file exists on efs
efs-cli url ...

download a file

efs-cli download /example.txt /home/maxeepy/Downloads/example.txt --public (optional) # uses public url
efs-cli get ...
efs-cli d ...

upload a file

efs-cli upload /home/maxeepy/Downloads/example.txt /example.txt
efs-cli post ...
efs-cli up ...
efs-cli put ...

overwrite a file

efs-cli overwrite /home/maxeepy/Downloads/example.txt /example.txt
efs-cli over ...

delete a file

efs-cli delete /example.txt
efs-cli remove ...
efs-cli rm ...

read a file

efs-cli read /example.txt
efs-cli read /example.txt --no-less # doesn't use less
efs-cli cat ...

list users

efs-cli users
efs-cli listusers
efs-cli lsu

add a user

efs-cli adduser dir123 "rw" # or "ro"
efs-cli auser ...
efs-cli au ...

change a user

efs-cli changeuser efskey_123 dir123 "rw" # or "ro"
efs-cli chuser ...
efs-cli chu ...

remove a user

efs-cli removeuser efskey_123 --remove-dir (optional) # removes the user directory if set
efs-cli rmuser ...
efs-cli ru ...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

efs_cli-1.2.3.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

efs_cli-1.2.3-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file efs_cli-1.2.3.tar.gz.

File metadata

  • Download URL: efs_cli-1.2.3.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for efs_cli-1.2.3.tar.gz
Algorithm Hash digest
SHA256 33ad75038a3c0a20752ab66cfe60c3cba96fb40ad11555b2f9919ffc2211e6a2
MD5 c2bc7bb843bd135cd40bf119f221b698
BLAKE2b-256 5a4e8bba399499f4c7c5576417967c1ac49af2616606b0a42dc07fc7d7f05931

See more details on using hashes here.

File details

Details for the file efs_cli-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: efs_cli-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for efs_cli-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2152304fe9ff9ecda35ebcd895bbce942bf0973d0c2c649fce355a5a08d41b14
MD5 be875a6d094b4652b734fc29a7d91aba
BLAKE2b-256 2baa33b35fdfb7aeabadf064144281a124a9730bba8da16ab541ea12ec056797

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page