Skip to main content

Serverless Devs 开发者工具 - Python 安装包(自动安装最新版本)

Project description

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.

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

serverless_devs-1.0.4.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

serverless_devs-1.0.4-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

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

Hashes for serverless_devs-1.0.4.tar.gz
Algorithm Hash digest
SHA256 4af4dfca0bcd341ac189374706f7d75a3712882104148aabf204b810be1589c7
MD5 6ac3935bef9e07027103cf7e921e96f5
BLAKE2b-256 90e2f22d7c63e2f3eea9fa0639b22a6c7e3e210d4452413615bae7873930606e

See more details on using hashes here.

File details

Details for the file serverless_devs-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for serverless_devs-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e90c91323a264fb59fdb30bbd9a376462b9d8fa072e48e7f715dddbcad8edbf9
MD5 18cfb20af57bf6702c35ecaafb45edd4
BLAKE2b-256 3476b3e0f63e9c5b3fa1eb98f92e7ce30a2eec24eb0f4165d26a2f535254a313

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