@capgo/cli 7.63.0 → 7.64.1
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.
- package/README.md +131 -14
- package/dist/index.js +413 -392
- package/dist/package.json +2 -3
- package/dist/src/api/app.d.ts +2 -2
- package/dist/src/api/channels.d.ts +952 -63
- package/dist/src/api/cryptoV2.d.ts +0 -1
- package/dist/src/api/update.d.ts +0 -1
- package/dist/src/api/versions.d.ts +0 -1
- package/dist/src/app/add.d.ts +0 -1
- package/dist/src/app/debug.d.ts +0 -1
- package/dist/src/app/delete.d.ts +0 -1
- package/dist/src/app/info.d.ts +0 -1
- package/dist/src/app/list.d.ts +0 -1
- package/dist/src/app/set.d.ts +0 -1
- package/dist/src/app/setting.d.ts +0 -1
- package/dist/src/build/credentials-command.d.ts +0 -1
- package/dist/src/build/credentials.d.ts +0 -1
- package/dist/src/build/request.d.ts +0 -1
- package/dist/src/bundle/check.d.ts +0 -1
- package/dist/src/bundle/cleanup.d.ts +0 -1
- package/dist/src/bundle/compatibility.d.ts +0 -1
- package/dist/src/bundle/decryptV2.d.ts +0 -1
- package/dist/src/bundle/delete.d.ts +0 -1
- package/dist/src/bundle/encryptV2.d.ts +0 -1
- package/dist/src/bundle/list.d.ts +0 -1
- package/dist/src/bundle/partial.d.ts +0 -1
- package/dist/src/bundle/unlink.d.ts +0 -1
- package/dist/src/bundle/upload.d.ts +0 -1
- package/dist/src/bundle/upload_interface.d.ts +0 -1
- package/dist/src/bundle/zip.d.ts +0 -1
- package/dist/src/channel/add.d.ts +0 -1
- package/dist/src/channel/currentBundle.d.ts +0 -1
- package/dist/src/channel/delete.d.ts +0 -1
- package/dist/src/channel/list.d.ts +0 -1
- package/dist/src/channel/set.d.ts +0 -1
- package/dist/src/checksum.d.ts +0 -1
- package/dist/src/config/index.d.ts +0 -1
- package/dist/src/docs.d.ts +0 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/init.d.ts +0 -1
- package/dist/src/keyV2.d.ts +0 -1
- package/dist/src/login.d.ts +0 -1
- package/dist/src/mcp/server.d.ts +0 -1
- package/dist/src/{organisation → organization}/add.d.ts +3 -1
- package/dist/src/{organisation → organization}/delete.d.ts +0 -1
- package/dist/src/{organisation → organization}/index.d.ts +1 -1
- package/dist/src/{organisation → organization}/list.d.ts +4 -1
- package/dist/src/organization/members.d.ts +11 -0
- package/dist/src/{organisation → organization}/set.d.ts +2 -1
- package/dist/src/sdk.d.ts +6 -1
- package/dist/src/sdk.js +319 -308
- package/dist/src/types/supabase.types.d.ts +508 -29
- package/dist/src/user/account.d.ts +0 -1
- package/dist/src/utils/latest-version.d.ts +0 -1
- package/dist/src/utils/security_policy_errors.d.ts +50 -0
- package/dist/src/utils.d.ts +477 -27
- package/dist/src/versionHelpers.d.ts +0 -1
- package/package.json +2 -3
- package/dist/src/api/app.d.ts.map +0 -1
- package/dist/src/api/channels.d.ts.map +0 -1
- package/dist/src/api/cryptoV2.d.ts.map +0 -1
- package/dist/src/api/update.d.ts.map +0 -1
- package/dist/src/api/versions.d.ts.map +0 -1
- package/dist/src/app/add.d.ts.map +0 -1
- package/dist/src/app/debug.d.ts.map +0 -1
- package/dist/src/app/delete.d.ts.map +0 -1
- package/dist/src/app/info.d.ts.map +0 -1
- package/dist/src/app/list.d.ts.map +0 -1
- package/dist/src/app/set.d.ts.map +0 -1
- package/dist/src/app/setting.d.ts.map +0 -1
- package/dist/src/build/credentials-command.d.ts.map +0 -1
- package/dist/src/build/credentials.d.ts.map +0 -1
- package/dist/src/build/request.d.ts.map +0 -1
- package/dist/src/bundle/check.d.ts.map +0 -1
- package/dist/src/bundle/cleanup.d.ts.map +0 -1
- package/dist/src/bundle/compatibility.d.ts.map +0 -1
- package/dist/src/bundle/decryptV2.d.ts.map +0 -1
- package/dist/src/bundle/delete.d.ts.map +0 -1
- package/dist/src/bundle/encryptV2.d.ts.map +0 -1
- package/dist/src/bundle/list.d.ts.map +0 -1
- package/dist/src/bundle/partial.d.ts.map +0 -1
- package/dist/src/bundle/unlink.d.ts.map +0 -1
- package/dist/src/bundle/upload.d.ts.map +0 -1
- package/dist/src/bundle/upload_interface.d.ts.map +0 -1
- package/dist/src/bundle/zip.d.ts.map +0 -1
- package/dist/src/channel/add.d.ts.map +0 -1
- package/dist/src/channel/currentBundle.d.ts.map +0 -1
- package/dist/src/channel/delete.d.ts.map +0 -1
- package/dist/src/channel/list.d.ts.map +0 -1
- package/dist/src/channel/set.d.ts.map +0 -1
- package/dist/src/checksum.d.ts.map +0 -1
- package/dist/src/config/index.d.ts.map +0 -1
- package/dist/src/docs.d.ts.map +0 -1
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/init.d.ts.map +0 -1
- package/dist/src/keyV2.d.ts.map +0 -1
- package/dist/src/login.d.ts.map +0 -1
- package/dist/src/mcp/server.d.ts.map +0 -1
- package/dist/src/organisation/add.d.ts.map +0 -1
- package/dist/src/organisation/delete.d.ts.map +0 -1
- package/dist/src/organisation/index.d.ts.map +0 -1
- package/dist/src/organisation/list.d.ts.map +0 -1
- package/dist/src/organisation/set.d.ts.map +0 -1
- package/dist/src/sdk.d.ts.map +0 -1
- package/dist/src/types/supabase.types.d.ts.map +0 -1
- package/dist/src/user/account.d.ts.map +0 -1
- package/dist/src/utils/latest-version.d.ts.map +0 -1
- package/dist/src/utils.d.ts.map +0 -1
- package/dist/src/versionHelpers.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -54,6 +54,12 @@ Follow the documentation here: https://capacitorjs.com/docs/getting-started/
|
|
|
54
54
|
- [Delete_old](#key-delete_old)
|
|
55
55
|
- 👤 [Account](#account)
|
|
56
56
|
- [Id](#account-id)
|
|
57
|
+
- 🔹 [Organization](#organization)
|
|
58
|
+
- [List](#organization-list)
|
|
59
|
+
- [Add](#organization-add)
|
|
60
|
+
- [Members](#organization-members)
|
|
61
|
+
- [Set](#organization-set)
|
|
62
|
+
- [Delete](#organization-delete)
|
|
57
63
|
- 🔹 [Organisation](#organisation)
|
|
58
64
|
- [List](#organisation-list)
|
|
59
65
|
- [Add](#organisation-add)
|
|
@@ -788,16 +794,16 @@ npx @capgo/cli@latest account id
|
|
|
788
794
|
| **-a,** | <code>string</code> | API key to link to your account |
|
|
789
795
|
|
|
790
796
|
|
|
791
|
-
## <a id="
|
|
797
|
+
## <a id="organization"></a> 🔹 **Organization**
|
|
792
798
|
|
|
793
799
|
🏢 Manage your organizations in Capgo Cloud for team collaboration and app management.
|
|
794
800
|
|
|
795
|
-
### <a id="
|
|
801
|
+
### <a id="organization-list"></a> 📋 **List**
|
|
796
802
|
|
|
797
803
|
**Alias:** `l`
|
|
798
804
|
|
|
799
805
|
```bash
|
|
800
|
-
npx @capgo/cli@latest
|
|
806
|
+
npx @capgo/cli@latest organization list
|
|
801
807
|
```
|
|
802
808
|
|
|
803
809
|
📋 List all organizations you have access to in Capgo Cloud.
|
|
@@ -805,7 +811,7 @@ npx @capgo/cli@latest organisation list
|
|
|
805
811
|
**Example:**
|
|
806
812
|
|
|
807
813
|
```bash
|
|
808
|
-
npx @capgo/cli@latest
|
|
814
|
+
npx @capgo/cli@latest organization list
|
|
809
815
|
```
|
|
810
816
|
|
|
811
817
|
**Options:**
|
|
@@ -816,12 +822,12 @@ npx @capgo/cli@latest organisation list
|
|
|
816
822
|
| **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
|
|
817
823
|
| **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
|
|
818
824
|
|
|
819
|
-
### <a id="
|
|
825
|
+
### <a id="organization-add"></a> ➕ **Add**
|
|
820
826
|
|
|
821
827
|
**Alias:** `a`
|
|
822
828
|
|
|
823
829
|
```bash
|
|
824
|
-
npx @capgo/cli@latest
|
|
830
|
+
npx @capgo/cli@latest organization add
|
|
825
831
|
```
|
|
826
832
|
|
|
827
833
|
➕ Create a new organization in Capgo Cloud for team collaboration.
|
|
@@ -829,7 +835,7 @@ npx @capgo/cli@latest organisation add
|
|
|
829
835
|
**Example:**
|
|
830
836
|
|
|
831
837
|
```bash
|
|
832
|
-
npx @capgo/cli@latest
|
|
838
|
+
npx @capgo/cli@latest organization add --name "My Company" --email admin@mycompany.com
|
|
833
839
|
```
|
|
834
840
|
|
|
835
841
|
**Options:**
|
|
@@ -842,20 +848,48 @@ npx @capgo/cli@latest organisation add --name "My Company" --email admin@mycompa
|
|
|
842
848
|
| **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
|
|
843
849
|
| **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
|
|
844
850
|
|
|
845
|
-
### <a id="
|
|
851
|
+
### <a id="organization-members"></a> 🔹 **Members**
|
|
852
|
+
|
|
853
|
+
**Alias:** `m`
|
|
854
|
+
|
|
855
|
+
```bash
|
|
856
|
+
npx @capgo/cli@latest organization members
|
|
857
|
+
```
|
|
858
|
+
|
|
859
|
+
👥 List organization members and their 2FA status.
|
|
860
|
+
Shows all members of an organization with their roles and whether they have 2FA enabled.
|
|
861
|
+
Useful before enabling 2FA enforcement to see which members will be affected.
|
|
862
|
+
> ℹ️ Viewing 2FA status requires super_admin rights in the organization.
|
|
863
|
+
|
|
864
|
+
|
|
865
|
+
**Example:**
|
|
866
|
+
|
|
867
|
+
```bash
|
|
868
|
+
npx @capgo/cli@latest organization members ORG_ID
|
|
869
|
+
```
|
|
870
|
+
|
|
871
|
+
**Options:**
|
|
872
|
+
|
|
873
|
+
| Param | Type | Description |
|
|
874
|
+
| -------------- | ------------- | -------------------- |
|
|
875
|
+
| **-a,** | <code>string</code> | API key to link to your account |
|
|
876
|
+
| **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
|
|
877
|
+
| **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
|
|
878
|
+
|
|
879
|
+
### <a id="organization-set"></a> ⚙️ **Set**
|
|
846
880
|
|
|
847
881
|
**Alias:** `s`
|
|
848
882
|
|
|
849
883
|
```bash
|
|
850
|
-
npx @capgo/cli@latest
|
|
884
|
+
npx @capgo/cli@latest organization set
|
|
851
885
|
```
|
|
852
886
|
|
|
853
|
-
⚙️ Update organization settings such as name and
|
|
887
|
+
⚙️ Update organization settings such as name, email, and 2FA enforcement.
|
|
854
888
|
|
|
855
889
|
**Example:**
|
|
856
890
|
|
|
857
891
|
```bash
|
|
858
|
-
npx @capgo/cli@latest
|
|
892
|
+
npx @capgo/cli@latest organization set ORG_ID --name "New Name"
|
|
859
893
|
```
|
|
860
894
|
|
|
861
895
|
**Options:**
|
|
@@ -864,16 +898,18 @@ npx @capgo/cli@latest organisation set ORG_ID --name "Updated Company Name"
|
|
|
864
898
|
| -------------- | ------------- | -------------------- |
|
|
865
899
|
| **-n,** | <code>string</code> | Organization name |
|
|
866
900
|
| **-e,** | <code>string</code> | Management email for the organization |
|
|
901
|
+
| **--enforce-2fa** | <code>boolean</code> | Enable 2FA enforcement for all organization members |
|
|
902
|
+
| **--no-enforce-2fa** | <code>boolean</code> | Disable 2FA enforcement for organization |
|
|
867
903
|
| **-a,** | <code>string</code> | API key to link to your account |
|
|
868
904
|
| **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
|
|
869
905
|
| **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
|
|
870
906
|
|
|
871
|
-
### <a id="
|
|
907
|
+
### <a id="organization-delete"></a> 🗑️ **Delete**
|
|
872
908
|
|
|
873
909
|
**Alias:** `d`
|
|
874
910
|
|
|
875
911
|
```bash
|
|
876
|
-
npx @capgo/cli@latest
|
|
912
|
+
npx @capgo/cli@latest organization delete
|
|
877
913
|
```
|
|
878
914
|
|
|
879
915
|
🗑️ Delete an organization from Capgo Cloud. This action cannot be undone.
|
|
@@ -882,9 +918,90 @@ Only organization owners can delete organizations.
|
|
|
882
918
|
**Example:**
|
|
883
919
|
|
|
884
920
|
```bash
|
|
885
|
-
npx @capgo/cli@latest
|
|
921
|
+
npx @capgo/cli@latest organization delete ORG_ID
|
|
922
|
+
```
|
|
923
|
+
|
|
924
|
+
**Options:**
|
|
925
|
+
|
|
926
|
+
| Param | Type | Description |
|
|
927
|
+
| -------------- | ------------- | -------------------- |
|
|
928
|
+
| **-a,** | <code>string</code> | API key to link to your account |
|
|
929
|
+
| **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
|
|
930
|
+
| **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
|
|
931
|
+
|
|
932
|
+
|
|
933
|
+
## <a id="organisation"></a> 🔹 **Organisation**
|
|
934
|
+
|
|
935
|
+
[DEPRECATED] Use "organization" instead. This command will be removed in a future version.
|
|
936
|
+
|
|
937
|
+
### <a id="organisation-list"></a> 📋 **List**
|
|
938
|
+
|
|
939
|
+
**Alias:** `l`
|
|
940
|
+
|
|
941
|
+
```bash
|
|
942
|
+
npx @capgo/cli@latest organisation list
|
|
943
|
+
```
|
|
944
|
+
|
|
945
|
+
[DEPRECATED] Use "organization list" instead.
|
|
946
|
+
|
|
947
|
+
**Options:**
|
|
948
|
+
|
|
949
|
+
| Param | Type | Description |
|
|
950
|
+
| -------------- | ------------- | -------------------- |
|
|
951
|
+
| **-a,** | <code>string</code> | API key to link to your account |
|
|
952
|
+
| **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
|
|
953
|
+
| **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
|
|
954
|
+
|
|
955
|
+
### <a id="organisation-add"></a> ➕ **Add**
|
|
956
|
+
|
|
957
|
+
**Alias:** `a`
|
|
958
|
+
|
|
959
|
+
```bash
|
|
960
|
+
npx @capgo/cli@latest organisation add
|
|
886
961
|
```
|
|
887
962
|
|
|
963
|
+
[DEPRECATED] Use "organization add" instead.
|
|
964
|
+
|
|
965
|
+
**Options:**
|
|
966
|
+
|
|
967
|
+
| Param | Type | Description |
|
|
968
|
+
| -------------- | ------------- | -------------------- |
|
|
969
|
+
| **-n,** | <code>string</code> | Organization name |
|
|
970
|
+
| **-e,** | <code>string</code> | Management email for the organization |
|
|
971
|
+
| **-a,** | <code>string</code> | API key to link to your account |
|
|
972
|
+
| **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
|
|
973
|
+
| **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
|
|
974
|
+
|
|
975
|
+
### <a id="organisation-set"></a> ⚙️ **Set**
|
|
976
|
+
|
|
977
|
+
**Alias:** `s`
|
|
978
|
+
|
|
979
|
+
```bash
|
|
980
|
+
npx @capgo/cli@latest organisation set
|
|
981
|
+
```
|
|
982
|
+
|
|
983
|
+
[DEPRECATED] Use "organization set" instead.
|
|
984
|
+
|
|
985
|
+
**Options:**
|
|
986
|
+
|
|
987
|
+
| Param | Type | Description |
|
|
988
|
+
| -------------- | ------------- | -------------------- |
|
|
989
|
+
| **-n,** | <code>string</code> | Organization name |
|
|
990
|
+
| **-e,** | <code>string</code> | Management email for the organization |
|
|
991
|
+
| **-a,** | <code>string</code> | API key to link to your account |
|
|
992
|
+
| **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
|
|
993
|
+
| **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
|
|
994
|
+
|
|
995
|
+
### <a id="organisation-delete"></a> 🗑️ **Delete**
|
|
996
|
+
|
|
997
|
+
**Alias:** `d`
|
|
998
|
+
|
|
999
|
+
```bash
|
|
1000
|
+
npx @capgo/cli@latest organisation delete
|
|
1001
|
+
```
|
|
1002
|
+
|
|
1003
|
+
[DEPRECATED] Use "organization delete" instead.
|
|
1004
|
+
|
|
888
1005
|
**Options:**
|
|
889
1006
|
|
|
890
1007
|
| Param | Type | Description |
|