forgeFRENParcourir les dépôts

miseREADME.md

6b43a505698341ce02e15c97ca3d37e17537fa47

At commit 6b43a50

92 lines · 3.0 KiBRaw
  1. # mise (Cleyrop Forge backend)
  2. A [`mise`](https://mise.jdx.dev) backend plugin for installing and upgrading CLI tools published on Cleyrop's public forge ([`code.cleyrop.tech`](https://code.cleyrop.tech)).
  3. ## Quick Start
  4. ### In a project (`mise.toml`)
  5. ```toml
  6. [plugins]
  7. forge = "https://code.cleyrop.tech/mise.git"
  8. [tools]
  9. "forge:roneo" = "latest"
  10. ```
  11. Then run:
  12. ```sh
  13. mise install
  14. mise upgrade
  15. ```
  16. ### Globally via CLI
  17. Install the plugin under the `forge` backend prefix:
  18. ```sh
  19. mise plugins install forge https://code.cleyrop.tech/mise.git
  20. mise use -g forge:roneo@latest
  21. ```
  22. Check available versions or upgrade later:
  23. ```sh
  24. mise ls-remote forge:roneo
  25. mise outdated
  26. mise upgrade forge:roneo
  27. ```
  28. ## Multi-Binary Repositories
  29. A single plugin handles every tool published on the forge. When a repository ships multiple binaries in the same release, select a specific binary using `forge:<repo>/<bin>`:
  30. ```toml
  31. [tools]
  32. "forge:my-suite" = "1.2.0" # default binary ("my-suite")
  33. "forge:my-suite/helper" = "1.2.0" # specific binary ("helper") from "my-suite"
  34. ```
  35. ## Options & Environment Variables
  36. | Option (`mise.toml`) | Environment Variable | Default | Description |
  37. | --- | --- | --- | --- |
  38. | `url` | `MISE_FORGE_URL` | `https://code.cleyrop.tech` | Base URL of the forge instance |
  39. | `bin` | — | `<repo>` | Explicit binary name (alternative to `forge:<repo>/<bin>`) |
  40. | `tag_prefix` | — | `v` | Tag prefix for fast-path lookup (falls back to full listing if not found) |
  41. | `verify_cosign` | `MISE_FORGE_VERIFY_COSIGN` | `false` | Require and verify Cosign blob signatures against `key_url` |
  42. | — | `MISE_FORGE_TOKEN` | — | Optional Bearer token for authenticated forge instances |
  43. Example with options:
  44. ```toml
  45. [tools]
  46. "forge:roneo" = { version = "0.1.0", verify_cosign = "true" }
  47. ```
  48. For repositories that only publish prereleases (such as `-alpha.*` tags), enable `mise`'s prerelease matching (`MISE_PRERELEASES=1` or `prereleases = true`) when using `@latest`, or pin the exact prerelease version.
  49. ## Release API Contract
  50. This plugin consumes the read-only public forge release API (`docs/PUBLIC-FORGE-API.md`):
  51. - `GET /api/v1/repos` — published repositories (`mise search`)
  52. - `GET /api/v1/repos/<repo>/releases` — releases newest-first, paginated via `Link: <…>; rel="next"`
  53. - `GET /api/v1/repos/<repo>/releases/<tag>` and `…/releases/latest` — single release metadata
  54. - `GET /<repo>/releases/download/<tag>/<asset>` — immutable release binaries/archives and signatures
  55. - `GET /api/v1/keys/<name>.pub` — Cosign public key
  56. Platform selection uses the declared `os` (`linux`, `darwin`, `windows`), `arch` (`amd64`, `arm64`), and `bin` fields from the release manifest rather than filename heuristics. Every download is verified against its declared `sha256` digest before installation.
  57. ## Running Tests
  58. The end-to-end test suite starts a local mock server implementing the release API and runs the real `mise` binary inside an isolated temporary data/cache/config directory:
  59. ```sh
  60. python3 tests/e2e.py
  61. ```
  62. ## License
  63. Apache-2.0 — see [LICENSE](LICENSE).