Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Fix command references in CLI description

Jakub Novake0ca2351112a
diff --git a/.changeset/yellow-elephants-leave.md b/.changeset/yellow-elephants-leave.md
new file mode 100644
index 000000000..bf50817ed
--- /dev/null
+++ b/.changeset/yellow-elephants-leave.md
@@ -0,0 +1,5 @@
+---
+"@e2b/cli": patch
+---
+
+Fix command reference in the description in CLI
diff --git a/packages/cli/src/api.ts b/packages/cli/src/api.ts
index 913e67306..6df8294c7 100644
--- a/packages/cli/src/api.ts
+++ b/packages/cli/src/api.ts
@@ -7,7 +7,7 @@ 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')}.
+ `You must be logged in to use this command. Run ${asBold('e2b auth login')}.
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.`,
diff --git a/packages/cli/src/commands/auth/login.ts b/packages/cli/src/commands/auth/login.ts
index 4f7c2ba7d..e02d08766 100644
--- a/packages/cli/src/commands/auth/login.ts
+++ b/packages/cli/src/commands/auth/login.ts
@@ -22,7 +22,7 @@ export const loginCommand = new commander.Command('login')
console.log(
`Already logged in as ${asBold(
userConfig.email,
- )}, if you want to login as a different user, logout first by running 'e2b logout'.`,
+ )}, if you want to login as a different user, logout first by running 'e2b auth logout'.`,
)
return
} else if (!userConfig) {
diff --git a/packages/cli/src/commands/index.ts b/packages/cli/src/commands/index.ts
index 2098cb480..c0ce99df3 100644
--- a/packages/cli/src/commands/index.ts
+++ b/packages/cli/src/commands/index.ts
@@ -6,7 +6,7 @@ import { sandboxCommand } from './sandbox'
import { authCommand } from './auth'
export const program = new commander.Command()
- .description(`Create sandbox templates from Dockerfiles by running ${asPrimary('e2b build')} then use our SDKs to create sandboxes from these templates.
+ .description(`Create sandbox templates from Dockerfiles by running ${asPrimary('e2b template build')} then use our SDKs to create sandboxes from these templates.
Visit ${asPrimary('E2B docs (https://e2b.dev/docs)')} to learn how to create sandbox templates and start sandboxes.
`)
diff --git a/packages/cli/src/commands/template/init.ts b/packages/cli/src/commands/template/init.ts
index 9a47ac09d..2f2de2bff 100644
--- a/packages/cli/src/commands/template/init.ts
+++ b/packages/cli/src/commands/template/init.ts
@@ -10,7 +10,7 @@ import { asLocalRelative, asPrimary } from 'src/utils/format'
export const initCommand = new commander.Command('init')
.description(
- `Create basic E2B Dockerfile (${asLocalRelative('e2b.Dockerfile')}) in root directory. You can then run ${asPrimary('e2b build')} to build sandbox template from this Dockerfile`,
+ `Create basic E2B Dockerfile (${asLocalRelative('e2b.Dockerfile')}) in root directory. You can then run ${asPrimary('e2b template build')} to build sandbox template from this Dockerfile`,
)
.addOption(pathOption)
.alias('it')