This repository has been archived by the owner on Aug 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Syncing your notes with your computer via `orb` CLI
Ben Follington edited this page May 6, 2024
·
1 revision
- Open Subconscious
- Navigate to Settings
- Navigate to Gateway & copy your Gateway URL
- Navigate to Settings -> Sphere and copy your
DID
- Within Settings -> Sphere navigate to Authorization
Before we can authorize a new client, we have to prepare it.
- Clone
noosphere
from https://github.com/subconsciousnetwork/noosphere/ - Install Rust tooling
- Build the
orb
withcargo install --path rust/noosphere-cli
- Create a folder to hold the sphere
mkdir sphere && cd sphere
- Create a new key
orb key create my-key
(the name can be anything you like, but must match later)
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.
Submit the form and you will receive an authorization
which you can copy / share.
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.