Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Syncing your notes with your computer via `orb` CLI

Ben Follington edited this page May 6, 2024 · 1 revision

iOS

  1. Open Subconscious
  2. Navigate to Settings
  3. Navigate to Gateway & copy your Gateway URL

image

  1. Navigate to Settings -> Sphere and copy your DID

image

  1. Within Settings -> Sphere navigate to Authorization

Before we can authorize a new client, we have to prepare it.

PC

  1. Clone noosphere from https://github.com/subconsciousnetwork/noosphere/
  2. Install Rust tooling
  3. Build the orb with cargo install --path rust/noosphere-cli
  4. Create a folder to hold the sphere mkdir sphere && cd sphere
  5. Create a new key orb key create my-key (the name can be anything you like, but must match later)

Sync

Run orb sphere join --local-key my-key --gateway-url <YOUR GATEWAY URL> <YOUR DID>

You will see output:

In order to join the sphere, another client must authorize your local key
This is the local key's ID; share it with an authorized client:

  did:key:z6MkjFq...

Hint: if the authorized client is also using the "orb" CLI, you can use this command from the existing workspace to authorize the new key:

  orb auth add did:key:z6MkjFq...

Once authorized, you will get a code.
Type or paste the code here and press enter:

Copy the local key's DID from above and paste it into the DID field of the Authorization form on iOS, supply a name for the authorization.

image

Submit the form and you will receive an authorization which you can copy / share.

image

Back on your computer, paste this authorization into the (still waiting) orb command.

Once authorized, run orb sphere status to check the local state and run orb sphere sync to sync your notes to the filesystem.

Clone this wiki locally