From 883fc3ebdeaa8460edd9d22c1cfcf6038526d3e4 Mon Sep 17 00:00:00 2001 From: shreyas-kulkarni09 Date: Mon, 7 Oct 2024 18:21:08 -0600 Subject: [PATCH] Update getting_started.md (#210) * Update getting_started.md Added example for "cmf init" command for local or development use. * Update getting_started.md Change cmf init example to local instead of minioS3. --- docs/examples/getting_started.md | 36 ++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/docs/examples/getting_started.md b/docs/examples/getting_started.md index cb9a1cb0..eeba0a8b 100644 --- a/docs/examples/getting_started.md +++ b/docs/examples/getting_started.md @@ -68,18 +68,32 @@ cd ./example-get-started ``` ### cmf init
-Usage: cmf init minioS3 [-h] --url [url] 
-                             --endpoint-url [endpoint_url]
-                             --access-key-id [access_key_id] 
-                             --secret-key [secret_key] 
-                             --git-remote-url[git_remote_url]  
-                             --cmf-server-url [cmf_server_url]
-                             --neo4j-user [neo4j_user]
-                             --neo4j-password [neo4j_password]
-                             --neo4j-uri [neo4j_uri]
+Usage: cmf init local [-h] --path [path] -
+                           --git-remote-url [git_remote_url]
+                           --cmf-server-url [cmf_server_url]
+                           --neo4j-user [neo4j_user]
+                           --neo4j-password [neo4j_password]
+                           --neo4j-uri [neo4j_uri]
 
-```shell -cmf init minioS3 --url s3://bucket-name --endpoint-url http://localhost:9000 --access-key-id minioadmin --secret-key minioadmin --git-remote-url https://github.com/user/experiment-repo.git --cmf-server-url http://127.0.0.1:80 --neo4j-user neo4j --neo4j-password password --neo4j-uri bolt://localhost:7687 +`cmf init local` initialises local directory as a cmf artifact repository. +``` +cmf init local --path /home/XXXX/local-storage --git-remote-url https://github.com/user/experiment-repo.git --cmf-server-url http://x.x.x.x:8080 --neo4j-user neo4j --neo4j-password password --neo4j-uri bolt://localhost:7687 +``` + +> Replace 'XXXX' with your system username in the following path: /home/XXXX/local-storage + +Required Arguments +``` + --path [path] Specify local directory path. + --git-remote-url [git_remote_url] Specify git repo url. +``` +Optional Arguments +``` + -h, --help show this help message and exit + --cmf-server-url [cmf_server_url] Specify cmf-server url. (default: http://127.0.0.1:80) + --neo4j-user [neo4j_user] Specify neo4j user. (default: None) + --neo4j-password [neo4j_password] Specify neo4j password. (default: None) + --neo4j-uri [neo4j_uri] Specify neo4j uri. Eg bolt://localhost:7687 (default: None) ``` Follow [here](./../cmf_client/cmf_client.md#cmf-init) for more details.