Repository navigation
docs(guide): lift the getting-started, install, and setup guides #941
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
d19cdc3
docs(guide): lift the getting-started, install, and setup guides
norrietaylor 63b9f84
docs(guide): verify install with `min --version`
norrietaylor afc3848
docs(guide): drop the inaccurate Apple container macOS prerequisite
norrietaylor 82ef622
docs(guide): rewrite setup around a min session example
norrietaylor a33e616
docs(guide): start-guide accuracy fixes and upgrade/uninstall coverage
norrietaylor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- | ||
| description: "Quickstart for Minimal: install the CLI, initialize a project, and define your toolchain and dependencies for local-first, sandboxed builds." | ||
| --- | ||
|
|
||
| # Getting started with Minimal | ||
|
|
||
| New to Minimal? Like everyday usage, getting started with Minimal is simple. This documentation will walk you through how to install Minimal, how to initialize projects, and how to define your toolchain and dependencies for use across the org. | ||
|
|
||
| As a local-first, declarative build system, Minimal ensures that all builds and dev environments run entirely on your machine within isolated sandboxes. Minimal creates a consistent foundation for all users, whether developer, AI agent, or CI, around the org's tech stack. | ||
|
|
||
| Minimal is available for download on both Linux and macOS. [Learn more.](https://minimal.dev) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| --- | ||
| description: Install Minimal on Linux (x86_64/aarch64) or macOS (Apple Silicon). | ||
| --- | ||
|
|
||
| # Install Minimal | ||
|
|
||
| ## Linux | ||
|
|
||
| ### Requirements | ||
|
|
||
| - **x86_64** or **aarch64** architecture | ||
| - Kernel 5.10 or later with unprivileged user namespaces enabled. Ubuntu 24.04 | ||
| and later restrict them by default; see the | ||
| [Linux host setup guide](../reference/linux-host-setup.md) for the fix. | ||
|
|
||
| ### Install | ||
|
|
||
| ```shell | ||
| curl --proto "=https" --tlsv1.2 -fsSL https://go.minimal.dev/stable | sh | ||
| ``` | ||
|
|
||
| ### Verify | ||
|
|
||
| ```shell | ||
| min --version | ||
| ``` | ||
|
|
||
| If installed correctly, it will provide you with the version. | ||
|
|
||
| ## macOS | ||
|
|
||
| On macOS, Minimal boots a lightweight Linux microVM via libkrun on Apple's Hypervisor.framework. | ||
|
|
||
| ### Requirements | ||
|
|
||
| - **Apple Silicon** (M1 or later). Intel Macs are not supported | ||
|
|
||
| ### Install | ||
|
|
||
| Copy and paste the following into your terminal: | ||
|
|
||
| ```shell | ||
| curl --proto "=https" --tlsv1.2 -fsSL https://go.minimal.dev/stable | sh | ||
| ``` | ||
|
|
||
| ### Verify | ||
|
|
||
| ```shell | ||
| min --version | ||
| ``` | ||
|
|
||
| If installed correctly, it will provide you with the version. | ||
|
|
||
| ## Upgrade | ||
|
|
||
| Re-run the install command for your platform. The installer checks each | ||
| installed component against the current release and re-downloads only the ones | ||
| that changed, swapping them into place atomically. | ||
|
|
||
| Note: upgrading restarts the Minimal daemon, which interrupts any sessions that | ||
| are currently active. Detach first, or expect to reattach after the upgrade. | ||
|
|
||
| ## Uninstall | ||
|
|
||
| ```shell | ||
| curl --proto "=https" --tlsv1.2 -fsSL https://go.minimal.dev/stable | sh -s -- --uninstall | ||
| ``` | ||
|
|
||
| This removes every file a previous install placed, including the shell | ||
| integration. It accepts `--force` (also remove files you modified), `--purge` | ||
| (also delete Minimal's data, state, and cache directories), and `--dry-run` | ||
| (show what would be removed). | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| --- | ||
| description: Set up a project with min init, declare your session's tools in minimal.toml, then enter an isolated session with min activate. | ||
| --- | ||
|
|
||
| # Set up a project | ||
|
|
||
| Minimal reads a single `minimal.toml` at the root of your repository. It declares where your software comes from, how the project builds, and what every developer's session gets. Generate a starting point with `min init`, then enter a session. | ||
|
|
||
| ## Run `min init` | ||
|
|
||
| From your project directory, run: | ||
|
|
||
| ```shell | ||
| min init | ||
| ``` | ||
|
|
||
| `min init` inspects the source tree, detects the stack (Go, Rust, pnpm, npm, Bun, Deno, pip, uv, Gradle, Make, and more), and proposes a `minimal.toml`, asking for confirmation before writing it (pass `-y` to skip the prompt): | ||
|
|
||
| ```toml | ||
| # Generated by `minimal init` | ||
|
|
||
| [upstream] # Source of software & tooling | ||
| repo = "https://github.com/gominimal/pkgs" | ||
| branch = "main" | ||
| locked_commit = "9d36aa3d0fec09658fe3bbc676beeae49a89c53d" | ||
|
|
||
| [stack] | ||
| use = "rust" | ||
|
|
||
|
jessie-minimal marked this conversation as resolved.
Resolved
|
||
| [defaults] | ||
| state_key = "dev" | ||
|
|
||
| [session] # min attach | ||
| packages = ["base", "vim", "git"] | ||
| ``` | ||
|
|
||
| - `[upstream]` pins the software supply chain: the package registry and the exact commit it is read from. | ||
| - `[stack]` declares how the project builds. See the [stack reference](../reference/stack-specs.md). | ||
| - `[defaults]` sets build- and task-plane defaults, such as the `state_key` that tasks share persistent state under. | ||
| - `[session]` is the one that matters for day-to-day work: it lists the tools every contributor's session gets. See the [`minimal.toml` reference](../reference/minimal-dot-toml.md) for the full schema. | ||
|
|
||
| ## Declare your session's tools | ||
|
|
||
| Edit the `packages` list under `[session]` to add whatever your team works with. Extend the existing list; do not add a second `[session]` table, since TOML does not allow a table to be defined twice. | ||
|
|
||
| ```toml | ||
| [session] # min attach | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should the comment be
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TBH; at a glance this comment doesn't seem very helpful |
||
| packages = ["base", "vim", "git", "gh", "ripgrep", "claude-code"] | ||
| ``` | ||
|
|
||
| Every name resolves against the [Minimal Public Registry](https://github.com/gominimal/pkgs). Commit `minimal.toml` to your repository so every teammate, and every AI agent, gets an identical session. | ||
|
|
||
| ## Enter a session | ||
|
|
||
| Create and attach to an isolated session for the project: | ||
|
|
||
| ```shell | ||
| min activate --attach . | ||
| ``` | ||
|
|
||
| Minimal builds or fetches the declared packages, composes them into a sandbox seeded with a copy of your project (streamed in as a tarball), and drops you into a shell inside it. The `[session]` tools are on your `PATH`, and nothing touches the host. Type `exit` to leave; the session stays up, so you can `min attach` back to it later. | ||
|
|
||
| Next: [start a dev shell](./dev-shell.md), or [work alongside an agent](./agents.md). | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.