Skip to content
Back to skills

Nix Command

ASecurity

Nix CLI command guidelines. Use new unified CLI (nix subcommand) instead of legacy commands (nix-build, nix-env, nix-shell, etc.). Use when running or suggesting Nix commands.

  • 3 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added May 27, 2026
data-aishell

Works with

  • cli

Security analysis

A100/100

Scanned November 28, 2026

npx -y skills add ncaq/konoka --skill nix-command --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nix Command?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nix Command
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ncaq-nix-command/badge)](https://www.skillsdirectory.com/skills/ncaq-nix-command)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nix-command
description: Nix CLI command guidelines. Use new unified CLI (nix subcommand) instead of legacy commands (nix-build, nix-env, nix-shell, etc.). Use when running or suggesting Nix commands.
user-invocable: false
---

# Nixは新しい統一CLIを使う

`experimental-features = nix-command flakes`が有効な環境では、
`nix-build`や`nix-env`のような旧形式のコマンドを使わず、
新しい統一CLI(`nix <subcommand>`形式)を使ってください。

新形式はビルドログをデフォルトでは表示しません。
ビルドログを表示するには`-L`を付けます。

```zsh
nix build 'nixpkgs#hello' -L
nix develop -L
```

## 旧形式と新形式の対応

| 旧形式                                   | 新形式                              |
| ---------------------------------------- | ----------------------------------- |
| `nix-build`                              | `nix build`                         |
| `nix-shell`(ビルド環境)                  | `nix develop`                       |
| `nix-shell -p pkg`(一時利用)             | `nix shell nixpkgs#pkg`             |
| `nix-instantiate`                        | `nix eval` / `nix derivation show`  |
| `nix-env -i` / `nix-env -iA`             | `nix profile add`                   |
| `nix-env -e`                             | `nix profile remove`                |
| `nix-env -u`                             | `nix profile upgrade`               |
| `nix-env -q`                             | `nix profile list`                  |
| `nix-env -qa`                            | `nix search`                        |
| `nix-env --rollback`                     | `nix profile rollback`              |
| `nix-env --list-generations`             | `nix profile history`               |
| `nix-env --delete-generations`           | `nix profile wipe-history`          |
| `nix-store --gc` / `nix-collect-garbage` | `nix store gc`                      |
| `nix-store --optimise`                   | `nix store optimise`                |
| `nix-store --add`                        | `nix store add`                     |
| `nix-store --delete`                     | `nix store delete`                  |
| `nix-store --verify`                     | `nix store verify`                  |
| `nix-store --repair-path`                | `nix store repair`                  |
| `nix-store -q`                           | `nix path-info`                     |
| `nix-store -qR`                          | `nix path-info -r`                  |
| `nix-store -l`                           | `nix log`                           |
| `nix-copy-closure`                       | `nix copy`                          |
| `nix-hash --flat`                        | `nix hash file`                     |
| `nix-hash`                               | `nix hash path`                     |
| `nix-hash --to-base32`等                 | `nix hash convert`                  |
| `nix-prefetch-url`                       | `nix store prefetch-file`           |
| `nix-channel`                            | `nix flake update` / `nix registry` |

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data-ai →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.