@an-sdk/cli 0.0.6 → 0.0.7
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/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -46,6 +46,7 @@ async function login() {
|
|
|
46
46
|
if (existing) {
|
|
47
47
|
p.log.info("Already logged in. Continuing will re-authenticate.");
|
|
48
48
|
}
|
|
49
|
+
p.log.info("Get your API key at https://an.dev/api-keys");
|
|
49
50
|
const apiKey = await p.text({
|
|
50
51
|
message: "Enter your API key",
|
|
51
52
|
validate: (val) => {
|
|
@@ -63,7 +64,7 @@ async function login() {
|
|
|
63
64
|
});
|
|
64
65
|
if (!res.ok) {
|
|
65
66
|
s.stop("Invalid API key");
|
|
66
|
-
p.log.error("
|
|
67
|
+
p.log.error("Invalid API key. Get a new one at https://an.dev/api-keys");
|
|
67
68
|
process.exit(1);
|
|
68
69
|
}
|
|
69
70
|
const { user, team } = await res.json();
|