Skip to content

Commit

Permalink
Add docs link to the troubleshooting message
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentaTomas committed Nov 14, 2023
1 parent c544dc6 commit 4878b7e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/cli/src/api.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit 4878b7e

Please sign in to comment.