Published at
Updated at
Reading time
1min

Disclaimer, I didn't come up with the idea of firing the Raycast confetti from the command line.

Raycast UI highlighting the native confetti command.

Josh's tip is too good not to write down, though, because more people need to know about it. And, obviously, shell sessions need more confetti!

But who's Josh? Josh maintains a public TIL repo that I'm following via RSS. He (and I now) learned how to use the Raycast Confetti command from the CLI.

Implementing the command is almost too easy. Here's my new ~/.bin/confetti command.

#!/bin/bash

open raycast://extensions/raycast/raycast/confetti

That's it!

Terminal executing `confetti` covered in confetti

Apparently, Raycast registers a protocol handler (raycast://) which you can call from anywhere. Whenever you open this URL (your browser works fine, too), the Raycast "confetti" command will be triggered. Magic!

If you enjoyed this article...

Join 6.1k readers and learn something new every week with Web Weekly.

Web Weekly — Your friendly Web Dev newsletter
Reply to this post and share your thoughts via good old email.
Stefan standing in the park in front of a green background

About Stefan Judis

Frontend nerd with over ten years of experience, freelance dev, "Today I Learned" blogger, conference speaker, and Open Source maintainer.

Related Topics

Related Articles