{"id":13483184,"url":"https://github.com/crenv/crenv","last_synced_at":"2025-08-21T02:31:04.781Z","repository":{"id":72480683,"uuid":"38120771","full_name":"crenv/crenv","owner":"crenv","description":":gem: Crystal version manager like rbenv.","archived":false,"fork":false,"pushed_at":"2019-04-12T14:50:27.000Z","size":119,"stargazers_count":237,"open_issues_count":6,"forks_count":13,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-08-16T17:12:05.157Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://crystal-lang.org/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crenv.png","metadata":{"files":{"readme":"README.ja.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-06-26T16:14:34.000Z","updated_at":"2024-12-31T01:49:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"53d7455e-6110-44aa-89cf-fe0ac06c111d","html_url":"https://github.com/crenv/crenv","commit_stats":null,"previous_names":["pine/crenv"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/crenv/crenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crenv%2Fcrenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crenv%2Fcrenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crenv%2Fcrenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crenv%2Fcrenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crenv","download_url":"https://codeload.github.com/crenv/crenv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crenv%2Fcrenv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271393732,"owners_count":24751762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T17:01:08.899Z","updated_at":"2025-08-21T02:31:04.531Z","avatar_url":"https://github.com/crenv.png","language":"Shell","readme":"# crenv [![Build Status](https://travis-ci.org/pine/crenv.svg?branch=master)](https://travis-ci.org/pine/crenv)\n\n[English](README.md) | 日本語\n\ncrenv は Ruby の [rbenv](https://github.com/sstephenson/rbenv) と同じ使い方ができる [Crystal](http://crystal-lang.org/) 用のバージョンマネージャーです。\n\n## はじめに\n### anyenv を使って crenv をインストールする (推奨)\n\n[anyenv](https://github.com/riywo/anyenv) を利用すると、たったのコマンド一つで crenv をインストールできます。\n\n以下のコマンドを実行する前に、事前に [anyenv](https://github.com/riywo/anyenv) をインストールしておく必要があります。\n\n```\n$ anyenv install crenv\n$ exec $SHELL -l\n$ crenv -v\ncrenv 1.0.0\n```\n\n### インストールスクリプトを用いて crenv をインストールする\n以下のコマンドを使ってインストールが可能です。\n\n```\n$ curl -L https://raw.github.com/pine/crenv/master/install.sh | bash\n```\n\n`curl` ではなく、`wget` を用いる場合は、\n\n```\n$ wget -qO- https://raw.github.com/pine/crenv/master/install.sh | bash\n```\n\nインストール後は、下記コマンドのようにシェルの設定を追記する必要があります。\n\n```\n$ echo 'export PATH=\"$HOME/.crenv/bin:$PATH\"' \u003e\u003e ~/.your_profile\n$ echo 'eval \"$(crenv init -)\"' \u003e\u003e ~/.your_profile\n$ exec $SHELL -l\n```\n\n## crenv を用いて Crystal をインストールする\n上記の方法で crenv が正しくインストールされている場合、以下のコマンドで Crystal をインストールできます。\n\n```\n$ crenv install 0.19.0 # 対象のバージョンの Crystal をインストール\n$ crenv global 0.19.0 # グローバルバージョンを指定\n\n$ crenv rehash\n$ crystal --version\nCrystal 0.19.0 (2016-09-02)\n\n$ shards --version\nShards 0.6.3 (2016-09-02)\n```\n\n\n## 使い方\n\n詳細は、crenv コマンドのヘルプをご覧ください。\n\n```\n$ crenv help\nUsage: crenv \u003ccommand\u003e [\u003cargs\u003e]\n\nSome useful crenv commands are:\n   commands    List all available crenv commands\n   local       Set or show the local application-specific Crystal version\n   global      Set or show the global Crystal version\n   shell       Set or show the shell-specific Crystal version\n   rehash      Rehash crenv shims (run this after installing executables)\n   version     Show the current Crystal version and its origin\n   versions    List all Crystal versions available to crenv\n   which       Display the full path to an executable\n   whence      List all Crystal versions that contain the given executable\n\nSee `crenv help \u003ccommand\u003e' for information on a specific command.\nFor full documentation, see: https://github.com/pine/crenv#readme\n```\n\nより詳細なコマンドの使い方について知りたい場合、[rbenv#command-reference](https://github.com/sstephenson/rbenv#command-reference) をご覧ください。\n\n### バージョンを指定して Crystal をインストールする\n\ncrenv は単体で Crystal のインストール機能を搭載していません。この機能を利用するには [crystal-build](https://github.com/pine/crystal-build) をプラグインとしてご利用ください。\n\n[anyenv](https://github.com/riywo/anyenv) を使って crenv をインストールした場合、インストールスクリプトを使って crenv をインストールした場合は、[crystal-build](https://github.com/pine/crystal-build) も同時にインストールされます。\n\n```\n# 利用できるバージョンを一覧表示\n$ crenv install -l\n\n# バージョンを指定して Crystal をインストール\n$ crenv install 0.19.0\n```\n\n### crenv を更新する\ncrenv を更新するには、以下のコマンドを実行してください。\n\n```\n$ cd ~/.crenv # or ~/.anyenv/envs/crenv\n$ git pull origin master\n$ cd plugins/crystal-build\n$ git pull origin master\n```\n\n## 謝辞\nこの場を借りて、お礼申し上げます。\n\n- [riywo](https://github.com/riywo)\u003cbr /\u003e\ncrenv は [ndenv](https://github.com/riywo/ndenv) よりフォークして作成されました。\n- [sstephenson](https://github.com/sstephenson)\u003cbr /\u003e\ncrenv は [rbenv](https://github.com/rbenv/rbenv) のソースコードをコピーして作成されています。\n\n## 参照\n- [crystalbrew](https://github.com/pine/crystalbrew) 別の Crystal バージョンマネージャー\n\n## パッチの送付方法\n\n1. このリポジトリをフォークします ( https://github.com/pine/crenv/fork )\n2. フォーク先で新しいブランチを切ります (git checkout -b my-new-feature)\n3. 変更をコミットしてください (git commit -am 'Add some feature')\n4. フォーク先にプッシュします (git push origin my-new-feature)\n5. このリポジトリへプルリクエストを作成してください\n\n## ライセンス\n(The MIT license)\n\nCopyright (c) 2015-2016 Pine Mizune\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n## 作者\n水音ぴね \u0026lt;\u003cpinemz@gmail.com\u003e\u0026gt;\n","funding_links":[],"categories":["Environment Management","List of \\*env-, ch\\*- and \\*vm- style version managers","Shell","Version Managers"],"sub_categories":["Crystal"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrenv%2Fcrenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrenv%2Fcrenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrenv%2Fcrenv/lists"}