NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Building a CLI for All of Cloudflare (blog.cloudflare.com)
8cvor6j844qw_d6 47 minutes ago [-]
> Tell us your hopes and dreams for a Cloudflare-wide CLI

It'd be great if the Wrangler CLI could display the required API token permissions upfront during local dev, so you know exactly what to provision before deploying. Even better if there were something like a `cf permissions check` command that tells you what's missing or unneeded perms with an API key.

dcre 9 minutes ago [-]
Wonderful post and I will be taking inspiration from it. Surprised not to see TypeSpec https://typespec.io/ mentioned, which is a TypeScript-like schema language that I like to describe as "what if OpenAPI was good". I'm guessing they considered and decided building their own would be both simpler and more flexible. The cost of BYO has come down a lot thanks to agents.
thegagne 40 seconds ago [-]
Love TypeSpec, agree it makes writing OpenAPI really easy.

But I’ve moved to using https://aep.dev style APIs as much as possible (sometimes written with TypeSpec), because the consistency allows you to use prebaked aepcli or very easily write your own since everything behaves like know “resources” with a consistent pattern.

cordwainersmith 4 minutes ago [-]
Finally. Jumping between wrangler, the dashboard, and raw API calls has been annoying for a while. I'm keen on the local explorer most, debugging Workers locally has always been clunky. Anyone know how this plays with Terraform-managed infra?
kodablah 45 minutes ago [-]
> You can try the technical preview today by running npx cf. Or you can install it globally by running npm install -g cf.

A couple of obvious questions - Is it open source (npmjs side doesn't point to repo)? And in general will it be available as a single binary instead of requiring nodejs tooling to install/use? If so, using recently-acquired Bun or another product/approach?

bakugo 22 minutes ago [-]
I can't find any repository, either, but the package is listed as MIT-licensed and includes source maps, so I assume it will be published soon.
bensmoif 43 minutes ago [-]
Oh yes to this! I spent yesterday morning working this out when it smacked me in the face
queuep 33 minutes ago [-]
I’ve used a lot of cloudflare functionality with Claude and their API. Worked very good
risyachka 15 minutes ago [-]
> Tell us your hopes and dreams for a Cloudflare-wide CLI

Please call it flare.

kodama-lens 44 minutes ago [-]
I'm happy that there will be more tooling, but the reason for that (and the target audience) should not be ai agents. It should be a good experience for humans!

Tools should be tested and quality assured. Something that was utterly missing for cloudflare's unusable v5 terraform provider. Quality over quantity with a ux that has humans in mind!

marcusestes 43 minutes ago [-]
Making a good experience for AI agents also makes a good experience for the humans that are tasked with the management of their agents.
climike 20 minutes ago [-]
Exactly! Number of turns, average tokens to achieve a task using your CLI, as well as average number of characters being returned per CLI command alongside other metrics: all important to both users and agents! I am working on allowing to accurately capture this at www.cliwatch.com! Feel free to request an example eval suite for a list of tasks you want to achieve with your CLI
latchkey 41 minutes ago [-]
I just wish they'd fix billing notifications. The ux makes it impossible to set it up. Been complaining about that on X, got a couple people saying they would look into it, even one that gave me his email address. Pure silence.
benatkin 39 minutes ago [-]
> Right now, cf provides commands for just a small subset of Cloudflare products.

Why didn't they vibe code support for more? With this on the heels of EmDash, and this being a technical preview, it feels inconsistent.

xnacly 52 minutes ago [-]
> We write a lot of TypeScript at Cloudflare. It’s the lingua franca of software engineering.

This scares me more than Im able to admit, typescript sucks and in my opinion its way worse than the more commonly used lingua franca of computing, which I would attribute to C. At least C can be used to create shared objects i guess?

dewey 50 minutes ago [-]
“Typescript sucks” is not really a great reason.
tombert 26 minutes ago [-]
Personally I haven't felt like Typescript has bought me enough over JavaScript to use it in contexts that I don't have to. I have to use TypeScript for work, and it's "fine", but I guess I haven't found that it helps all that much.

I'm not sure why; I guess it's because the web itself is already really flexible that I find that the types don't really buy me a lot since I have to encode that dynamism into it.

To be clear, before I get a lecture on type safety and how wonderful you think types are and how they should be in everything: I know. I like types in most languages. I didn't finish but I was doing a PhD in formal methods, and specifically in techniques to apply type safety to temporal logic. I assure you that I have heard all your reasoning for types before.

xnacly 47 minutes ago [-]
Well it does suck for a huge list of reasons but specifically disqualifying for being the lingua franca would be it being controlled by microsoft
rvz 43 minutes ago [-]
Well it does suck, and it isn't really great for implementing performant developer tools, such as parsers, formatters and so on.

The performance is that bad that the typescript developers are rewriting the language itself in Go. [0]

Tells me everything I need to know about how bad typescript is from a performance stand point.

[0] https://devblogs.microsoft.com/typescript/typescript-native-...

braebo 37 minutes ago [-]
That’s the lsp not runtime. Bun runs Typescript very fast. It’s a fantastic language and ecosystem.
skydhash 16 minutes ago [-]
I’ve just checked FFI in bun and it’s marked as experimental. There are great libraries in C/C++ world and FFI is kinda table stakes to use them.
rvz 2 minutes ago [-]
No where did I say "runtime". Even with that it's because of Zig, not TypeScript and that only proves my point even more.
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 17:03:21 GMT+0000 (Coordinated Universal Time) with Vercel.