Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Add docs link to the troubleshooting message

Tomas Valenta4878b7ea3a81
diff --git a/packages/cli/src/api.ts b/packages/cli/src/api.ts
index fce8a6753..913e67306 100644
--- a/packages/cli/src/api.ts
+++ b/packages/cli/src/api.ts
@@ -1,14 +1,16 @@
import * as boxen from 'boxen'
import { getUserConfig } from './user'
-import { asBold } from './utils/format'
+import { asBold, asPrimary } from './utils/format'
export let apiKey = process.env.E2B_API_KEY
export let accessToken = process.env.E2B_ACCESS_TOKEN
const authErrorBox = boxen.default(
`You must be logged in to use this command. Run ${asBold('e2b login')}.
-If you are seeing this message in CI/CD you may need to set the ${asBold('E2B_ACCESS_TOKEN')} environment variable.`,
+
+If you are seeing this message in CI/CD you may need to set the ${asBold('E2B_ACCESS_TOKEN')} environment variable.
+Visit ${asPrimary('https://e2b.dev/docs/getting-started/api-key')} to get the access token.`,
{
width: 70,
float: 'center',