
I am a software developer living in Bordeaux. I am a .NET and Azure enthusiast, primarly coding in C# but I like to discover other languages and technologies too.
Search for a command to run...

I am a software developer living in Bordeaux. I am a .NET and Azure enthusiast, primarly coding in C# but I like to discover other languages and technologies too.
No comments yet. Be the first to comment.
Using Azure OpenID Connect with Pulumi in GitHub Actions

pnpm audit

Discussion about pnpm usage and popularity.

pnpm outdated

Why are we talking about CI in the first place? When working on a project, you typically focus on a specific feature at a time, making changes on a dedicated branch for that feature. When it's time for you to integrate these modifications into the pr...

Bordeaux Coders
10 posts
Sometimes, all you want to do is grab an npm package and execute a command with it, without having to install it (whether globally or as a dependency).
That's what you can do with pnpm dlx.
pnpm dlx vercel deploy
This example shows how to use the vercel CLI package without having to install it thanks to pnpm dlx.
In this example, pnpm downloads the vercel package, and executes it with the command deploy (that deploys a project to the Vercel platform).
You don't want to install globally a package because you only need to execute its binary script once
You don't want a package to be a dev dependency of your project, or you are not using it in the context of a Node project
You need to execute a CLI package command from a CI pipeline
You want to ensure you use the latest version of a package (useful for starter kits like create-vite, or create-vue)
For starter kits, you can use pnpm create instead of pnpm dlx. For instance, executing pnpm create vue is equivalent to executing pnpm dlx create-vue.