How can i generate compile_commands.json with pio

i want use vscode plugin clangd to do code assist
clangd work with compile_commands.json
so how can i generate compile_commands.json with pio

See

https://docs.platformio.org/en/latest/integration/compile_commands.html

and

i got it,
thank a lot