Loading...
Loading...
Verify and install all prerequisites for Omni Gateway custom policy development with PDK — Anypoint CLI v4 with the PDK plugin, Rust toolchain, wasm32-wasip1 target, Docker, and Anypoint Platform credentials. Use when any PDK skill reports a missing tool, when the user asks "how do I set up PDK", "what do I need for custom policies", "PDK prerequisites", or when a build/publish/test command fails with a toolchain error.
npx skill4agent add mulesoft/mulesoft-dx pdk-prerequisites| # | Tool | Minimum Version | Used By |
|---|---|---|---|
| 1 | Node.js + npm | Node 18+ | Installing Anypoint CLI |
| 2 | Anypoint CLI v4 | Latest | Project scaffolding, publish, release |
| 3 | PDK Plugin ( | 1.8.0+ | |
| 4 | Rust (rustc + cargo) | See project | Compiling policy code |
| 5 | WASM target ( | — | Cross-compilation to WebAssembly |
| 6 | Docker | Docker Desktop or Engine | Local playground ( |
| 7 | make | Any version | Build orchestration via Makefile |
| 8 | Anypoint Platform credentials | — | Publishing to Exchange |
echo "=== Node.js ==="
node --version 2>&1 || echo "NOT FOUND"
echo "=== Anypoint CLI v4 ==="
anypoint-cli-v4 --version 2>&1 || echo "NOT FOUND"
echo "=== PDK Plugin ==="
anypoint-cli-v4 plugins 2>&1 | grep -E "pdk-plugin|pdk_plugin" || echo "NOT FOUND"
echo "=== Rust ==="
rustc --version 2>&1 || echo "NOT FOUND"
cargo --version 2>&1 || echo "NOT FOUND"
echo "=== WASM Target ==="
rustup target list --installed 2>&1 | grep wasm32-wasip1 || echo "NOT FOUND"
echo "=== Docker ==="
docker info > /dev/null 2>&1 && echo "Docker OK" || echo "NOT RUNNING or NOT INSTALLED"
echo "=== make ==="
make --version 2>&1 | head -1 || echo "NOT FOUND"✓ Node.js v20.11.0
✓ Anypoint CLI v4 4.2.1
✗ PDK Plugin — NOT FOUND
✓ Rust 1.82.0
✗ wasm32-wasip1 — NOT FOUND
✓ Docker Desktop 4.30.0
✓ make (GNU Make 3.81)
✗ Credentials — not checked yetbrew install nodecurl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejsnode --version
npm --versionnpm install -g anypoint-cli-v4anypoint-cli-v4 --versionPATHexport PATH="$(npm config get prefix)/bin:$PATH"anypoint-cli-v4 plugins:install anypoint-pdk-pluginanypoint-cli-v4 plugins | grep pdkanypoint-pdk-pluginanypoint-cli-pdk-pluginanypoint-cli-v4 plugins:uninstall anypoint-cli-pdk-plugin
anypoint-cli-v4 plugins:install anypoint-pdk-plugincurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -ysource "$HOME/.cargo/env"rustc --version
cargo --versionrustup target add wasm32-wasip1rustup target list --installed | grep wasm32-wasip1wasm32-wasiMakefileTARGETwasm32-wasip1make runpdk-testcurl -fsSL https://get.docker.com | sh
sudo usermod -aG docker $USERdocker info > /dev/null 2>&1 && echo "Docker OK"anypoint-cli-v4 confanypoint-cli-v4 account:login --client-id <CLIENT_ID> --client-secret <CLIENT_SECRET>anypoint-cli-v4 account:environment:listdevelop-pdk-policypdk-templatespdk-unitUnitTestBuilderpdk-testanypoint-cli-v4: command not foundPATHexport PATH="$(npm config get prefix)/bin:$PATH"~/.bashrc~/.zshrcanypoint-cli-v4 pdkanypoint-cli-pdk-pluginanypoint-cli-v4 plugins:uninstall anypoint-cli-pdk-plugin 2>/dev/null
anypoint-cli-v4 plugins:install anypoint-pdk-pluginrustup: command not foundcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"error[E0463]: can't find cratewasm32-wasip1rustup target add wasm32-wasip1make setup# ~/.cargo/config.toml
[http]
proxy = "http://your-proxy:port"
[https]
proxy = "http://your-proxy:port"make publishmake releaseanypoint-cli-v4 confanypoint-cli-v4 account:login --client-id <ID> --client-secret <SECRET>make runpdk-testdockersudo systemctl start dockerdockerwasm32-wasiwasm32-wasip1wasm32-wasip1wasm32-wasiTARGETMakefiletests/common/mod.rsrustup target add wasm32-wasip1