简体中文 | English
Install Serverless Devs developer tools via Python pip (automatically installs the latest version).
- ✅ 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
pip install serverless-devs
# China mirror
pip install serverless-devs -i https://pypi.tuna.tsinghua.edu.cn/simpleThe 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
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
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
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
- ✅ Windows (x64)
- ✅ Linux (x64)
- ✅ macOS (x64/arm64)
- Python 3.7+
- Internet connection (for downloading installation script)
After installing via pip, this package executes the official Serverless Devs installation script:
curl -o- -L https://cli.serverless-devs.com/install.sh | bashThe script will:
- Detect system environment
- Automatically install Node.js (if needed)
- Install the latest version of Serverless Devs via npm
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
A: Rerun the installation command:
s-install
Or use npm:
npm update -g @serverless-devs/s
A: Run:
s --version
A: Run PowerShell as administrator and execute:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
- 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
MIT License
Contributions are welcome! Please feel free to submit a Pull Request.