74 个版本 (30 个破坏性更新)
新 0.31.0 | 2024 年 8 月 23 日 |
---|---|
0.29.2 | 2024 年 6 月 17 日 |
0.27.0-alpha.1 | 2024 年 3 月 18 日 |
0.25.0 | 2023 年 12 月 29 日 |
0.1.7 | 2020 年 11 月 10 日 |
#169 in WebAssembly
2,494 每月下载量
2.5MB
24K SLoC
_ _ _____ _ _ _
____| | | | / ____| | | | |
__ ____ _ ___ _ __ ___ / ____| | ___ _ _ __| | | (___ | |__ ___| | |
\ \ /\ / / _` / __| '_ ` _ \| | | |/ _ \| | | |/ _` | \___ \| '_ \ / _ \ | |
\ V V / (_| \__ \ | | | | | |____| | (_) | |_| | (_| | ____) | | | | __/ | |
\_/\_/ \__,_|___/_| |_| |_|\_____|_|\___/ \__,_|\__,_| |_____/|_| |_|\___|_|_|
为什么选择洗洁
wash
是一系列命令行工具的集合,这些工具结合在一起形成了一个针对 wasmCloud 开发的全面 CLI。从生成新的 wasmCloud 项目、启动本地开发基础设施、与 OCI 兼容的注册表交互,到部署应用程序,所有这些都在 wash
的子命令中包含。我们的目标是使用 wash
将我们的工具封装在一个二进制文件中,以使使用 wasmCloud 开发 WebAssembly 变得简单和无缝。
安装洗洁
Cargo
cargo install wash-cli
Linux (deb/rpm + apt)
# Debian / Ubuntu (deb)
curl -s https://packagecloud.io/install/repositories/wasmcloud/core/script.deb.sh | sudo bash
# Fedora (rpm)
curl -s https://packagecloud.io/install/repositories/wasmcloud/core/script.rpm.sh | sudo bash
sudo apt install wash
Linux (snap)
sudo snap install wash --edge --devmode
Linux (brew)
brew install wasmcloud/wasmcloud/wash
MacOS (brew)
brew install wasmcloud/wasmcloud/wash
Windows (choco)
choco install wash
Nix
nix run github:wasmCloud/wash
代理身份验证
在您位于代理后面的场景中,您可以设置 HTTP_PROXY
和 HTTPS_PROXY
环境变量为代理 URL。如果您的代理需要身份验证,您可以将 WASH_PROXY_USERNAME
和 WASH_PROXY_PASSWORD
环境变量分别设置为用户名和密码。由于大多数密码包含特殊字符,建议使用单引号指定 'WASH_PROXY_PASSWORD' 的值。
例如,在 Unix 环境中
export WASH_PROXY_USERNAME='username'
export WASH_PROXY_PASSWORD='p@ssw0rd'
使用洗洁
wash
有多个子命令,每个子命令都专注于 wasmCloud 开发过程中的一个特定领域。
Build:
new Create a new project from a template
build Build (and sign) a wasmCloud component or capability provider
dev Start a developer loop to hot-reload a local wasmCloud component
inspect Inspect a capability provider or Wasm component for signing information and interfaces
par Create, inspect, and modify capability provider archive files
Run:
up Bootstrap a local wasmCloud environment
down Tear down a local wasmCloud environment (launched with wash up)
app Manage declarative applications and deployments (wadm)
spy Spy on all invocations a component sends and receives
ui Serve a web UI for wasmCloud
Iterate:
get Get information about different running wasmCloud resources
start Start a component or capability provider
scale Scale a component running in a host to a certain level of concurrency
stop Stop a component, capability provider, or host
update Update a component running in a host to newer image reference
link Link one component to another on a set of interfaces
call Invoke a simple function on a component running in a wasmCloud host
label Label (or un-label) a host with a key=value label pair
config Create configuration for components, capability providers and links
Publish:
pull Pull an artifact from an OCI compliant registry
push Push an artifact to an OCI compliant registry
Configure:
completions Generate shell completions for wash
ctx Manage wasmCloud host configuration contexts
drain Manage contents of local wasmCloud caches
keys Utilities for generating and managing signing keys
claims Generate and manage JWTs for wasmCloud components and capability providers
Shell 自动完成
wash
支持 Zsh、Bash、Fish 和 PowerShell 的自动完成。有关为您的 shell 安装自动完成的说明,请参阅 Completions。
为洗洁做出贡献
有关如何为 wash
项目做出贡献的更多信息,请参阅 CONTRIBUTING.md。
依赖项
~103MB
~2M SLoC