serverkit-mise
Installation
# Gemfile
gem "serverkit-mise"
Usage
Prerequisites
Basic Example
Create a recipe file that uses the mise resources:
# recipe.yml
resources:
# Install Node.js using mise
- type: mise_install
name: node
version: 20.10.0
# Install Ruby and set it as global
- type: mise_use
name: ruby
version: 3.3.0
Then apply your recipe with Serverkit:
$ serverkit apply recipe.yml
Resource
mise_install
Install specified tool via mise.
Attributes
-
name
- tool name (required) -
version
- tool version (optional)
Example
resources:
- type: mise_install
name: go
- type: mise_install
name: ruby
version: 3.4.3
mise_use
Install specified tool and add the version to mise.yml
.
Attributes
-
name
- tool name (required) -
version
- tool version (optional, if not specified, the latest version will be installed) -
global
- global option (optional, default:true
)
Example
resources:
- type: mise_use
name: go
version: '1.23'
global: false
- type: mise_use
name: ruby
Contributing
Bug reports and pull requests are welcome on GitHub at serverkit/serverkit-mise.
License
The gem is available as open source under the terms of the MIT License.