upease
v1.0.0
Published
A powerful Node.js-based CLI tool for effortless file uploads to NOS (NetEase Object Storage) service.
Downloads
11
Readme
upease
A powerful Node.js-based CLI tool for effortless file uploads to NOS (NetEase Object Storage) service.
Features
- Easy-to-use CLI interface
- Support for uploading single files or entire directories
- Configuration management for multiple NOS accounts
- File listing and removal capabilities
- MD5 hash generation for uploaded files
- Secure storage of NOS credentials
Installation
pnpm install -g upease
Usage
Configuration
Before using upease, you need to configure your NOS credentials. Use the following commands to manage your configurations:
# Add a new configuration
upease config add
# List all configurations
upease config list
# Use a specific configuration
upease config use <name>
# Edit an existing configuration
upease config edit <name>
# Delete a configuration
upease config delete <name>
Uploading files
To upload a file or directory:
# Upload a single file
upease up -f <file_path> -k <file_name>
# Upload a directory
upease up -f <dir_path> -k <dir_name>
Listing Files
To list files in your NOS bucket:
upease list -p <prefix>
Removing Files
To remove a file from your NOS bucket:
upease rm -k <file_name>
Development
To set up the development environment:
- Clone the repository
- Run pnpm install to install dependencies
- Use pnpm run build to build the project
- Use pnpm run dev for development with watch mode
- Contributing
- Contributions are welcome! Please feel free to submit a Pull Request.