@3sixty/node 0.0.0-stage → 0.20.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +34 -2
  3. package/bin/index.js +4 -0
  4. package/dist/locales/en.json +18011 -0
  5. package/docs/changelog.md +0 -0
  6. package/docs/commands/bootstrap-dev.md +51 -0
  7. package/docs/commands/help.md +61 -0
  8. package/docs/commands/identity-create.md +67 -0
  9. package/docs/commands/identity-import.md +37 -0
  10. package/docs/commands/identity-list.md +31 -0
  11. package/docs/commands/identity-remove.md +46 -0
  12. package/docs/commands/identity-resolve.md +38 -0
  13. package/docs/commands/identity-verifiable-credential-create.md +58 -0
  14. package/docs/commands/identity-verification-method-create.md +55 -0
  15. package/docs/commands/identity-verification-method-import.md +46 -0
  16. package/docs/commands/node-identity-get.md +31 -0
  17. package/docs/commands/node-identity-set.md +36 -0
  18. package/docs/commands/node-org-id-get.md +32 -0
  19. package/docs/commands/node-org-id-set.md +37 -0
  20. package/docs/commands/org-users-list.md +40 -0
  21. package/docs/commands/tenant-create.md +55 -0
  22. package/docs/commands/tenant-get.md +34 -0
  23. package/docs/commands/tenant-import.md +46 -0
  24. package/docs/commands/tenant-list-by-org.md +34 -0
  25. package/docs/commands/tenant-list.md +31 -0
  26. package/docs/commands/tenant-org-alias-remove.md +39 -0
  27. package/docs/commands/tenant-org-id-set.md +39 -0
  28. package/docs/commands/tenant-remove.md +34 -0
  29. package/docs/commands/tenant-update.md +46 -0
  30. package/docs/commands/user-create.md +73 -0
  31. package/docs/commands/user-get.md +43 -0
  32. package/docs/commands/user-remove.md +43 -0
  33. package/docs/commands/user-update-password.md +58 -0
  34. package/docs/commands/user-update.md +58 -0
  35. package/docs/commands/vault-key-create.md +58 -0
  36. package/docs/commands/vault-key-import.md +43 -0
  37. package/docs/commands/vault-key-remove.md +37 -0
  38. package/docs/commands/vault-key-update.md +40 -0
  39. package/docs/configuration.md +234 -0
  40. package/docs/deployment-docker.md +142 -0
  41. package/docs/deployment-ec2.md +193 -0
  42. package/docs/deployment.md +4 -0
  43. package/docs/open-api/spec.json +24802 -0
  44. package/docs/usage.md +239 -0
  45. package/locales/en.json +1 -0
  46. package/package.json +39 -5
  47. package/src/index.js +12 -0
File without changes
@@ -0,0 +1,51 @@
1
+ # bootstrap-dev
2
+
3
+ Bootstrap the development environment.
4
+
5
+ ## Tenancy
6
+
7
+ Available in single-tenant and multi-tenant mode. In single-tenant mode the organisation identity is stored as the node organisation ID, in multi-tenant mode a node tenant is created and associated with the organisation identity. Re-running the command reuses anything that already exists.
8
+
9
+ ## Usage
10
+
11
+ ```text
12
+ bootstrap-dev: Bootstrap the development environment
13
+
14
+ env-prefix: (string, optional)
15
+ Prefix to use for standard .env files e.g. TWIN_.
16
+
17
+ load-env: (string, optional)
18
+ Comma separated list of paths to .env files to read input parameters from.
19
+
20
+ Deprecated aliases: bootstrap-legacy
21
+
22
+ Example: bootstrap-dev --load-env="./.env.bootstrap-dev"
23
+ ```
24
+
25
+ The command reads the following environment variables (use `load-env` to supply them from a file):
26
+
27
+ | Variable | Default | Description |
28
+ | ---------------------------- | ------------------------------ | --------------------------------------------------------------------------- |
29
+ | `TWIN_NODE_IDENTITY` | generated | The DID of the node identity. |
30
+ | `TWIN_NODE_MNEMONIC` | randomly generated | The Bip39 mnemonic for the node identity seed. |
31
+ | `TWIN_FEATURES` | `admin-user,wallet` | Comma-separated feature flags: `admin-user`, `wallet`. |
32
+ | `TWIN_ORGANIZATION_IDENTITY` | generated | The DID to use for the organisation identity. |
33
+ | `TWIN_ORGANIZATION_MNEMONIC` | randomly generated | The Bip39 mnemonic for the organisation identity seed. |
34
+ | `TWIN_TENANT_ID` | generated | The tenant ID for the node tenant (multi-tenant only). |
35
+ | `TWIN_TENANT_API_KEY` | generated | The API key for the node tenant (multi-tenant only). |
36
+ | `TWIN_ADMIN_USER_IDENTITY` | generated | The DID for the admin user identity (`admin-user` feature). |
37
+ | `TWIN_ADMIN_USER_MNEMONIC` | randomly generated | The Bip39 mnemonic for the admin user identity seed (`admin-user` feature). |
38
+ | `TWIN_ADMIN_USER_NAME` | `admin@node` or `admin@tenant` | The email/username for the admin user (`admin-user` feature). |
39
+ | `TWIN_ADMIN_USER_PASSWORD` | randomly generated | The password for the admin user (`admin-user` feature). |
40
+
41
+ ## Examples
42
+
43
+ Run the complete bootstrap sequence using values from `.env.bootstrap-dev`:
44
+
45
+ ```shell
46
+ 3sixty-node bootstrap-dev --load-env=".env.bootstrap-dev"
47
+ ```
48
+
49
+ The step-by-step equivalent is shown in the [usage guide](../usage.md#bootstrap-step-by-step).
50
+
51
+ See the [usage guide](../usage.md) for running the node and the full list of commands.
@@ -0,0 +1,61 @@
1
+ # help
2
+
3
+ List all the commands, or show the parameters for a single command.
4
+
5
+ ## Tenancy
6
+
7
+ Available in single-tenant and multi-tenant mode, with the same behaviour in both.
8
+
9
+ ## Usage
10
+
11
+ ```text
12
+ All the commands available are listed below, for more information use the --help option with a specific command.
13
+ bootstrap-dev: Bootstrap the development environment
14
+ identity-create: Create an identity
15
+ identity-import: Import an identity
16
+ identity-list: List all identities held in custody by the node
17
+ identity-remove: Remove an identity
18
+ identity-resolve: Resolve an identity DID to its full document
19
+ identity-verification-method-create: Create an identity verification method
20
+ identity-verification-method-import: Import an identity verification method
21
+ identity-verifiable-credential-create: Create a verifiable credential
22
+ node-identity-get: Get the identity currently assigned to the node
23
+ node-identity-set: Set the node identity
24
+ org-users-list: List all users belonging to an organization DID
25
+ node-org-id-get: Get the organization ID currently assigned to the node (single-tenant only)
26
+ node-org-id-set: Set the node organization ID (single-tenant only)
27
+ tenant-org-id-set: Set the organization ID for a tenant
28
+ tenant-org-alias-remove: Remove an alias from the tenant organization ID legacy list
29
+ tenant-create: Create a tenant with associated api key
30
+ tenant-get: Get the full configuration record for a single tenant
31
+ tenant-import: Import a tenant with associated api key
32
+ tenant-list: List all tenants
33
+ tenant-list-by-org: List all tenants associated with a given organization DID
34
+ tenant-remove: Remove a tenant
35
+ tenant-update: Update a tenant with associated api key
36
+ user-create: Create a user
37
+ user-get: Get a user by email address
38
+ user-remove: Remove a user and their identity profile
39
+ user-update: Update a user
40
+ user-update-password: Update the password of a user
41
+ vault-key-create: Create a vault key for an identity
42
+ vault-key-import: Import a vault key for an identity
43
+ vault-key-remove: Remove a vault key for an identity
44
+ vault-key-update: Replace the key material of an existing vault key for an identity
45
+ ```
46
+
47
+ ## Examples
48
+
49
+ List all the commands:
50
+
51
+ ```shell
52
+ 3sixty-node --help
53
+ ```
54
+
55
+ Show the help for a single command:
56
+
57
+ ```shell
58
+ 3sixty-node identity-create --help
59
+ ```
60
+
61
+ See the [usage guide](../usage.md) for running the node and the full list of commands.
@@ -0,0 +1,67 @@
1
+ # identity-create
2
+
3
+ Create an identity.
4
+
5
+ ## Tenancy
6
+
7
+ Available in single-tenant and multi-tenant mode. `--node-organization-id` is only available in single-tenant mode and `--tenant-organization-id` is only available in multi-tenant mode.
8
+
9
+ ## Usage
10
+
11
+ ```text
12
+ identity-create: Create an identity
13
+
14
+ env-prefix: (string, optional)
15
+ Prefix to use for standard .env files e.g. TWIN_.
16
+
17
+ mnemonic: (string, 24 words, optional)
18
+ The mnemonic phrase to use for the identity. If not provided, a random mnemonic will be generated.
19
+
20
+ identity: (string, did, optional)
21
+ The DID of the identity to create. If not provided, a new DID will be generated.
22
+
23
+ controller: (string, did, optional)
24
+ The controller DID for the identity. If not provided, the identity will be its own controller.
25
+
26
+ fund-wallet: (boolean, default: 'false', optional)
27
+ Whether to fund the wallet associated with the identity from a faucet.
28
+
29
+ load-env: (string, optional)
30
+ Comma separated list of paths to .env files to read input parameters from.
31
+
32
+ output-json: (string, optional)
33
+ Path to a .json file to store the command output.
34
+
35
+ output-env: (string, optional)
36
+ Path to a .env file to store the command output.
37
+
38
+ output-env-prefix: (string, optional)
39
+ Prefix to use for variables in the output .env file.
40
+
41
+ node-id: (boolean, default: 'false', optional)
42
+ If true, set the created identity DID as the node identity.
43
+
44
+ node-organization-id: (boolean, default: 'false', optional)
45
+ If true, set the created identity DID as the node organization ID (not available in multi-tenant mode).
46
+
47
+ tenant-organization-id: (string, hex(32), optional)
48
+ The tenant ID to set the created identity DID as the organization ID for (requires multi-tenant mode).
49
+
50
+ Example: identity-create --mnemonic="..." --fund-wallet=true
51
+ ```
52
+
53
+ ## Examples
54
+
55
+ Create the node identity, fund its wallet and set it as the node identity:
56
+
57
+ ```shell
58
+ 3sixty-node identity-create --node-id=true --fund-wallet=true --output-json="node-identity.json" --output-env="node-identity.env" --output-env-prefix=node
59
+ ```
60
+
61
+ Create an identity controlled by an organisation:
62
+
63
+ ```shell
64
+ 3sixty-node identity-create --load-env="organization-identity.env" --controller=!ORGANIZATION_DID --output-json="user-identity.json" --output-env="user-identity.env" --output-env-prefix=user
65
+ ```
66
+
67
+ See the [usage guide](../usage.md) for running the node and the full list of commands.
@@ -0,0 +1,37 @@
1
+ # identity-import
2
+
3
+ Import an identity.
4
+
5
+ ## Tenancy
6
+
7
+ Available in single-tenant and multi-tenant mode, with the same behaviour in both.
8
+
9
+ ## Usage
10
+
11
+ ```text
12
+ identity-import: Import an identity
13
+
14
+ env-prefix: (string, optional)
15
+ Prefix to use for standard .env files e.g. TWIN_.
16
+
17
+ identity: (string, did, required)
18
+ The DID of the identity to import.
19
+
20
+ mnemonic: (string, 24 words, required)
21
+ The mnemonic phrase to use for the identity.
22
+
23
+ load-env: (string, optional)
24
+ Comma separated list of paths to .env files to read input parameters from.
25
+
26
+ Example: identity-import --identity="did:iota:..." --mnemonic="..."
27
+ ```
28
+
29
+ ## Examples
30
+
31
+ Import an identity that already exists, storing its mnemonic in the vault:
32
+
33
+ ```shell
34
+ 3sixty-node identity-import --identity="did:iota:..." --mnemonic="..."
35
+ ```
36
+
37
+ See the [usage guide](../usage.md) for running the node and the full list of commands.
@@ -0,0 +1,31 @@
1
+ # identity-list
2
+
3
+ List all identities held in custody by the node.
4
+
5
+ ## Tenancy
6
+
7
+ Available in single-tenant and multi-tenant mode, with the same behaviour in both.
8
+
9
+ ## Usage
10
+
11
+ ```text
12
+ identity-list: List all identities held in custody by the node
13
+
14
+ env-prefix: (string, optional)
15
+ Prefix to use for standard .env files e.g. TWIN_.
16
+
17
+ load-env: (string, optional)
18
+ Comma separated list of paths to .env files to read input parameters from.
19
+
20
+ Example: identity-list
21
+ ```
22
+
23
+ ## Examples
24
+
25
+ List every identity held in custody by the node, showing each DID and its controller:
26
+
27
+ ```shell
28
+ 3sixty-node identity-list
29
+ ```
30
+
31
+ See the [usage guide](../usage.md) for running the node and the full list of commands.
@@ -0,0 +1,46 @@
1
+ # identity-remove
2
+
3
+ Remove an identity.
4
+
5
+ ## Tenancy
6
+
7
+ Available in single-tenant and multi-tenant mode, with the same behaviour in both. The node identity and, in single-tenant mode, the node organisation identity cannot be removed.
8
+
9
+ ## Usage
10
+
11
+ ```text
12
+ identity-remove: Remove an identity
13
+
14
+ env-prefix: (string, optional)
15
+ Prefix to use for standard .env files e.g. TWIN_.
16
+
17
+ identity: (string, did, required)
18
+ The DID of the identity to remove.
19
+
20
+ controller: (string, did, optional)
21
+ The DID of the controller for the identity, defaults to the identity itself.
22
+
23
+ remove-keys: (boolean, default: 'false', optional)
24
+ Also remove the keys and mnemonic held in the vault for the identity.
25
+
26
+ load-env: (string, optional)
27
+ Comma separated list of paths to .env files to read input parameters from.
28
+
29
+ Example: identity-remove --identity="did:iota:...." --remove-keys=true
30
+ ```
31
+
32
+ ## Examples
33
+
34
+ Remove an identity document, keeping its keys in the vault:
35
+
36
+ ```shell
37
+ 3sixty-node identity-remove --identity="did:iota:..."
38
+ ```
39
+
40
+ Remove an identity document together with all of its vault keys and its mnemonic:
41
+
42
+ ```shell
43
+ 3sixty-node identity-remove --identity="did:iota:..." --remove-keys=true
44
+ ```
45
+
46
+ See the [usage guide](../usage.md) for running the node and the full list of commands.
@@ -0,0 +1,38 @@
1
+ # identity-resolve
2
+
3
+ Resolve an identity DID to its full document.
4
+
5
+ ## Tenancy
6
+
7
+ Available in single-tenant and multi-tenant mode, with the same behaviour in both.
8
+
9
+ ## Usage
10
+
11
+ ```text
12
+ identity-resolve: Resolve an identity DID to its full document
13
+
14
+ env-prefix: (string, optional)
15
+ Prefix to use for standard .env files e.g. TWIN_.
16
+
17
+ identity: (string, did, required)
18
+ The DID to resolve.
19
+
20
+ load-env: (string, optional)
21
+ Comma separated list of paths to .env files to read input parameters from.
22
+
23
+ output-json: (string, optional)
24
+ Path to a .json file to store the resolved DID document.
25
+
26
+ Example: identity-resolve --identity="did:iota:..."
27
+ ```
28
+
29
+ ## Examples
30
+
31
+ Resolve any DID to its full document, pass `--output-json` to save the document to a file:
32
+
33
+ ```shell
34
+ 3sixty-node identity-resolve --identity="did:iota:..."
35
+ 3sixty-node identity-resolve --identity="did:iota:..." --output-json="did-document.json"
36
+ ```
37
+
38
+ See the [usage guide](../usage.md) for running the node and the full list of commands.
@@ -0,0 +1,58 @@
1
+ # identity-verifiable-credential-create
2
+
3
+ Create a verifiable credential.
4
+
5
+ ## Tenancy
6
+
7
+ Available in single-tenant and multi-tenant mode, with the same behaviour in both.
8
+
9
+ ## Usage
10
+
11
+ ```text
12
+ identity-verifiable-credential-create: Create a verifiable credential
13
+
14
+ env-prefix: (string, optional)
15
+ Prefix to use for standard .env files e.g. TWIN_.
16
+
17
+ identity: (string, did, required)
18
+ The DID of the identity to use to create the credential.
19
+
20
+ controller: (string, did, optional)
21
+ The controller DID for the identity. If not provided, the identity will be its own controller.
22
+
23
+ verification-method-id: (string, did with fragment, required)
24
+ The ID of the verification method to use to create the credential.
25
+
26
+ subject-json: (string, file, required)
27
+ The subject JSON file to load.
28
+
29
+ credential-id: (string, url, optional)
30
+ The id of the verifiable credential.
31
+
32
+ expiration-date: (string, ISO date-time, optional)
33
+ The expiration date of the verifiable credential.
34
+
35
+ load-env: (string, optional)
36
+ Comma separated list of paths to .env files to read input parameters from.
37
+
38
+ output-json: (string, optional)
39
+ Path to a .json file to store the command output.
40
+
41
+ output-env: (string, optional)
42
+ Path to a .env file to store the command output.
43
+
44
+ output-env-prefix: (string, optional)
45
+ Prefix to use for variables in the output .env file.
46
+
47
+ Example: identity-verifiable-credential-create --identity="did:iota:...." --verification-method-id="my-id" --subject-json="./subject.json"
48
+ ```
49
+
50
+ ## Examples
51
+
52
+ Create a verifiable credential using the attestation verification method:
53
+
54
+ ```shell
55
+ 3sixty-node identity-verifiable-credential-create --load-env="organization-identity.env,organization-attestation.env" --identity=!ORGANIZATION_DID --verification-method-id=!TWIN_ATTESTATION_VERIFICATION_METHOD_ID --subject-json="subject.json" --output-json="organization-attestation-credential.json" --output-env="organization-attestation-credential.env"
56
+ ```
57
+
58
+ See the [usage guide](../usage.md) for running the node and the full list of commands.
@@ -0,0 +1,55 @@
1
+ # identity-verification-method-create
2
+
3
+ Create an identity verification method.
4
+
5
+ ## Tenancy
6
+
7
+ Available in single-tenant and multi-tenant mode, with the same behaviour in both.
8
+
9
+ ## Usage
10
+
11
+ ```text
12
+ identity-verification-method-create: Create an identity verification method
13
+
14
+ env-prefix: (string, optional)
15
+ Prefix to use for standard .env files e.g. TWIN_.
16
+
17
+ identity: (string, did, required)
18
+ The DID of the identity to add the verification method to.
19
+
20
+ controller: (string, did, optional)
21
+ The controller DID for the identity. If not provided, the identity will be its own controller.
22
+
23
+ verification-method-type: (string, default: 'assertionMethod', optional, options: [verificationMethod, authentication, assertionMethod, keyAgreement, capabilityInvocation, capabilityDelegation])
24
+ The type of verification method to add.
25
+
26
+ verification-method-id: (string, optional)
27
+ The ID of the verification method to add.
28
+
29
+ overwrite-mode: (string, default: 'skip', optional, options: [skip, overwrite, error])
30
+ The mode to use when a verification method with the same ID already exists.
31
+
32
+ load-env: (string, optional)
33
+ Comma separated list of paths to .env files to read input parameters from.
34
+
35
+ output-json: (string, optional)
36
+ Path to a .json file to store the command output.
37
+
38
+ output-env: (string, optional)
39
+ Path to a .env file to store the command output.
40
+
41
+ output-env-prefix: (string, optional)
42
+ Prefix to use for variables in the output .env file.
43
+
44
+ Example: identity-verification-method-create --identity="did:iota:...." --verification-method-type="verificationMethod" --verification-method-id="my-key-1" --controller="did:iota:...."
45
+ ```
46
+
47
+ ## Examples
48
+
49
+ Add the trust verification method to the organisation identity:
50
+
51
+ ```shell
52
+ 3sixty-node identity-verification-method-create --load-env="node-identity.env,organization-identity.env" --identity=!ORGANIZATION_DID --verification-method-type=assertionMethod --verification-method-id=!TWIN_TRUST_VERIFICATION_METHOD_ID --overwrite-mode=skip --output-json="organization-trust.json" --output-env="organization-trust.env"
53
+ ```
54
+
55
+ See the [usage guide](../usage.md) for running the node and the full list of commands.
@@ -0,0 +1,46 @@
1
+ # identity-verification-method-import
2
+
3
+ Import an identity verification method.
4
+
5
+ ## Tenancy
6
+
7
+ Available in single-tenant and multi-tenant mode, with the same behaviour in both.
8
+
9
+ ## Usage
10
+
11
+ ```text
12
+ identity-verification-method-import: Import an identity verification method
13
+
14
+ env-prefix: (string, optional)
15
+ Prefix to use for standard .env files e.g. TWIN_.
16
+
17
+ identity: (string, did, required)
18
+ The DID of the identity to import the verification method to.
19
+
20
+ controller: (string, did, optional)
21
+ The controller DID for the identity. If not provided, the identity will be its own controller.
22
+
23
+ verification-method-type: (string, default: 'assertionMethod', required, options: [verificationMethod, authentication, assertionMethod, keyAgreement, capabilityInvocation, capabilityDelegation])
24
+ The type of verification method to import.
25
+
26
+ verification-method-id: (string, required)
27
+ The ID of the verification method to import.
28
+
29
+ private-key-hex: (string, required)
30
+ The private key in hex format.
31
+
32
+ load-env: (string, optional)
33
+ Comma separated list of paths to .env files to read input parameters from.
34
+
35
+ Example: identity-verification-method-import --identity="did:iota:...." --verification-method-type="verificationMethod" --verification-method-id="my-key-1" ----private-key-hex="15...a2"
36
+ ```
37
+
38
+ ## Examples
39
+
40
+ Import an existing attestation verification method key:
41
+
42
+ ```shell
43
+ 3sixty-node identity-verification-method-import --load-env="node-identity.env,organization-identity.env,organization-attestation.env" --identity=!ORGANIZATION_DID --verification-method-type=assertionMethod --verification-method-id=!DID_VERIFICATION_METHOD_ID --private-key-hex=!DID_VERIFICATION_METHOD_PRIVATE_KEY_HEX
44
+ ```
45
+
46
+ See the [usage guide](../usage.md) for running the node and the full list of commands.
@@ -0,0 +1,31 @@
1
+ # node-identity-get
2
+
3
+ Get the identity currently assigned to the node.
4
+
5
+ ## Tenancy
6
+
7
+ Available in single-tenant and multi-tenant mode, with the same behaviour in both.
8
+
9
+ ## Usage
10
+
11
+ ```text
12
+ node-identity-get: Get the identity currently assigned to the node
13
+
14
+ env-prefix: (string, optional)
15
+ Prefix to use for standard .env files e.g. TWIN_.
16
+
17
+ load-env: (string, optional)
18
+ Comma separated list of paths to .env files to read input parameters from.
19
+
20
+ Example: node-identity-get
21
+ ```
22
+
23
+ ## Examples
24
+
25
+ Resolve and display the DID document currently assigned as the node identity:
26
+
27
+ ```shell
28
+ 3sixty-node node-identity-get
29
+ ```
30
+
31
+ See the [usage guide](../usage.md) for running the node and the full list of commands.
@@ -0,0 +1,36 @@
1
+ # node-identity-set
2
+
3
+ Set the node identity.
4
+
5
+ ## Tenancy
6
+
7
+ Available in single-tenant and multi-tenant mode, with the same behaviour in both.
8
+
9
+ ## Usage
10
+
11
+ ```text
12
+ node-identity-set: Set the node identity
13
+
14
+ env-prefix: (string, optional)
15
+ Prefix to use for standard .env files e.g. TWIN_.
16
+
17
+ identity: (string, did, required)
18
+ The identity to set in the node.
19
+
20
+ load-env: (string, optional)
21
+ Comma separated list of paths to .env files to read input parameters from.
22
+
23
+ Deprecated aliases: node-set-identity
24
+
25
+ Example: node-identity-set --identity="did:iota..."
26
+ ```
27
+
28
+ ## Examples
29
+
30
+ Set an existing identity as the node identity:
31
+
32
+ ```shell
33
+ 3sixty-node node-identity-set --load-env="node-identity.env" --identity=!NODE_DID
34
+ ```
35
+
36
+ See the [usage guide](../usage.md) for running the node and the full list of commands.
@@ -0,0 +1,32 @@
1
+ # node-org-id-get
2
+
3
+ Get the organization ID currently assigned to the node.
4
+
5
+ ## Tenancy
6
+
7
+ Single-tenant mode only. In multi-tenant mode the command fails, use the tenant commands instead.
8
+
9
+ ## Usage
10
+
11
+ ```text
12
+ node-org-id-get: Get the organization ID currently assigned to the node
13
+ single-tenant only
14
+
15
+ env-prefix: (string, optional)
16
+ Prefix to use for standard .env files e.g. TWIN_.
17
+
18
+ load-env: (string, optional)
19
+ Comma separated list of paths to .env files to read input parameters from.
20
+
21
+ Example: node-org-id-get
22
+ ```
23
+
24
+ ## Examples
25
+
26
+ Display the organisation DID currently assigned to the node:
27
+
28
+ ```shell
29
+ 3sixty-node node-org-id-get
30
+ ```
31
+
32
+ See the [usage guide](../usage.md) for running the node and the full list of commands.
@@ -0,0 +1,37 @@
1
+ # node-org-id-set
2
+
3
+ Set the node organization ID.
4
+
5
+ ## Tenancy
6
+
7
+ Single-tenant mode only. In multi-tenant mode the command fails, use the tenant commands instead.
8
+
9
+ ## Usage
10
+
11
+ ```text
12
+ node-org-id-set: Set the node organization ID
13
+ single-tenant only
14
+
15
+ env-prefix: (string, optional)
16
+ Prefix to use for standard .env files e.g. TWIN_.
17
+
18
+ organization-id: (string, did, required)
19
+ The organization DID to set as the node organization ID.
20
+
21
+ load-env: (string, optional)
22
+ Comma separated list of paths to .env files to read input parameters from.
23
+
24
+ Deprecated aliases: set-node-org-id
25
+
26
+ Example: node-org-id-set --organization-id="did:iota:..."
27
+ ```
28
+
29
+ ## Examples
30
+
31
+ Set the organisation identity on the node:
32
+
33
+ ```shell
34
+ 3sixty-node node-org-id-set --load-env="organization-identity.env" --organization-id=!ORGANIZATION_DID
35
+ ```
36
+
37
+ See the [usage guide](../usage.md) for running the node and the full list of commands.
@@ -0,0 +1,40 @@
1
+ # org-users-list
2
+
3
+ List all users belonging to an organization DID.
4
+
5
+ ## Tenancy
6
+
7
+ Available in single-tenant and multi-tenant mode. In single-tenant mode `--org-did` defaults to the node organisation ID, in multi-tenant mode it is required.
8
+
9
+ ## Usage
10
+
11
+ ```text
12
+ org-users-list: List all users belonging to an organization DID
13
+
14
+ env-prefix: (string, optional)
15
+ Prefix to use for standard .env files e.g. TWIN_.
16
+
17
+ org-did: (string, did, optional)
18
+ The organization DID to list users for. Defaults to the node organization ID in single-tenant mode.
19
+
20
+ load-env: (string, optional)
21
+ Comma separated list of paths to .env files to read input parameters from.
22
+
23
+ Example: org-users-list --org-did="did:iota:..."
24
+ ```
25
+
26
+ ## Examples
27
+
28
+ In single-tenant mode list the users of the node organisation:
29
+
30
+ ```shell
31
+ 3sixty-node org-users-list
32
+ ```
33
+
34
+ List the users of a specific organisation:
35
+
36
+ ```shell
37
+ 3sixty-node org-users-list --load-env="organization-identity.env" --org-did=!ORGANIZATION_DID
38
+ ```
39
+
40
+ See the [usage guide](../usage.md) for running the node and the full list of commands.