@capawesome/cli 2.1.5 → 3.1.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,29 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [3.1.0](https://github.com/capawesome-team/cli/compare/v3.0.0...v3.1.0) (2025-09-17)
6
+
7
+
8
+ ### Features
9
+
10
+ * **login:** provide token creation info ([37bb72d](https://github.com/capawesome-team/cli/commit/37bb72da29036daf9cabcc761a8edb811bc6e50a))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **utils:** remove 403 status message ([#82](https://github.com/capawesome-team/cli/issues/82)) ([c1637d3](https://github.com/capawesome-team/cli/commit/c1637d33dd30e3940e99a2523d137ff2228b710b))
16
+
17
+ ## [3.0.0](https://github.com/capawesome-team/cli/compare/v2.1.5...v3.0.0) (2025-09-11)
18
+
19
+
20
+ ### ⚠ BREAKING CHANGES
21
+
22
+ * An error is now thrown when an unsupported option is used.
23
+
24
+ ### Features
25
+
26
+ * throw error if option is unknown ([#80](https://github.com/capawesome-team/cli/issues/80)) ([faf5dfc](https://github.com/capawesome-team/cli/commit/faf5dfc6c5765a1a2fefb7b9f0ee57e76f463b85)), closes [#79](https://github.com/capawesome-team/cli/issues/79)
27
+
5
28
  ## [2.1.5](https://github.com/capawesome-team/cli/compare/v2.1.4...v2.1.5) (2025-09-08)
6
29
 
7
30
 
@@ -63,6 +63,8 @@ export default defineCommand({
63
63
  sessionIdOrToken = sessionId;
64
64
  }
65
65
  else {
66
+ consola.info(`You can create a token at ${consoleBaseUrl}/settings/tokens.`);
67
+ // Prompt the user to enter their token
66
68
  sessionIdOrToken = await prompt('Please provide your authentication token:', {
67
69
  type: 'text',
68
70
  });
@@ -25,9 +25,6 @@ const getErrorMessageFromAxiosError = (error) => {
25
25
  else if (error.response?.status === 401) {
26
26
  message = 'Your token is no longer valid. Please sign in again.';
27
27
  }
28
- else if (error.response?.status === 403) {
29
- message = 'You do not have permission to access this resource.';
30
- }
31
28
  else if (error.response?.status === 500) {
32
29
  message = 'An internal server error has occurred. Please try again later.';
33
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capawesome/cli",
3
- "version": "2.1.5",
3
+ "version": "3.1.0",
4
4
  "description": "The Capawesome Cloud Command Line Interface (CLI) to manage Live Updates and more.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -53,7 +53,7 @@
53
53
  ],
54
54
  "dependencies": {
55
55
  "@clack/prompts": "0.7.0",
56
- "@robingenz/zli": "0.1.5",
56
+ "@robingenz/zli": "0.2.0",
57
57
  "@sentry/node": "8.55.0",
58
58
  "archiver": "7.0.1",
59
59
  "axios": "1.8.4",