EXAMPLE
Artifacts
Publish a directory as a [versioned artifact](https://atmos.tools/artifacts), list it in a local repository, and restore its files. This example runs entirely on your filesystem.
Try it out
- Install Atmos
- Try the example
Copy the example into a new directory and make it your own:
atmos init examples/artifacts
cd artifacts
Follow the README for prerequisites and next steps.
README.md859 B
View on GitHubArtifacts
Publish a directory as a versioned artifact, list it in a local repository, and restore its files. This example runs entirely on your filesystem.
From the repository root, run these commands with a version of Atmos that includes atmos artifacts:
cd examples/artifactsatmos artifacts publish ./bundle --repository=local --name=builds/app --version=1.0.0atmos artifacts list --repository=localatmos artifacts pull builds/app:1.0.0 --repository=local --output=./restoreddiff -r bundle restored
The list includes builds/app at version 1.0.0. An empty diff confirms the restored files match the original bundle.