@xano/cli 0.0.95-beta.21 → 0.0.95-beta.22

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 (198) hide show
  1. package/README.md +13 -1
  2. package/dist/base-command.d.ts +11 -1
  3. package/dist/base-command.js +31 -3
  4. package/dist/commands/auth/index.d.ts +1 -0
  5. package/dist/commands/auth/index.js +15 -10
  6. package/dist/commands/branch/create/index.d.ts +1 -0
  7. package/dist/commands/branch/create/index.js +1 -4
  8. package/dist/commands/branch/delete/index.d.ts +1 -0
  9. package/dist/commands/branch/delete/index.js +1 -4
  10. package/dist/commands/branch/edit/index.d.ts +1 -0
  11. package/dist/commands/branch/edit/index.js +1 -4
  12. package/dist/commands/branch/get/index.d.ts +1 -0
  13. package/dist/commands/branch/get/index.js +1 -4
  14. package/dist/commands/branch/list/index.d.ts +1 -0
  15. package/dist/commands/branch/list/index.js +1 -4
  16. package/dist/commands/branch/set_live/index.d.ts +1 -0
  17. package/dist/commands/branch/set_live/index.js +1 -4
  18. package/dist/commands/function/create/index.d.ts +1 -0
  19. package/dist/commands/function/create/index.js +1 -2
  20. package/dist/commands/function/edit/index.d.ts +1 -0
  21. package/dist/commands/function/edit/index.js +1 -2
  22. package/dist/commands/function/get/index.d.ts +1 -0
  23. package/dist/commands/function/get/index.js +1 -4
  24. package/dist/commands/function/list/index.d.ts +1 -0
  25. package/dist/commands/function/list/index.js +1 -4
  26. package/dist/commands/platform/get/index.d.ts +1 -0
  27. package/dist/commands/platform/get/index.js +1 -4
  28. package/dist/commands/platform/list/index.d.ts +1 -0
  29. package/dist/commands/platform/list/index.js +1 -4
  30. package/dist/commands/profile/create/index.d.ts +1 -0
  31. package/dist/commands/profile/create/index.js +10 -4
  32. package/dist/commands/profile/delete/index.d.ts +1 -0
  33. package/dist/commands/profile/delete/index.js +8 -4
  34. package/dist/commands/profile/edit/index.d.ts +1 -0
  35. package/dist/commands/profile/edit/index.js +1 -4
  36. package/dist/commands/profile/get/index.d.ts +3 -0
  37. package/dist/commands/profile/get/index.js +12 -5
  38. package/dist/commands/profile/list/index.d.ts +1 -0
  39. package/dist/commands/profile/list/index.js +8 -4
  40. package/dist/commands/profile/me/index.d.ts +1 -0
  41. package/dist/commands/profile/me/index.js +1 -4
  42. package/dist/commands/profile/set/index.d.ts +3 -0
  43. package/dist/commands/profile/set/index.js +12 -6
  44. package/dist/commands/profile/token/index.d.ts +3 -0
  45. package/dist/commands/profile/token/index.js +12 -5
  46. package/dist/commands/profile/wizard/index.d.ts +1 -0
  47. package/dist/commands/profile/wizard/index.js +13 -9
  48. package/dist/commands/profile/workspace/index.d.ts +3 -0
  49. package/dist/commands/profile/workspace/index.js +12 -5
  50. package/dist/commands/profile/workspace/set/index.d.ts +1 -0
  51. package/dist/commands/profile/workspace/set/index.js +1 -3
  52. package/dist/commands/release/create/index.d.ts +1 -0
  53. package/dist/commands/release/create/index.js +1 -4
  54. package/dist/commands/release/delete/index.d.ts +1 -0
  55. package/dist/commands/release/delete/index.js +1 -4
  56. package/dist/commands/release/deploy/index.d.ts +1 -0
  57. package/dist/commands/release/edit/index.d.ts +1 -0
  58. package/dist/commands/release/edit/index.js +1 -4
  59. package/dist/commands/release/export/index.d.ts +1 -0
  60. package/dist/commands/release/export/index.js +1 -3
  61. package/dist/commands/release/get/index.d.ts +1 -0
  62. package/dist/commands/release/get/index.js +1 -4
  63. package/dist/commands/release/import/index.d.ts +1 -0
  64. package/dist/commands/release/import/index.js +1 -3
  65. package/dist/commands/release/list/index.d.ts +1 -0
  66. package/dist/commands/release/list/index.js +1 -4
  67. package/dist/commands/release/pull/index.d.ts +1 -0
  68. package/dist/commands/release/pull/index.js +1 -3
  69. package/dist/commands/release/push/index.d.ts +1 -0
  70. package/dist/commands/release/push/index.js +1 -3
  71. package/dist/commands/sandbox/delete/index.d.ts +1 -0
  72. package/dist/commands/sandbox/env/delete/index.d.ts +1 -0
  73. package/dist/commands/sandbox/env/get/index.d.ts +1 -0
  74. package/dist/commands/sandbox/env/get_all/index.d.ts +1 -0
  75. package/dist/commands/sandbox/env/list/index.d.ts +1 -0
  76. package/dist/commands/sandbox/env/set/index.d.ts +1 -0
  77. package/dist/commands/sandbox/env/set_all/index.d.ts +1 -0
  78. package/dist/commands/sandbox/get/index.d.ts +1 -0
  79. package/dist/commands/sandbox/license/get/index.d.ts +1 -0
  80. package/dist/commands/sandbox/license/set/index.d.ts +1 -0
  81. package/dist/commands/sandbox/pull/index.d.ts +1 -0
  82. package/dist/commands/sandbox/push/index.d.ts +1 -0
  83. package/dist/commands/sandbox/reset/index.d.ts +1 -0
  84. package/dist/commands/sandbox/review/index.d.ts +1 -0
  85. package/dist/commands/sandbox/unit_test/list/index.d.ts +1 -0
  86. package/dist/commands/sandbox/unit_test/run/index.d.ts +1 -0
  87. package/dist/commands/sandbox/unit_test/run_all/index.d.ts +1 -0
  88. package/dist/commands/sandbox/workflow_test/list/index.d.ts +1 -0
  89. package/dist/commands/sandbox/workflow_test/run/index.d.ts +1 -0
  90. package/dist/commands/sandbox/workflow_test/run_all/index.d.ts +1 -0
  91. package/dist/commands/static_host/build/create/index.d.ts +1 -0
  92. package/dist/commands/static_host/build/create/index.js +1 -3
  93. package/dist/commands/static_host/build/get/index.d.ts +1 -0
  94. package/dist/commands/static_host/build/get/index.js +1 -4
  95. package/dist/commands/static_host/build/list/index.d.ts +1 -0
  96. package/dist/commands/static_host/build/list/index.js +1 -4
  97. package/dist/commands/static_host/list/index.d.ts +1 -0
  98. package/dist/commands/static_host/list/index.js +1 -4
  99. package/dist/commands/tenant/backup/create/index.d.ts +1 -0
  100. package/dist/commands/tenant/backup/create/index.js +1 -4
  101. package/dist/commands/tenant/backup/delete/index.d.ts +1 -0
  102. package/dist/commands/tenant/backup/delete/index.js +1 -4
  103. package/dist/commands/tenant/backup/export/index.d.ts +1 -0
  104. package/dist/commands/tenant/backup/export/index.js +1 -3
  105. package/dist/commands/tenant/backup/import/index.d.ts +1 -0
  106. package/dist/commands/tenant/backup/import/index.js +1 -3
  107. package/dist/commands/tenant/backup/list/index.d.ts +1 -0
  108. package/dist/commands/tenant/backup/list/index.js +1 -4
  109. package/dist/commands/tenant/backup/restore/index.d.ts +1 -0
  110. package/dist/commands/tenant/backup/restore/index.js +1 -4
  111. package/dist/commands/tenant/cluster/create/index.d.ts +1 -0
  112. package/dist/commands/tenant/cluster/create/index.js +1 -3
  113. package/dist/commands/tenant/cluster/delete/index.d.ts +1 -0
  114. package/dist/commands/tenant/cluster/delete/index.js +1 -4
  115. package/dist/commands/tenant/cluster/edit/index.d.ts +1 -0
  116. package/dist/commands/tenant/cluster/edit/index.js +1 -4
  117. package/dist/commands/tenant/cluster/get/index.d.ts +1 -0
  118. package/dist/commands/tenant/cluster/get/index.js +1 -4
  119. package/dist/commands/tenant/cluster/license/get/index.d.ts +1 -0
  120. package/dist/commands/tenant/cluster/license/get/index.js +1 -3
  121. package/dist/commands/tenant/cluster/license/set/index.d.ts +1 -0
  122. package/dist/commands/tenant/cluster/license/set/index.js +1 -3
  123. package/dist/commands/tenant/cluster/list/index.d.ts +1 -0
  124. package/dist/commands/tenant/cluster/list/index.js +1 -4
  125. package/dist/commands/tenant/create/index.d.ts +1 -0
  126. package/dist/commands/tenant/create/index.js +1 -3
  127. package/dist/commands/tenant/delete/index.d.ts +1 -0
  128. package/dist/commands/tenant/delete/index.js +1 -4
  129. package/dist/commands/tenant/deploy_platform/index.d.ts +1 -0
  130. package/dist/commands/tenant/deploy_platform/index.js +1 -3
  131. package/dist/commands/tenant/deploy_release/index.d.ts +1 -0
  132. package/dist/commands/tenant/deploy_release/index.js +1 -4
  133. package/dist/commands/tenant/edit/index.d.ts +1 -0
  134. package/dist/commands/tenant/edit/index.js +1 -4
  135. package/dist/commands/tenant/env/delete/index.d.ts +1 -0
  136. package/dist/commands/tenant/env/delete/index.js +1 -4
  137. package/dist/commands/tenant/env/get/index.d.ts +1 -0
  138. package/dist/commands/tenant/env/get/index.js +1 -4
  139. package/dist/commands/tenant/env/get_all/index.d.ts +1 -0
  140. package/dist/commands/tenant/env/get_all/index.js +1 -3
  141. package/dist/commands/tenant/env/list/index.d.ts +1 -0
  142. package/dist/commands/tenant/env/list/index.js +1 -4
  143. package/dist/commands/tenant/env/set/index.d.ts +1 -0
  144. package/dist/commands/tenant/env/set/index.js +1 -4
  145. package/dist/commands/tenant/env/set_all/index.d.ts +1 -0
  146. package/dist/commands/tenant/env/set_all/index.js +1 -3
  147. package/dist/commands/tenant/get/index.d.ts +1 -0
  148. package/dist/commands/tenant/get/index.js +1 -4
  149. package/dist/commands/tenant/impersonate/index.d.ts +1 -0
  150. package/dist/commands/tenant/impersonate/index.js +1 -4
  151. package/dist/commands/tenant/license/get/index.d.ts +1 -0
  152. package/dist/commands/tenant/license/get/index.js +1 -3
  153. package/dist/commands/tenant/license/set/index.d.ts +1 -0
  154. package/dist/commands/tenant/license/set/index.js +1 -3
  155. package/dist/commands/tenant/list/index.d.ts +1 -0
  156. package/dist/commands/tenant/list/index.js +1 -4
  157. package/dist/commands/tenant/pull/index.d.ts +1 -0
  158. package/dist/commands/tenant/pull/index.js +1 -3
  159. package/dist/commands/tenant/unit_test/list/index.d.ts +1 -0
  160. package/dist/commands/tenant/unit_test/run/index.d.ts +1 -0
  161. package/dist/commands/tenant/unit_test/run_all/index.d.ts +1 -0
  162. package/dist/commands/tenant/workflow_test/list/index.d.ts +1 -0
  163. package/dist/commands/tenant/workflow_test/run/index.d.ts +1 -0
  164. package/dist/commands/tenant/workflow_test/run_all/index.d.ts +1 -0
  165. package/dist/commands/unit_test/list/index.d.ts +1 -0
  166. package/dist/commands/unit_test/list/index.js +1 -4
  167. package/dist/commands/unit_test/run/index.d.ts +1 -0
  168. package/dist/commands/unit_test/run/index.js +1 -4
  169. package/dist/commands/unit_test/run_all/index.d.ts +1 -0
  170. package/dist/commands/unit_test/run_all/index.js +1 -4
  171. package/dist/commands/update/index.d.ts +1 -0
  172. package/dist/commands/workflow_test/delete/index.d.ts +1 -0
  173. package/dist/commands/workflow_test/delete/index.js +1 -4
  174. package/dist/commands/workflow_test/get/index.d.ts +1 -0
  175. package/dist/commands/workflow_test/get/index.js +1 -4
  176. package/dist/commands/workflow_test/list/index.d.ts +1 -0
  177. package/dist/commands/workflow_test/list/index.js +1 -4
  178. package/dist/commands/workflow_test/run/index.d.ts +1 -0
  179. package/dist/commands/workflow_test/run/index.js +1 -4
  180. package/dist/commands/workflow_test/run_all/index.d.ts +1 -0
  181. package/dist/commands/workflow_test/run_all/index.js +1 -4
  182. package/dist/commands/workspace/create/index.d.ts +1 -0
  183. package/dist/commands/workspace/create/index.js +1 -4
  184. package/dist/commands/workspace/delete/index.d.ts +1 -0
  185. package/dist/commands/workspace/delete/index.js +1 -4
  186. package/dist/commands/workspace/edit/index.d.ts +1 -0
  187. package/dist/commands/workspace/edit/index.js +1 -4
  188. package/dist/commands/workspace/get/index.d.ts +1 -0
  189. package/dist/commands/workspace/get/index.js +1 -4
  190. package/dist/commands/workspace/git/pull/index.d.ts +1 -0
  191. package/dist/commands/workspace/list/index.d.ts +1 -0
  192. package/dist/commands/workspace/list/index.js +1 -4
  193. package/dist/commands/workspace/pull/index.d.ts +1 -0
  194. package/dist/commands/workspace/pull/index.js +1 -3
  195. package/dist/commands/workspace/push/index.d.ts +1 -0
  196. package/dist/commands/workspace/push/index.js +1 -3
  197. package/oclif.manifest.json +2920 -1796
  198. package/package.json +1 -1
@@ -12,6 +12,7 @@ export default class TenantWorkflowTestRun extends BaseCommand {
12
12
  output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
13
13
  tenant: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
14
14
  workspace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
+ config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
16
  profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
17
  verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
18
  };
@@ -7,6 +7,7 @@ export default class TenantWorkflowTestRunAll extends BaseCommand {
7
7
  output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
8
8
  tenant: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
9
9
  workspace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
+ config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
11
  profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
12
  verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
12
13
  };
@@ -7,6 +7,7 @@ export default class UnitTestList extends BaseCommand {
7
7
  'obj-type': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
8
  output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
9
9
  workspace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
+ config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
11
  profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
12
  verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
12
13
  };
@@ -1,8 +1,6 @@
1
1
  import { Flags } from '@oclif/core';
2
2
  import * as yaml from 'js-yaml';
3
3
  import * as fs from 'node:fs';
4
- import * as os from 'node:os';
5
- import * as path from 'node:path';
6
4
  import BaseCommand from '../../../base-command.js';
7
5
  export default class UnitTestList extends BaseCommand {
8
6
  static description = 'List all unit tests in a workspace';
@@ -116,8 +114,7 @@ Unit tests in workspace 5:
116
114
  }
117
115
  }
118
116
  loadCredentials() {
119
- const configDir = path.join(os.homedir(), '.xano');
120
- const credentialsPath = path.join(configDir, 'credentials.yaml');
117
+ const credentialsPath = this.getCredentialsPath();
121
118
  if (!fs.existsSync(credentialsPath)) {
122
119
  this.error(`Credentials file not found at ${credentialsPath}\n` +
123
120
  `Create a profile using 'xano profile create'`);
@@ -8,6 +8,7 @@ export default class UnitTestRun extends BaseCommand {
8
8
  static flags: {
9
9
  output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
10
10
  workspace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
+ config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
12
  profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
13
  verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
13
14
  };
@@ -1,8 +1,6 @@
1
1
  import { Args, Flags } from '@oclif/core';
2
2
  import * as yaml from 'js-yaml';
3
3
  import * as fs from 'node:fs';
4
- import * as os from 'node:os';
5
- import * as path from 'node:path';
6
4
  import BaseCommand from '../../../base-command.js';
7
5
  export default class UnitTestRun extends BaseCommand {
8
6
  static args = {
@@ -100,8 +98,7 @@ Result: PASS
100
98
  }
101
99
  }
102
100
  loadCredentials() {
103
- const configDir = path.join(os.homedir(), '.xano');
104
- const credentialsPath = path.join(configDir, 'credentials.yaml');
101
+ const credentialsPath = this.getCredentialsPath();
105
102
  if (!fs.existsSync(credentialsPath)) {
106
103
  this.error(`Credentials file not found at ${credentialsPath}\n` +
107
104
  `Create a profile using 'xano profile create'`);
@@ -7,6 +7,7 @@ export default class UnitTestRunAll extends BaseCommand {
7
7
  'obj-type': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
8
  output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
9
9
  workspace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
+ config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
11
  profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
12
  verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
12
13
  };
@@ -1,8 +1,6 @@
1
1
  import { Flags } from '@oclif/core';
2
2
  import * as yaml from 'js-yaml';
3
3
  import * as fs from 'node:fs';
4
- import * as os from 'node:os';
5
- import * as path from 'node:path';
6
4
  import BaseCommand from '../../../base-command.js';
7
5
  export default class UnitTestRunAll extends BaseCommand {
8
6
  static description = 'Run all unit tests in a workspace';
@@ -195,8 +193,7 @@ Results: 2 passed, 1 failed
195
193
  }
196
194
  }
197
195
  loadCredentials() {
198
- const configDir = path.join(os.homedir(), '.xano');
199
- const credentialsPath = path.join(configDir, 'credentials.yaml');
196
+ const credentialsPath = this.getCredentialsPath();
200
197
  if (!fs.existsSync(credentialsPath)) {
201
198
  this.error(`Credentials file not found at ${credentialsPath}\n` + `Create a profile using 'xano profile create'`);
202
199
  }
@@ -5,6 +5,7 @@ export default class Update extends BaseCommand {
5
5
  static flags: {
6
6
  beta: import("@oclif/core/interfaces").BooleanFlag<boolean>;
7
7
  check: import("@oclif/core/interfaces").BooleanFlag<boolean>;
8
+ config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
9
  profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
10
  verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
10
11
  };
@@ -12,6 +12,7 @@ export default class WorkflowTestDelete extends BaseCommand {
12
12
  force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
13
13
  output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
14
14
  workspace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
+ config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
16
  profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
17
  verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
18
  };
@@ -2,8 +2,6 @@ import { Args, Flags } from '@oclif/core';
2
2
  import * as readline from 'node:readline';
3
3
  import * as yaml from 'js-yaml';
4
4
  import * as fs from 'node:fs';
5
- import * as os from 'node:os';
6
- import * as path from 'node:path';
7
5
  import BaseCommand from '../../../base-command.js';
8
6
  export default class WorkflowTestDelete extends BaseCommand {
9
7
  static args = {
@@ -109,8 +107,7 @@ Deleted workflow test 1
109
107
  });
110
108
  }
111
109
  loadCredentials() {
112
- const configDir = path.join(os.homedir(), '.xano');
113
- const credentialsPath = path.join(configDir, 'credentials.yaml');
110
+ const credentialsPath = this.getCredentialsPath();
114
111
  if (!fs.existsSync(credentialsPath)) {
115
112
  this.error(`Credentials file not found at ${credentialsPath}\n` +
116
113
  `Create a profile using 'xano profile create'`);
@@ -12,6 +12,7 @@ export default class WorkflowTestGet extends BaseCommand {
12
12
  'include-draft': import("@oclif/core/interfaces").BooleanFlag<boolean>;
13
13
  output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
14
14
  workspace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
+ config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
16
  profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
17
  verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
18
  };
@@ -1,8 +1,6 @@
1
1
  import { Args, Flags } from '@oclif/core';
2
2
  import * as yaml from 'js-yaml';
3
3
  import * as fs from 'node:fs';
4
- import * as os from 'node:os';
5
- import * as path from 'node:path';
6
4
  import BaseCommand from '../../../base-command.js';
7
5
  export default class WorkflowTestGet extends BaseCommand {
8
6
  static args = {
@@ -121,8 +119,7 @@ Workflow Test: my-test (ID: 1)
121
119
  }
122
120
  }
123
121
  loadCredentials() {
124
- const configDir = path.join(os.homedir(), '.xano');
125
- const credentialsPath = path.join(configDir, 'credentials.yaml');
122
+ const credentialsPath = this.getCredentialsPath();
126
123
  if (!fs.existsSync(credentialsPath)) {
127
124
  this.error(`Credentials file not found at ${credentialsPath}\n` +
128
125
  `Create a profile using 'xano profile create'`);
@@ -6,6 +6,7 @@ export default class WorkflowTestList extends BaseCommand {
6
6
  branch: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
7
7
  output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
8
8
  workspace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
+ config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
10
  profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
11
  verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
11
12
  };
@@ -1,8 +1,6 @@
1
1
  import { Flags } from '@oclif/core';
2
2
  import * as yaml from 'js-yaml';
3
3
  import * as fs from 'node:fs';
4
- import * as os from 'node:os';
5
- import * as path from 'node:path';
6
4
  import BaseCommand from '../../../base-command.js';
7
5
  export default class WorkflowTestList extends BaseCommand {
8
6
  static description = 'List all workflow tests in a workspace';
@@ -108,8 +106,7 @@ Workflow tests in workspace 5:
108
106
  }
109
107
  }
110
108
  loadCredentials() {
111
- const configDir = path.join(os.homedir(), '.xano');
112
- const credentialsPath = path.join(configDir, 'credentials.yaml');
109
+ const credentialsPath = this.getCredentialsPath();
113
110
  if (!fs.existsSync(credentialsPath)) {
114
111
  this.error(`Credentials file not found at ${credentialsPath}\n` +
115
112
  `Create a profile using 'xano profile create'`);
@@ -11,6 +11,7 @@ export default class WorkflowTestRun extends BaseCommand {
11
11
  static flags: {
12
12
  output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
13
13
  workspace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
+ config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
15
  profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
16
  verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
17
  };
@@ -1,8 +1,6 @@
1
1
  import { Args, Flags } from '@oclif/core';
2
2
  import * as yaml from 'js-yaml';
3
3
  import * as fs from 'node:fs';
4
- import * as os from 'node:os';
5
- import * as path from 'node:path';
6
4
  import BaseCommand from '../../../base-command.js';
7
5
  export default class WorkflowTestRun extends BaseCommand {
8
6
  static args = {
@@ -98,8 +96,7 @@ Result: PASS (1.234s)
98
96
  }
99
97
  }
100
98
  loadCredentials() {
101
- const configDir = path.join(os.homedir(), '.xano');
102
- const credentialsPath = path.join(configDir, 'credentials.yaml');
99
+ const credentialsPath = this.getCredentialsPath();
103
100
  if (!fs.existsSync(credentialsPath)) {
104
101
  this.error(`Credentials file not found at ${credentialsPath}\n` +
105
102
  `Create a profile using 'xano profile create'`);
@@ -6,6 +6,7 @@ export default class WorkflowTestRunAll extends BaseCommand {
6
6
  branch: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
7
7
  output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
8
8
  workspace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
+ config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
10
  profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
11
  verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
11
12
  };
@@ -1,8 +1,6 @@
1
1
  import { Flags } from '@oclif/core';
2
2
  import * as yaml from 'js-yaml';
3
3
  import * as fs from 'node:fs';
4
- import * as os from 'node:os';
5
- import * as path from 'node:path';
6
4
  import BaseCommand from '../../../base-command.js';
7
5
  export default class WorkflowTestRunAll extends BaseCommand {
8
6
  static description = 'Run all workflow tests in a workspace';
@@ -183,8 +181,7 @@ Results: 2 passed, 1 failed (2.691s total)
183
181
  }
184
182
  }
185
183
  loadCredentials() {
186
- const configDir = path.join(os.homedir(), '.xano');
187
- const credentialsPath = path.join(configDir, 'credentials.yaml');
184
+ const credentialsPath = this.getCredentialsPath();
188
185
  if (!fs.existsSync(credentialsPath)) {
189
186
  this.error(`Credentials file not found at ${credentialsPath}\n` + `Create a profile using 'xano profile create'`);
190
187
  }
@@ -8,6 +8,7 @@ export default class WorkspaceCreate extends BaseCommand {
8
8
  static flags: {
9
9
  description: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
10
  output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
11
+ config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
12
  profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
13
  verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
13
14
  };
@@ -1,8 +1,6 @@
1
1
  import { Args, Flags } from '@oclif/core';
2
2
  import * as yaml from 'js-yaml';
3
3
  import * as fs from 'node:fs';
4
- import * as os from 'node:os';
5
- import * as path from 'node:path';
6
4
  import BaseCommand from '../../../base-command.js';
7
5
  export default class WorkspaceCreate extends BaseCommand {
8
6
  static args = {
@@ -109,8 +107,7 @@ Created workspace: my-app (ID: 456)
109
107
  }
110
108
  }
111
109
  loadCredentials() {
112
- const configDir = path.join(os.homedir(), '.xano');
113
- const credentialsPath = path.join(configDir, 'credentials.yaml');
110
+ const credentialsPath = this.getCredentialsPath();
114
111
  // Check if credentials file exists
115
112
  if (!fs.existsSync(credentialsPath)) {
116
113
  this.error(`Credentials file not found at ${credentialsPath}\n` +
@@ -11,6 +11,7 @@ export default class WorkspaceDelete extends BaseCommand {
11
11
  static flags: {
12
12
  force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
13
13
  output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
14
+ config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
15
  profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
16
  verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
17
  };
@@ -1,8 +1,6 @@
1
1
  import { Args, Flags } from '@oclif/core';
2
2
  import * as yaml from 'js-yaml';
3
3
  import * as fs from 'node:fs';
4
- import * as os from 'node:os';
5
- import * as path from 'node:path';
6
4
  import BaseCommand from '../../../base-command.js';
7
5
  export default class WorkspaceDelete extends BaseCommand {
8
6
  static args = {
@@ -118,8 +116,7 @@ Deleted workspace 123
118
116
  });
119
117
  }
120
118
  loadCredentials() {
121
- const configDir = path.join(os.homedir(), '.xano');
122
- const credentialsPath = path.join(configDir, 'credentials.yaml');
119
+ const credentialsPath = this.getCredentialsPath();
123
120
  // Check if credentials file exists
124
121
  if (!fs.existsSync(credentialsPath)) {
125
122
  this.error(`Credentials file not found at ${credentialsPath}\n` +
@@ -15,6 +15,7 @@ export default class WorkspaceEdit extends BaseCommand {
15
15
  output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
16
16
  'require-token': import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
17
  swagger: import("@oclif/core/interfaces").BooleanFlag<boolean>;
18
+ config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
19
  profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
19
20
  verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
20
21
  };
@@ -1,8 +1,6 @@
1
1
  import { Args, Flags } from '@oclif/core';
2
2
  import * as yaml from 'js-yaml';
3
3
  import * as fs from 'node:fs';
4
- import * as os from 'node:os';
5
- import * as path from 'node:path';
6
4
  import BaseCommand from '../../../base-command.js';
7
5
  export default class WorkspaceEdit extends BaseCommand {
8
6
  static args = {
@@ -164,8 +162,7 @@ Updated workspace: my-workspace (ID: 123)
164
162
  }
165
163
  }
166
164
  loadCredentials() {
167
- const configDir = path.join(os.homedir(), '.xano');
168
- const credentialsPath = path.join(configDir, 'credentials.yaml');
165
+ const credentialsPath = this.getCredentialsPath();
169
166
  // Check if credentials file exists
170
167
  if (!fs.existsSync(credentialsPath)) {
171
168
  this.error(`Credentials file not found at ${credentialsPath}\n` + `Create a profile using 'xano profile create'`);
@@ -10,6 +10,7 @@ export default class WorkspaceGet extends BaseCommand {
10
10
  static examples: string[];
11
11
  static flags: {
12
12
  output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
13
+ config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
14
  profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
15
  verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
15
16
  };
@@ -1,8 +1,6 @@
1
1
  import { Args, Flags } from '@oclif/core';
2
2
  import * as yaml from 'js-yaml';
3
3
  import * as fs from 'node:fs';
4
- import * as os from 'node:os';
5
- import * as path from 'node:path';
6
4
  import BaseCommand from '../../../base-command.js';
7
5
  export default class WorkspaceGet extends BaseCommand {
8
6
  static args = {
@@ -116,8 +114,7 @@ Workspace: my-workspace (ID: 123)
116
114
  }
117
115
  }
118
116
  loadCredentials() {
119
- const configDir = path.join(os.homedir(), '.xano');
120
- const credentialsPath = path.join(configDir, 'credentials.yaml');
117
+ const credentialsPath = this.getCredentialsPath();
121
118
  // Check if credentials file exists
122
119
  if (!fs.existsSync(credentialsPath)) {
123
120
  this.error(`Credentials file not found at ${credentialsPath}\n` + `Create a profile using 'xano profile create'`);
@@ -10,6 +10,7 @@ export default class GitPull extends BaseCommand {
10
10
  path: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
11
  repo: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
12
12
  token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
+ config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
14
  profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
15
  verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
15
16
  };
@@ -5,6 +5,7 @@ export default class WorkspaceList extends BaseCommand {
5
5
  static flags: {
6
6
  latest: import("@oclif/core/interfaces").BooleanFlag<boolean>;
7
7
  output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
8
+ config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
9
  profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
10
  verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
10
11
  };
@@ -1,8 +1,6 @@
1
1
  import { Flags } from '@oclif/core';
2
2
  import * as yaml from 'js-yaml';
3
3
  import * as fs from 'node:fs';
4
- import * as os from 'node:os';
5
- import * as path from 'node:path';
6
4
  import BaseCommand from '../../../base-command.js';
7
5
  export default class WorkspaceList extends BaseCommand {
8
6
  static description = 'List all workspaces from the Xano Metadata API';
@@ -139,8 +137,7 @@ Available workspaces:
139
137
  }
140
138
  }
141
139
  loadCredentials() {
142
- const configDir = path.join(os.homedir(), '.xano');
143
- const credentialsPath = path.join(configDir, 'credentials.yaml');
140
+ const credentialsPath = this.getCredentialsPath();
144
141
  // Check if credentials file exists
145
142
  if (!fs.existsSync(credentialsPath)) {
146
143
  this.error(`Credentials file not found at ${credentialsPath}\n` + `Create a profile using 'xano profile:create'`);
@@ -11,6 +11,7 @@ export default class Pull extends BaseCommand {
11
11
  draft: import("@oclif/core/interfaces").BooleanFlag<boolean>;
12
12
  records: import("@oclif/core/interfaces").BooleanFlag<boolean>;
13
13
  workspace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
+ config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
15
  profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
16
  verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
17
  };
@@ -1,7 +1,6 @@
1
1
  import { Args, Flags } from '@oclif/core';
2
2
  import * as yaml from 'js-yaml';
3
3
  import * as fs from 'node:fs';
4
- import * as os from 'node:os';
5
4
  import * as path from 'node:path';
6
5
  import snakeCase from 'lodash.snakecase';
7
6
  import BaseCommand from '../../../base-command.js';
@@ -256,8 +255,7 @@ Pulled 42 documents to ./my-workspace
256
255
  this.log(`Pulled ${writtenCount} documents to ${args.directory}`);
257
256
  }
258
257
  loadCredentials() {
259
- const configDir = path.join(os.homedir(), '.xano');
260
- const credentialsPath = path.join(configDir, 'credentials.yaml');
258
+ const credentialsPath = this.getCredentialsPath();
261
259
  // Check if credentials file exists
262
260
  if (!fs.existsSync(credentialsPath)) {
263
261
  this.error(`Credentials file not found at ${credentialsPath}\n` + `Create a profile using 'xano profile:create'`);
@@ -19,6 +19,7 @@ export default class Push extends BaseCommand {
19
19
  exclude: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
20
20
  include: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
21
21
  force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
22
+ config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
22
23
  profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
23
24
  verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
24
25
  };
@@ -2,7 +2,6 @@ import { Args, Flags, ux } from '@oclif/core';
2
2
  import * as yaml from 'js-yaml';
3
3
  import { minimatch } from 'minimatch';
4
4
  import * as fs from 'node:fs';
5
- import * as os from 'node:os';
6
5
  import * as path from 'node:path';
7
6
  import BaseCommand from '../../../base-command.js';
8
7
  import { buildDocumentKey, findFilesWithGuid, parseDocument } from '../../../utils/document-parser.js';
@@ -785,8 +784,7 @@ Push functions but exclude test files
785
784
  this.log('');
786
785
  }
787
786
  loadCredentials() {
788
- const configDir = path.join(os.homedir(), '.xano');
789
- const credentialsPath = path.join(configDir, 'credentials.yaml');
787
+ const credentialsPath = this.getCredentialsPath();
790
788
  // Check if credentials file exists
791
789
  if (!fs.existsSync(credentialsPath)) {
792
790
  this.error(`Credentials file not found at ${credentialsPath}\n` + `Create a profile using 'xano profile:create'`);