<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/creating-and-modifying-flakes-using-the-flakehub-cli-1sj7w3soe" -->

---
title: Creating and modifying flakes using the FlakeHub CLI
description: Determinate Systems has added two new commands to the FlakeHub CLI (`fh`): `fh add` and `fh init`. The `fh add` command lets users quickly add flake inputs to...
canonical: https://daily.dev/posts/creating-and-modifying-flakes-using-the-flakehub-cli-1sj7w3soe
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Creating and modifying flakes using the FlakeHub CLI | daily.dev
og:description: Determinate Systems has added two new commands to the FlakeHub CLI (`fh`): `fh add` and `fh init`. The `fh add` command lets users quickly add flake inputs to...
og:url: https://daily.dev/posts/creating-and-modifying-flakes-using-the-flakehub-cli-1sj7w3soe
og:image: https://api.daily.dev/og/posts/1sJ7W3soE.png
og:image:alt: Creating and modifying flakes using the FlakeHub CLI
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating and modifying flakes using the FlakeHub CLI

**[Determinate Systems](https://daily.dev/sources/determinate-systems)** · 5 min read · 0 upvotes · 0 comments

## Summary

Determinate Systems has added two new commands to the FlakeHub CLI (`fh`): `fh add` and `fh init`. The `fh add` command lets users quickly add flake inputs to an existing `flake.nix`, supporting both FlakeHub references (with SemVer) and arbitrary flake URLs. The `fh init` command generates a new `flake.nix` from scratch by inspecting the project directory and asking interactive questions — it supports language-specific flows for Rust, Go, Java, JavaScript, PHP, Python, Ruby, and Zig, and allows configuring system targets, environment variables, common utilities, and direnv integration. Unlike `nix flake init` templates, `fh init` tailors the output to the specific project context.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://determinate.systems/blog/fh-updates>

## Similar posts on daily.dev

- [One flake to rule them all](https://daily.dev/posts/one-flake-to-rule-them-all-oyz5p8fiz) · Farid Zakaria’s Blog · 1 upvotes · 1 comments
- [Changelog: FlakeHub Cache edge routing and a few crash fixes](https://daily.dev/posts/changelog-flakehub-cache-edge-routing-and-a-few-crash-fixes-umodwxeoj) · Determinate Systems · 0 upvotes · 0 comments
- [Dependabot version updates now support the Nix ecosystem](https://daily.dev/posts/dependabot-version-updates-now-support-the-nix-ecosystem-77socdz4m) · GitHub Changelog · 0 upvotes · 0 comments
- [The Great Nix Flake Check](https://daily.dev/posts/the-great-nix-flake-check-joelq4xlg) · Lobsters · 0 upvotes · 0 comments
- [Announcing dh, the DoltHub CLI](https://daily.dev/posts/announcing-dh-the-dolthub-cli-pypgth2c3) · DoltHub Blog · 0 upvotes · 0 comments

---

Tags: [#cli](https://daily.dev/tags/cli)

[View this post on daily.dev](https://daily.dev/posts/creating-and-modifying-flakes-using-the-flakehub-cli-1sj7w3soe)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Creating and modifying flakes using the FlakeHub CLI","url":"https://daily.dev/posts/creating-and-modifying-flakes-using-the-flakehub-cli-1sj7w3soe","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/creating-and-modifying-flakes-using-the-flakehub-cli-1sj7w3soe"},"datePublished":"2026-07-26T07:48:19.895Z","dateModified":"2026-07-26T07:49:59.472Z","description":"Determinate Systems has added two new commands to the FlakeHub CLI (`fh`): `fh add` and `fh init`. The `fh add` command lets users quickly add flake inputs to...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a557a8bed1b7001adf6b0fd128f9181c?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a557a8bed1b7001adf6b0fd128f9181c?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Determinate Systems","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Determinate Systems","logo":"https://media.daily.dev/image/upload/s--E2qrkc9w--/c_limit,w_256/f_auto,q_auto/v1785052094/logos/determinate-systems?_a=BAMAMicg0","url":"https://daily.dev/sources/determinate-systems"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/creating-and-modifying-flakes-using-the-flakehub-cli-1sj7w3soe","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"cli","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Determinate Systems","item":"https://daily.dev/sources/determinate-systems"},{"@type":"ListItem","position":3,"name":"Creating and modifying flakes using the FlakeHub CLI"}]}
```

