You can install curl with:
wapm install curl
You can run curl cli
$ wasmer run curl.wasm --mapdir=/etc/ssl:/etc/ssl -- https://registry.wapm.io/graphql -v
You will need Wasix to build the curl.wasm
file.
Steps:
- Setup wasix, see Installation Instructions
- Run
./build.sh