8000 docs(guide): lift the getting-started, install, and setup guides by norrietaylor · Pull Request #941 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/guide/getting-started.md
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)
72 changes: 72 additions & 0 deletions docs/guide/install.md
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.
Comment thread
jessie-minimal marked this conversation as resolved.
Resolved

## 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).
63 changes: 63 additions & 0 deletions docs/guide/setup.md
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"

Comment thread
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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should the comment be min activate instead? I see this in the init toml file also

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The 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).
0