From b1423683a4f14c6787e8e8c8132130a7bbeb40f2 Mon Sep 17 00:00:00 2001
From: "promptless[bot]" <179508745+promptless[bot]@users.noreply.github.com>
Date: Tue, 25 Feb 2025 21:46:55 +0000
Subject: [PATCH] Documentation updates from Promptless
---
runtime/cli-updates.md | 245 ++++++++++++++++++++++++++++++++++
runtime/http-configuration.md | 54 ++++++++
2 files changed, 299 insertions(+)
create mode 100644 runtime/cli-updates.md
create mode 100644 runtime/http-configuration.md
diff --git a/runtime/cli-updates.md b/runtime/cli-updates.md
new file mode 100644
index 0000000..e829d2f
--- /dev/null
+++ b/runtime/cli-updates.md
@@ -0,0 +1,245 @@
+# CLI Updates - HTTP Configuration Options
+
+The Wasmer CLI has been updated with new options to support HTTP proxy and SSL certificate configuration. These options are particularly useful in corporate environments where network access is restricted or customized.
+
+## New CLI Options
+
+The following new options have been added to the `wasmer run` command:
+
+
+
+## Updated Help Output
+
+The complete help output for `wasmer run --help` now includes these new options:
+
+```
+Run a WebAssembly file or Wasmer container
+
+Usage: wasmer run [OPTIONS] [ARGS]...
+
+Arguments:
+
+ The file, URL, or package to run
+
+ [ARGS]...
+ Command-line arguments passed to the package
+
+Options:
+ --wasmer-dir
+ Set Wasmer's home directory
+
+ [env: WASMER_DIR=/home/user/.local/share/wasmenv/current]
+ [default: /home/user/.local/share/wasmenv/current]
+
+ --cache-dir
+ The directory cached artefacts are saved to
+
+ [env: WASMER_CACHE_DIR=/home/user/.wasmer/cache]
+ [default: /home/user/.local/share/wasmenv/current/cache]
+
+ --proxy
+ HTTP proxy URL
+
+ [env: HTTP_PROXY=]
+
+ --ca-file
+ Path to CA certificate file
+
+ [env: CA_FILE=]
+
+ --unsafe-disable-ssl-verify
+ Disable SSL verification (use with caution)
+
+ [env: WASMER_UNSAFE_DISABLE_SSL_VERIFY=]
+
+ -v, --verbose...
+ Generate verbose output (repeat for more verbosity)
+
+ -q, --quiet
+ Do not print progress messages
+
+ --registry
+ The registry to fetch packages from (inferred from the environment by default)
+
+ [env: WASMER_REGISTRY=]
+
+ --log-format
+ The format to use when generating logs
+
+ [env: LOG_FORMAT=]
+ [default: text]
+
+ Possible values:
+ - text: Human-readable logs
+ - json: Machine-readable logs
+
+ --token
+ The API token to use when communicating with the registry (inferred from the environment by default)
+
+ [env: WASMER_TOKEN=]
+
+ --color
+ When to display colored output
+
+ [default: auto]
+ [possible values: auto, always, never]
+
+ --singlepass
+ Use Singlepass compiler
+
+ --cranelift
+ Use Cranelift compiler
+
+ --llvm
+ Use LLVM compiler
+
+ --enable-verifier
+ Enable compiler internal verification.
+
+ Available for cranelift, LLVM and singlepass.
+
+ --llvm-debug-dir
+ LLVM debug directory, where IR and object files will be written to.
+
+ Only available for the LLVM compiler.
+
+ --enable-simd
+ Enable support for the SIMD proposal
+
+ --disable-threads
+ Disable support for the threads proposal
+
+ --enable-threads
+ Deprecated, threads are enabled by default
+
+ --enable-reference-types
+ Enable support for the reference types proposal
+
+ --enable-multi-value
+ Enable support for the multi value proposal
+
+ --enable-bulk-memory
+ Enable support for the bulk memory proposal
+
+ --enable-all
+ Enable support for all pre-standard proposals
+
+ --dir
+ WASI pre-opened directory
+
+ --mapdir
+ Map a host directory to a different location for the Wasm module
+
+ --env
+ Pass custom environment variables
+
+ --forward-host-env
+ Forward all host env variables to guest
+
+ [env: FORWARD_HOST_ENV=]
+
+ --use