# my-pi-setup

Save your Pi package setup as one copy-paste restore command. No git clone, no manifest file, no repo checkout.

## Move your Pi setup to another machine

On the machine that already has your Pi packages configured:

```bash
npx my-pi-setup
```

or explicitly:

```bash
npx my-pi-setup save
```

Copy the printed command into any notes app. It looks like this:

```bash
npx my-pi-setup restore pisetup:v1:eNqV...
```

On a fresh machine, paste and run that command. `my-pi-setup` decodes the setup code, shows the package list, opens the checkbox installer, and runs `pi install <source>` for selected packages.

Setup codes include only shareable Pi package sources from `~/.pi/agent/settings.json`. They do not include secrets, npm tokens, API keys, local paths, manifest files, or machine-specific files.

## Commands

```bash
npx my-pi-setup                         # print one restore command from ~/.pi/agent/settings.json
npx my-pi-setup save                    # same as default
npx my-pi-setup restore <setup-code>    # decode and install selected packages
npx my-pi-setup decode <setup-code>     # print packages without installing
```

Options:

```bash
--yes, -y      # skip checkbox UI and install every decoded package
--dry-run      # print pi install commands without running them
--help, -h     # show help
```
