| 1 |
--- |
| 2 |
title: 'Installation' |
| 3 |
--- |
| 4 |
|
| 5 |
## ArchLinux |
| 6 |
|
| 7 |
An [AUR package](https://aur.archlinux.org/packages/changie/) is available. |
| 8 |
|
| 9 |
```sh |
| 10 |
trizen -S changie |
| 11 |
``` |
| 12 |
|
| 13 |
## Docker |
| 14 |
|
| 15 |
Docker images are uploaded to [GitHub Packages](https://github.com/miniscruff/changie/pkgs/container/changie). |
| 16 |
|
| 17 |
```sh |
| 18 |
# Replace latest with any changie command |
| 19 |
docker run \ |
| 20 |
--mount type=bind,source=$PWD,target=/src \ |
| 21 |
-w /src \ |
| 22 |
ghcr.io/miniscruff/changie \ |
| 23 |
latest |
| 24 |
``` |
| 25 |
|
| 26 |
**Notes** |
| 27 |
1. In order to complete prompts with docker you will need to use an [interactive terminal](https://docs.docker.com/engine/reference/commandline/run/#assign-name-and-allocate-pseudo-tty---name--it) |
| 28 |
1. You may also want to include your own user and group ID if any files would be created using the [user option](https://docs.docker.com/engine/reference/run/#user). |
| 29 |
|
| 30 |
```sh |
| 31 |
docker run \ |
| 32 |
--mount type=bind,source=$PWD,target=/src \ |
| 33 |
-w /src \ |
| 34 |
-it \ |
| 35 |
--user $(id -u ${USER}):$(id -g ${USER}) \ |
| 36 |
ghcr.io/miniscruff/changie \ |
| 37 |
new |
| 38 |
``` |
| 39 |
|
| 40 |
## GitHub action |
| 41 |
|
| 42 |
This [GitHub action](https://github.com/miniscruff/changie-action) can be used. |
| 43 |
|
| 44 |
```yaml |
| 45 |
- name: Batch a new minor version |
| 46 |
uses: miniscruff/changie-action@VERSION # view action repo for latest version |
| 47 |
with: |
| 48 |
version: latest # use the latest changie version |
| 49 |
args: batch minor |
| 50 |
``` |
| 51 |
|
| 52 |
## macOS with Homebrew |
| 53 |
|
| 54 |
On macOS, you can use [Homebrew](https://brew.sh/) to install changie from homebrew core. |
| 55 |
|
| 56 |
```sh |
| 57 |
brew install changie |
| 58 |
``` |
| 59 |
|
| 60 |
## Manual |
| 61 |
|
| 62 |
* Download from [here](https://github.com/miniscruff/changie/releases). |
| 63 |
* Add executable somewhere in your path depending on your platform. |
| 64 |
|
| 65 |
## Manual deb/rpm packages |
| 66 |
|
| 67 |
Download a `.deb` or `.rpm` file from the [releases page](https://github.com/miniscruff/changie/releases) |
| 68 |
and install with `dpkg -i` and `rpm -i` respectively. |
| 69 |
|
| 70 |
## Mise |
| 71 |
|
| 72 |
Changie is included in the [Mise](https://mise.jdx.dev/) registry. |
| 73 |
It's recommended to use `mise use` for tools. |
| 74 |
|
| 75 |
```sh |
| 76 |
mise use changie |
| 77 |
``` |
| 78 |
|
| 79 |
This will add changie to the `mise.toml` file. |
| 80 |
```toml |
| 81 |
[tools] |
| 82 |
changie = "latest" |
| 83 |
``` |
| 84 |
|
| 85 |
Or if you only want to use changie for a single mise task, such as `changie new`. |
| 86 |
|
| 87 |
```toml |
| 88 |
[tasks.fragment] |
| 89 |
tools.changie = "latest" |
| 90 |
run = "changie new" |
| 91 |
``` |
| 92 |
|
| 93 |
## NodeJS |
| 94 |
|
| 95 |
Changie is available as an [NPM package](https://www.npmjs.com/package/changie). |
| 96 |
|
| 97 |
To add as a dependency of your project |
| 98 |
|
| 99 |
```sh |
| 100 |
npm i -D changie |
| 101 |
``` |
| 102 |
|
| 103 |
To install globally |
| 104 |
|
| 105 |
``` |
| 106 |
npm i -g changie |
| 107 |
``` |
| 108 |
|
| 109 |
To run without adding a dependency |
| 110 |
|
| 111 |
``` |
| 112 |
npx changie |
| 113 |
``` |
| 114 |
|
| 115 |
## Source |
| 116 |
|
| 117 |
Go install can be used to download changie from the main branch. |
| 118 |
|
| 119 |
```sh |
| 120 |
go install github.com/miniscruff/changie@latest |
| 121 |
``` |
| 122 |
|
| 123 |
## UBI ( universal binary installer ) |
| 124 |
|
| 125 |
[UBI](https://github.com/houseabsolute/ubi) can be used to install Changie binaries directly from |
| 126 |
GitHub. |
| 127 |
|
| 128 |
```sh |
| 129 |
ubi --project miniscruff/changie --in /binary/path |
| 130 |
``` |
| 131 |
|
| 132 |
## Windows Scoop |
| 133 |
|
| 134 |
On Windows you can use [scoop](https://scoop.sh/) by first adding the repo and then installing. |
| 135 |
```sh |
| 136 |
scoop bucket add changie https://github.com/miniscruff/changie |
| 137 |
scoop install changie |
| 138 |
``` |
| 139 |
|
| 140 |
## Winget |
| 141 |
|
| 142 |
On Windows you can also use the [winget](https://github.com/microsoft/winget-pkgs) package manager. |
| 143 |
|
| 144 |
```sh |
| 145 |
winget install miniscruff.changie |
| 146 |
``` |