-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from FAIRDataPipeline/latest-updates
Add Fair Local
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
weight: 2 | ||
title: "CLI Local Command(s)" | ||
bookCollapseSection: false | ||
--- | ||
|
||
# `fair` CLI Local Command(s) | ||
|
||
By default the CLI requires a [remote registry]({{< relref "/docs/data_registry/remote_registry/" >}}), however the CLI can run without a remote registry using the `--local` flag. | ||
|
||
N.B. the CLI currently requires internet access to work regardless of whether you are using a [remote registry]({{< relref "/docs/data_registry/remote_registry/" >}}). | ||
|
||
## The `--local` flag | ||
|
||
The following commands support the local flag: | ||
|
||
`fair init` | ||
|
||
`fair pull` | ||
|
||
`fair run` | ||
|
||
## A local workflow example | ||
|
||
With the latest version of the [fair cli]() and a [modelling api]() installed the following is an example of a locally run workflow (without the need of a [remote registry]({{< relref "/docs/data_registry/remote_registry/" >}})) | ||
|
||
``` | ||
fair init --local | ||
fair pull --local config.yaml | ||
fair run --local config.yaml | ||
``` | ||
|
||
N.B. a remote registry can be added later by running `fair remote add`. | ||
|
||
For example: | ||
``` | ||
fair remote add https://data.fairdatapipleine.org/api/ | ||
``` |