Serverless Devs 开发者工具 - Python 安装包(自动安装最新版本)
Project description
Serverless Devs - Python Package
简体中文 | English
Install Serverless Devs developer tools via Python pip (automatically installs the latest version).
Features
- ✅ Automatically installs the latest version of Serverless Devs
- ✅ Automatically handles Node.js environment dependencies
- ✅ Supports Windows, Linux, macOS
- ✅ One-click installation, ready to use
- 🌍 Supports domestic mirror acceleration
Installation
Install via pip
pip install serverless-devs
Use domestic mirror for acceleration
# China mirror
pip install serverless-devs -i https://pypi.tuna.tsinghua.edu.cn/simple
The installation process will automatically:
- Download and run the official Serverless Devs installation script
- Detect and install Node.js (if needed)
- Install the latest version of Serverless Devs
Usage
After installation, you can use the s command directly:
# Check version
s --version
# View help
s --help
# Configure credentials
s config add
# Initialize project
s init
# Deploy project
s deploy
Manual Installation/Reinstallation
If automatic installation fails or you need to reinstall the latest version:
s-install
Use domestic mirror:
# Linux/macOS
export USE_MIRROR=1
s-install
# Windows CMD
set USE_MIRROR=1
s-install
# Windows PowerShell
$env:USE_MIRROR=1
s-install
Uninstallation
pip uninstall serverless-devs
Note: This only uninstalls the Python wrapper, not Serverless Devs itself. To completely uninstall, manually delete Serverless Devs:
- Linux/macOS:
rm -rf ~/.s- Windows: Delete
C:\Users\<username>\.sdirectory
Supported Platforms
- ✅ Windows (x64)
- ✅ Linux (x64)
- ✅ macOS (x64/arm64)
Requirements
- Python 3.7+
- Internet connection (for downloading installation script)
How It Works
After installing via pip, this package executes the official Serverless Devs installation script:
curl -o- -L https://cli.serverless-devs.com/install.sh | bash
The script will:
- Detect system environment
- Automatically install Node.js (if needed)
- Install the latest version of Serverless Devs via npm
Troubleshooting
Q: Installation failed?
A: Try these solutions:
# 1. Run installation manually
s-install
# 2. Use domestic mirror
export USE_MIRROR=1 # Linux/macOS
s-install
# 3. Use official installation script directly
curl -o- -L https://cli.serverless-devs.com/install.sh | bash
Q: How to update to the latest version?
A: Rerun the installation command:
s-install
Or use npm:
npm update -g @serverless-devs/s
Q: How to check the installed version?
A: Run:
s --version
Q: PowerShell execution policy issue on Windows
A: Run PowerShell as administrator and execute:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Links
- Official Website: https://www.serverless-devs.com/
- GitHub: https://github.com/Serverless-Devs/Serverless-Devs
- Documentation: https://docs.serverless-devs.com/
- Registry: https://registry.serverless-devs.com/
- DingTalk Group: 33947367
License
MIT License
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file serverless_devs-1.0.4.tar.gz.
File metadata
- Download URL: serverless_devs-1.0.4.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4af4dfca0bcd341ac189374706f7d75a3712882104148aabf204b810be1589c7
|
|
| MD5 |
6ac3935bef9e07027103cf7e921e96f5
|
|
| BLAKE2b-256 |
90e2f22d7c63e2f3eea9fa0639b22a6c7e3e210d4452413615bae7873930606e
|
File details
Details for the file serverless_devs-1.0.4-py3-none-any.whl.
File metadata
- Download URL: serverless_devs-1.0.4-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e90c91323a264fb59fdb30bbd9a376462b9d8fa072e48e7f715dddbcad8edbf9
|
|
| MD5 |
18cfb20af57bf6702c35ecaafb45edd4
|
|
| BLAKE2b-256 |
3476b3e0f63e9c5b3fa1eb98f92e7ce30a2eec24eb0f4165d26a2f535254a313
|