Files
ent/doc/md/components/_installation_instructions.mdx
Ariel Mashraki 639e1093a0 doc: upadte migrate diff command (#3329)
* doc: upadte migrate diff command

* Update doc/md/components/_installation_instructions.mdx

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>

* Update doc/md/getting-started.mdx

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>

* Update doc/md/getting-started.mdx

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>

* Update doc/md/getting-started.mdx

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>

* Update doc/md/getting-started.mdx

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>

* Update doc/md/getting-started.mdx

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>

* Update doc/md/getting-started.mdx

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>

* Update doc/md/getting-started.mdx

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>

* Update doc/md/getting-started.mdx

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>

* Update doc/md/getting-started.mdx

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>

* Update doc/md/versioned-migrations.mdx

Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>

* Update doc/md/versioned-migrations.mdx

Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>

---------

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>
Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>
2023-02-19 16:20:59 +02:00

61 lines
1.4 KiB
Plaintext

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
To install the latest release of Atlas, simply run one of the following commands in your terminal, or check out the
[Atlas website](https://atlasgo.io/getting-started#installation):
<Tabs
defaultValue="apple-intel-plain+linux"
values={[
{label: 'macOS + Linux', value: 'apple-intel-plain+linux'},
{label: 'Homebrew', value: 'apple-intel-brew'},
{label: 'Go', value: 'go'},
{label: 'Docker', value: 'docker'},
{label: 'Windows', value: 'windows'},
]}>
<TabItem value="apple-intel-plain+linux">
```shell
curl -sSf https://atlasgo.sh | sh
```
</TabItem>
<TabItem value="apple-intel-brew">
```shell
brew install ariga/tap/atlas
```
</TabItem>
<TabItem value="go">
```shell
go install ariga.io/atlas/cmd/atlas@master
```
</TabItem>
<TabItem value="docker">
```shell
docker pull arigaio/atlas
docker run --rm arigaio/atlas --help
```
If the container needs access to the host network or a local directory, use the `--net=host` flag and mount the desired
directory:
```shell
docker run --rm --net=host \
-v $(pwd)/migrations:/migrations \
arigaio/atlas migrate apply
--url "mysql://root:pass@:3306/test"
```
</TabItem>
<TabItem value="windows">
Download the [latest release](https://release.ariga.io/atlas/atlas-windows-amd64-latest.exe) and
move the atlas binary to a file location on your system PATH.
</TabItem>
</Tabs>