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.1.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.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: efs_cli-1.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 4395e205c5269377fe23907bee86e79d28b7d8c6ee1e2df387c7dc71fb84931c
MD5 74275f89e19620a83b1d5db66d442e79
BLAKE2b-256 39e47a161521f5fd2886df71c00a308b10d2bca8902a2ae9f160faf5b5c43f85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: efs_cli-1.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 29bc2a19e18ff70dfc351c383dfe58b54a3448d54a218ca55b223e19bf32659b
MD5 2f573053e8837aa6e973c9b0e8513b9d
BLAKE2b-256 ad567c5c24f6f2b0221b5b1d45fae98c80ab05a660b99594735d557c3726fa2a

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