Community Edition
Obtaining Community Binaries
Users that want to use the Community Edition of Atlas which is built directly from the Atlas GitHub repository and licensed under the Apache 2.0 license can do so by following the instructions below.
- macOS + Linux
- Docker
- Windows
- Manual Installation
To download and install the latest release of the Atlas CLI, simply run the following in your terminal:
curl -sSf https://atlasgo.sh | sh -s -- --community
To pull the Atlas image and run it as a Docker container:
docker pull arigaio/atlas:latest-community
docker run --rm arigaio/atlas:latest-community --help
If the container needs access to the host network or a local directory, use the --net=host
flag and mount the desired
directory:
docker run --rm --net=host \
-v $(pwd)/migrations:/migrations \
arigaio/atlas:latest-community migrate apply
--url "mysql://root:pass@:3306/test"
Download the latest release and move the atlas binary to a file location on your system PATH.
Building from Source
If you would like to build Atlas from source, run:
go get ariga.io/atlas/cmd/atlas