diff --git a/CommandWorkflow.md b/CommandWorkflow.md index 4b029c6e5..10e4f8beb 100644 --- a/CommandWorkflow.md +++ b/CommandWorkflow.md @@ -129,7 +129,7 @@ Revert back Push the changes -`oxen remote add origin http://0.0.0.0:3000/repositories/SmallCatDog` +`oxen config --set-remote origin http://0.0.0.0:3000/repositories/SmallCatDog` `oxen push` diff --git a/docs/dev/IntegrateCLICode.md b/docs/dev/IntegrateCLICode.md index 87897454f..90a18e7a1 100644 --- a/docs/dev/IntegrateCLICode.md +++ b/docs/dev/IntegrateCLICode.md @@ -63,7 +63,7 @@ pub fn set_remote(name: &str, url: &str) -> Result<(), OxenError> { } ``` -You can build with `cargo build` and run the CLI with `./target/debug/oxen remote add `. +You can build with `cargo build` and run the CLI with `./target/debug/oxen config --set-remote `. Tip: For developing it is nice to just have this debug oxen binary in your path so you can use it from anywhere. You can just make a symbolic link to wherever your system looks for binaries in your path. diff --git a/docs/examples/2_CollabAdd.md b/docs/examples/2_CollabAdd.md index 04c84bdf6..2b91778d8 100644 --- a/docs/examples/2_CollabAdd.md +++ b/docs/examples/2_CollabAdd.md @@ -12,7 +12,7 @@ Remote url: http://0.0.0.0:3000/greg/SmallCatDog Now let's set a remote named `origin` to this url. You can have multiple remotes with different URLs if you want to sync to different servers. For now we will just be working with `origin` ```shell -$ oxen remote add origin http://0.0.0.0:3000/repositories/SmallCatDog +$ oxen config --set-remote origin http://0.0.0.0:3000/repositories/SmallCatDog ``` Next let's push the data that is committed on the `main` branch to the remote named `origin`. diff --git a/src/cli/src/dispatch.rs b/src/cli/src/dispatch.rs index 53875229e..6b43394e1 100644 --- a/src/cli/src/dispatch.rs +++ b/src/cli/src/dispatch.rs @@ -54,7 +54,7 @@ pub async fn create_remote(namespace: &str, name: &str, host: &str) -> Result<() let remote_repo = command::create_remote(&repo, namespace, name, host).await?; println!( - "Remote created for {}\n\noxen remote add origin {}", + "Remote created for {}\n\noxen config --set-remote origin {}", name, remote_repo.remote.url ); diff --git a/src/lib/src/error.rs b/src/lib/src/error.rs index 533fba8dc..9ca0d4b97 100644 --- a/src/lib/src/error.rs +++ b/src/lib/src/error.rs @@ -68,7 +68,7 @@ impl OxenError { pub fn remote_not_set() -> OxenError { OxenError::basic_str( - "Remote not set, you can set a remote by running:\n\noxen remote add \n", + "Remote not set, you can set a remote by running:\n\noxen config --set-remote origin \n", ) }