A Command Line Client for Arken Clusters
Ark is a command line client for Arken that indexes, generates, and submits manifest additions as pull requests. Ark can also directly download collections of files from the nodes within an Arken cluster.
- Go to Ark Releases (over there -->)
- Copy the link to your corresponding OS and Architecture.
- Run
sudo curl -L "PATH-TO-RELEASE" -o /usr/local/bin/ark
- Run
sudo chmod a+x /usr/local/bin/ark
- (Optional) Run
sudo ln -s /usr/local/bin/ark /usr/bin/ark
Command | Alias | Description |
---|---|---|
help |
? |
Get help with a specific subcommand. |
add |
ad |
Stage a file for set of files for a submission. |
alias |
a |
Create a shortcut for a manifest URL. |
config |
c |
Update an one of Ark's Configuration Values. |
init |
i |
Initialize a dataset's local configuration. |
pull |
pl |
Pull a file from an Arken Cluster. |
remove |
rm |
Remove a file from the internal submission cache. |
status |
s |
View what files are currently staged for submission. |
submit |
sb |
Submit your files to a manifest repository. |
update |
upd |
Update Ark to the latest version available. |
upload |
up |
Upload files to an Arken cluster after an accepted submission. |
Go to the location of your data and run. (If you're running MacOS or Linux you can navigate to the folder containing your data in your file browser/finder and by right clicking on the folder open a terminal at that location.)
ark init
Still within the location of your data add specific files or folders.
ark add <LOCATION>
Stage the example.csv file into your Arken Submission.
ark add example.csv
or to stage everything within the folder containing your data.
ark add .
This will index the added data, generate a manifest file, and either add that file to the remote git repository or generate a pull request if you don't have access to the main repository.
ark submit <manifest-LOCATION>
Submit your data to the official curated Core Arken manifest.
ark submit https://github.com/arken/core-manifest
After your submission is accepted you'll receive an email notifying you the Pull Request has been merged into the manifest. At this point you can finally run ark upload from the directory with your data in it to upload the data to the cluster.
ark upload https://github.com/arken/core-manifest
Note: If you attempt to run ark upload
before your submission is accepted your data will not begin syncing with the cluster.
Copyright 2019-2021 Alec Scott & Arken Project [email protected]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.