logoalt Hacker News

Cf: The Agentic CLI for the Cloudflare API

83 points • by macleos • today at 3:28 PM • 37 comments • view on HN

Comments

slowin • today at 5:56 PM

I don't understand why this is written in Typescript. This is a great example of how agents can write code (I'm sure they wrote `cf`), yet having fundamental computer science knowledge is still critical. Do not force your users to manage the dependencies of your cli. Do write your cli in a compiled language. Understand the reason for those decisions and tell your agents to use the correct architecture.

➕ show 7 replies
emadabdulrahim • today at 7:33 PM

It's crazy that some of the best product launches nowadays are CLIs.

➕ show 1 reply
alasano • today at 5:41 PM

I don't know what it is about wrangler that made me dislike it so much but I welcome this change since it's meant to replace wrangler.

➕ show 1 reply
smithclay • today at 5:39 PM

This is a lot to like here as someone who pretty much exclusively uses the Cloudflare API via agents. Hoping (since it's built on top of Forge), some kind of native terraform support is also in the works.

Great when you're a solo dev deploying a worker, but would be incredible for production deployments if this could also just natively output terraform code.

recroad • today at 5:50 PM

This is cool, but I've never had an issue with agents working on Cloudflare by just making REST calls. With the rest docs, it knows pretty much everything about what kind of operations it can do. Is the CLI a subset of that or does in encompass everything?

➕ show 1 reply
unified101 • today at 5:34 PM

I think the shape of clouds and services is going to change given current clouds are uxed for humans. Cloudflare is making the right bet. Specially the free agent report account. That's like a wonderful idea for building agent share.

esafak • today at 6:18 PM

1.0 isn't actually out and CI is red. https://github.com/cloudflare/cf/commits/main/ https://github.com/cloudflare/cf/releases

I have been using the pre-releases with success, but this post could have waited a few days!

ozarkerD • today at 7:41 PM

Great now i have to uninstall the Cloudfoundry CLI to not collide with this :)

➕ show 1 reply
zarmin • today at 8:31 PM

so uh, the favicon for cloudflare and soundcloud are just the same thing now? soundcloudflare?

verdverm • today at 5:29 PM

Kudos to cloudflare on this, it looks like a great CLI, I especially like the `cf cli search`.

Related, Matt Pocock's skill for having agents generate an interactive bash script for things only humans can do (or should do), presented in the context of devops like activities

https://github.com/mattpocock/skills/blob/main/skills/produc...

I have found that having the agents write scripts to use tools like this is better (less tokens, more reliability, fewer side quests) than giving it to them directly with markdown they may or may not follow on any given day.

The other benefit to this is that you can put scripts on either side of the agent and remove all credentials from their process, removing whole classes of issues you don't want to have to tell your boss about. CLIs like this are great for read-only debug sessions, but if you are going to make modifications to your cloud infra, keep doing IaC.

➕ show 1 reply
BigBalli • today at 8:56 PM

[dead]