Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orb cli manage steps #1041

Open
fqutishat opened this issue Jan 25, 2022 · 0 comments
Open

Orb cli manage steps #1041

fqutishat opened this issue Jan 25, 2022 · 0 comments
Assignees
Labels

Comments

@fqutishat
Copy link
Contributor

fqutishat commented Jan 25, 2022

Step 1: Download orb cli binary.

Step 2: extract a tar.

  • darwin: tar -zxf orb-cli-darwin-amd64.tar.gz
  • linux: tar -zxf orb-cli-linux-amd64.tar.gz

Step 3: add follower (orb-4 server follows orb-1 server)

./orb-cli-darwin-amd64 follower --outbox-url=https://orb-4.sandbox.trustbloc.dev/services/orb/outbox --actor=https://orb-4.sandbox.trustbloc.dev/services/orb --to=https://orb-1.sandbox.trustbloc.dev/services/orb --action=Follow --tls-systemcertpool=true --auth-token=#TOKEN

Note: replace #TOKEN with real token value

Step 4: check if follow succeeded

{
"@context": "https://www.w3.org/ns/activitystreams",
"id": "https://orb-4.sandbox.trustbloc.dev/services/orb/following?page=true&page-num=0",
"items": [
"https://orb-1.sandbox.trustbloc.dev/services/orb"
],
"totalItems": 1,
"type": "CollectionPage"
}

Step 5: unfollow (orb-4 server unfollow orb-1 server)

./orb-cli-darwin-amd64 follower --outbox-url=https://orb-4.sandbox.trustbloc.dev/services/orb/outbox --actor=https://orb-4.sandbox.trustbloc.dev/services/orb --to=https://orb-1.sandbox.trustbloc.dev/services/orb --action=Undo --tls-systemcertpool=true --follow-id=#FOLLOWID --auth-token=#TOKEN

Note: replace #TOKEN with real token value
Note: replace #FOLLOWID with follow id from follow command

Step 6: check if unfollow succeeded

{
"@context": "https://www.w3.org/ns/activitystreams",
"id": "https://orb-4.sandbox.trustbloc.dev/services/orb/following?page=true&page-num=0",
"totalItems": 0,
"type": "CollectionPage"
}

Step 7: add witness (orb-4 server invite orb-1 server to be witness)

./orb-cli-darwin-amd64 witness --outbox-url=https://orb-4.sandbox.trustbloc.dev/services/orb/outbox --actor=https://orb-4.sandbox.trustbloc.dev/services/orb --to=https://orb-1.sandbox.trustbloc.dev/services/orb --action=InviteWitness --tls-systemcertpool=true --auth-token=#TOKEN

Note: replace #TOKEN with real token value

Step 8: check if witness succeeded

{
"@context": "https://www.w3.org/ns/activitystreams",
"id": "https://orb-4.sandbox.trustbloc.dev/services/orb/witnesses?page=true&page-num=0",
"items": [
"https://orb-1.sandbox.trustbloc.dev/services/orb"
],
"totalItems": 1,
"type": "CollectionPage"
}

Step 9: undo witness (orb-4 server undo witness orb-1 server)

./orb-cli-darwin-amd64 witness --outbox-url=https://orb-4.sandbox.trustbloc.dev/services/orb/outbox --actor=https://orb-4.sandbox.trustbloc.dev/services/orb --to=https://orb-1.sandbox.trustbloc.dev/services/orb --action=Undo --tls-systemcertpool=true --invite-witness-id=#WITNESSID --auth-token=#TOKEN

Note: replace #TOKEN with real token value
Note: replace #WITNESSID with witness id from witness command

Step 10: check if undo witnesss succeeded

{
"@context": "https://www.w3.org/ns/activitystreams",
"id": "https://orb-4.sandbox.trustbloc.dev/services/orb/witnesses?page=true&page-num=0",
"totalItems": 0,
"type": "CollectionPage"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants