extism cli 模式简单试用

安装cli

curl https://get.extism.org/cli | sh

cli 模式运行

官方提供了一个示例项目,可以快速体验

  • 命令
PLUGIN_URL="https://github.com/extism/plugins/releases/latest/download/count_vowels.wasm"
extism call $PLUGIN_URL count_vowels --input qwertyuiop
  • 效果

说明

以上是一个简单基于cli的试用,后边会对于语言sdk 进行一些使用说明

参考资料

https://extism.org/docs/quickstart/host-quickstart
https://github.com/extism/cli
https://github.com/extism/plugins
https://extism.org/docs/questions

posted on 2024-02-13 08:04  荣锋亮  阅读(18)  评论(0编辑  收藏  举报

导航