74 个版本 (30 个破坏性更新)

0.31.0 2024 年 8 月 23 日
0.29.2 2024 年 6 月 17 日
0.27.0-alpha.12024 年 3 月 18 日
0.25.0 2023 年 12 月 29 日
0.1.7 2020 年 11 月 10 日

#169 in WebAssembly

Download history 344/week @ 2024-05-03 349/week @ 2024-05-10 180/week @ 2024-05-17 272/week @ 2024-05-24 175/week @ 2024-05-31 374/week @ 2024-06-07 358/week @ 2024-06-14 318/week @ 2024-06-21 316/week @ 2024-06-28 362/week @ 2024-07-05 461/week @ 2024-07-12 515/week @ 2024-07-19 948/week @ 2024-07-26 575/week @ 2024-08-02 337/week @ 2024-08-09 505/week @ 2024-08-16

2,494 每月下载量

Apache-2.0LGPL-3.0-or-later

2.5MB
24K SLoC

Latest Release Rust Build Rust Version Contributors Good first issues wash-cli

                                     _                 _    _____ _          _ _
                                ____| |               | |  / ____| |        | | |
 __      ____ _ ___ _ __ ___  / ____| | ___  _   _  __| | | (___ | |__   ___| | |
 \ \ /\ / / _` / __| '_ ` _ \| |    | |/ _ \| | | |/ _` |  \___ \| '_ \ / _ \ | |
  \ 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_PROXYHTTPS_PROXY 环境变量为代理 URL。如果您的代理需要身份验证,您可以将 WASH_PROXY_USERNAMEWASH_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