tauri-apps / tauri-docs

The source for all Tauri project documentation.
https://tauri.app
MIT License
817 stars 616 forks source link

[request] Initialize Plugin Project update. #2422

Closed mikoto2000 closed 1 day ago

mikoto2000 commented 3 months ago

Question you want answered

Is Initialize Plugin Project command example valid?

Where did you look for an answer?

I try to create Tauri Plugin. so I ran npm run tauri plugin new helloworld and got the error tauri not found.

This command requires project to be created by npm create tauri-app@latest -- --beta.(install @tauri-apps/cli and add scripts in package.json)

but Normally, we don't need to create an application project.

I want to create a plugin project using npx directly.

example: npx @tauri-apps/cli plugin init --api -d . -n helloworld

Page URL

https://v2.tauri.app/develop/plugins/#initialize-plugin-project

Additional context

No response

Are you willing to work on this yourself?

mikoto2000 commented 2 months ago

I created the plugin with this command: npx @tauri-apps/cli@next plugin new --android helloworld