Project Scaffolding
Julia
Installation
Our recommendation is to use juliaup to install and
manage Julia versions.
Install juliaup
In macOS or Linux, you can install juliaup using Homebrew:
brew install juliaupIn Windows, you can install juliaup using Scoop:
scoop install juliaupInstall Julia
You can install the latest version of Julia using juliaup:
juliaup add releaseCreate a new project
For a simple project, use either Pkg.generate:
using Pkg
Pkg.generate("MyProject")
Pkg.activate("MyProject")
Pkg.add("Example") # Add dependenciesor the package manager's interactive mode:
pkg> generate MyProject
pkg> activate MyProject
pkg> add Example # Add dependenciesFor a complete package with testing, CI/CD, and license files, you can use PkgTemplates.jl:
using Pkg
Pkg.add("PkgTemplates")
using PkgTemplates
# Interactive template creation
Template(interactive=true)("MyPkg")Activate Julia project
To start the Julia REPL with the project environment activated, use:
cd MyProject
julia --project=.or after starting the REPL, activate the project:
cd MyProject
juliapkg> activate .