Julia Pkg mode
To access Pkg mode in a Julia REPL session, press ] at the start of a new prompt line. Press backspace on an empty line to exit.
Here are some Pkg mode commands that might be useful for me. Note that the description isn’t a complete one, just a note to myself
| Command | Purpose |
|---|---|
help |
Print the command descriptions. |
activate |
Activate an environment. |
instantiate |
Download packages in Manifest.toml (creates one if not existing). |
resolve |
Make the Manifest.toml consistent if dependencies modified. |
test |
Run tests. |
update |
Update packages. |
precompile |
Precompile dependencies. Called automatically after any Pkg action that changes the Manifest.toml. |
build |
Run build script (usually not needed). |
Should the Manifest.toml be committed to git?
| Case | Commit Manifest.toml? |
|---|---|
| End-stage product? | Yes |
| Reusable library? | No |