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.4.tar.gz (7.9 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.4-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: efs_cli-1.2.4.tar.gz
  • Upload date:
  • Size: 7.9 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.4.tar.gz
Algorithm Hash digest
SHA256 704682dbc691231e3d21646c414b8e9631da57cb6f5822103223c8f294f8f297
MD5 614b665c623d111b01ae3a4aef3a76d8
BLAKE2b-256 cd57bb902d2bf0925efcbbc0dabf2d661b9cdc3d0bf9fd6e48184c99dc69e8ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: efs_cli-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 7.3 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 efd9be4e39e53d2e3ca6fd57eea8e44bb9c4cb21b8db187fa2be9d5615d58e93
MD5 b83a8b88a006a0bd64af56683c041699
BLAKE2b-256 4448523a793b0d0177748340debd8d4460fa57c57449f313a66d387047b124dc

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