Skip to main content

Serverless Devs - Python Package

PyPI version Python Versions License GitHub stars

简体中文 | 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:

  1. Download and run the official Serverless Devs installation script
  2. Detect and install Node.js (if needed)
  3. 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>\.s directory

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:

  1. Detect system environment
  2. Automatically install Node.js (if needed)
  3. 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

License

MIT License

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Metadata

Release files for serverless-devs 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for serverless-devs 1.0.4
File Size Uploaded
serverless_devs-1.0.4.tar.gz 19.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for serverless-devs 1.0.4
File Interpreter ABI Platform
serverless_devs-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 30.0 kB

Release files / serverless_devs-1.0.4.tar.gz

Download URL serverless_devs-1.0.4.tar.gz
Size 19.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4af4dfca0bcd341ac189374706f7d75a3712882104148aabf204b810be1589c7
BLAKE2b-256 checksum
How to use checksums
90e2f22d7c63e2f3eea9fa0639b22a6c7e3e210d4452413615bae7873930606e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / serverless_devs-1.0.4-py3-none-any.whl

Download URL serverless_devs-1.0.4-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e90c91323a264fb59fdb30bbd9a376462b9d8fa072e48e7f715dddbcad8edbf9
BLAKE2b-256 checksum
How to use checksums
3476b3e0f63e9c5b3fa1eb98f92e7ce30a2eec24eb0f4165d26a2f535254a313
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page