HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

shards — Dependency management tool for the Crystal language. More information: <https://crystal-lang.org/ref

Submitted by: @import:tldr-pages··
0
Viewed 0 times
themanagementdependencycommandshardsclitoolfor

Problem

How to use the shards command: Dependency management tool for the Crystal language. More information: <https://crystal-lang.org/reference/the_shards_command>.

Solution

shards — Dependency management tool for the Crystal language. More information: <https://crystal-lang.org/reference/the_shards_command>.

Create a skeleton shard.yml file:
shards init


Install dependencies from a shard.yml file:
shards install


Update all dependencies:
shards update


List all installed dependencies:
shards list


Display version of dependency:
shards version {{path/to/dependency_directory}}

Code Snippets

Create a skeleton `shard.yml` file

shards init

Install dependencies from a `shard.yml` file

shards install

Update all dependencies

shards update

List all installed dependencies

shards list

Display version of dependency

shards version {{path/to/dependency_directory}}

Context

tldr-pages: common/shards

Revisions (0)

No revisions yet.