Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
feat(cli): rename user-visible "team" wording to "project" in terminal output (#1577)
Jakub Kracinac0fe6081bd4f
diff --git a/.changeset/cli-teams-to-projects-copy.md b/.changeset/cli-teams-to-projects-copy.mdnew file mode 100644index 000000000..bedd54165--- /dev/null+++ b/.changeset/cli-teams-to-projects-copy.md@@ -0,0 +1,5 @@+---+'@e2b/cli': patch+---++Rename user-visible "team" wording to "project" in CLI terminal output: auth login confirmation and hints, `auth info` status line and fallback, `auth configure` picker and confirmation, error messages, and the template publish/unpublish visibility prompt. Copy-only change — no flag, env var, config key, or API behavior changes.diff --git a/packages/cli/src/commands/auth/configure.ts b/packages/cli/src/commands/auth/configure.tsindex ed675d62a..4ff5f6145 100644--- a/packages/cli/src/commands/auth/configure.ts+++ b/packages/cli/src/commands/auth/configure.ts@@ -40,14 +40,14 @@ export const configureCommand = new commander.Command('configure')signal: config.getSignal(),})- handleE2BRequestError(res, 'Error getting teams')+ handleE2BRequestError(res, 'Error getting projects')const teams = res.data as Teamsconst team = (await inquirer.default.prompt([{name: 'team',- message: chalk.default.underline('Select team'),+ message: chalk.default.underline('Select project'),type: 'list',pageSize: 50,choices: teams.map((team) => ({@@ -64,5 +64,5 @@ export const configureCommand = new commander.Command('configure')userConfig.last_refresh = getConfigRefreshTimestamp()writeUserConfig(USER_CONFIG_PATH, userConfig)- console.log(`Team ${asBold(team.name)} (${team.teamID}) selected.\n`)+ console.log(`Project ${asBold(team.name)} (${team.teamID}) selected.\n`)})diff --git a/packages/cli/src/commands/auth/login.ts b/packages/cli/src/commands/auth/login.tsindex eb71cece5..c85a9e146 100644--- a/packages/cli/src/commands/auth/login.ts+++ b/packages/cli/src/commands/auth/login.ts@@ -31,7 +31,7 @@ export const loginCommand = new commander.Command('login')console.log(`\nAlready logged in. ${asFormattedConfig(userConfig- )}.\n\nIf you want to log in as a different user, log out first by running 'e2b auth logout'.\nTo change the team, run 'e2b auth configure'.\n`+ )}.\n\nIf you want to log in as a different user, log out first by running 'e2b auth logout'.\nTo change the project, run 'e2b auth configure'.\n`)return} else if (!userConfig) {@@ -53,13 +53,13 @@ export const loginCommand = new commander.Command('login')signal,})- handleE2BRequestError(res, 'Error getting teams')+ handleE2BRequestError(res, 'Error getting projects')const teams = res.data as Teamsconst defaultTeam = teams.find((team) => team.isDefault)if (!defaultTeam) {console.error(- asFormattedError('No default team found, please contact support')+ asFormattedError('No default project found, please contact support'))process.exit(1)}@@ -90,7 +90,7 @@ export const loginCommand = new commander.Command('login')console.log(`Logged in as ${asBold(userConfig.identity.email- )} with selected team ${asBold(userConfig.teamName)}`+ )} with selected project ${asBold(userConfig.teamName)}`)process.exit(0)})diff --git a/packages/cli/src/commands/template/publish.ts b/packages/cli/src/commands/template/publish.tsindex cfcbdc8e7..e99c207be 100644--- a/packages/cli/src/commands/template/publish.ts+++ b/packages/cli/src/commands/template/publish.ts@@ -157,8 +157,8 @@ async function templateAction(templates.length === 1 ? 'template' : 'templates'} ${publish- ? 'public to everyone outside your team'- : 'private to your team'+ ? 'public to everyone outside your project'+ : 'private to your project'}`)diff --git a/packages/cli/src/utils/format.ts b/packages/cli/src/utils/format.tsindex 8476903b8..0a8377fef 100644--- a/packages/cli/src/utils/format.ts+++ b/packages/cli/src/utils/format.ts@@ -12,9 +12,9 @@ export function asFormattedConfig(config: UserConfig) {const email = asBold(config.identity.email)const team = config.teamName? asBold(config.teamName)- : asRed('Log out and log in to get team name')+ : asRed('Log out and log in to get project name')const teamId = asBold(config.teamId)- return `You are logged in as ${email},\nSelected team: ${team} (${teamId})`+ return `You are logged in as ${email},\nSelected project: ${team} (${teamId})`}export function asFormattedTeam(@@ -24,7 +24,7 @@ export function asFormattedTeam(const name = asBold(team.name)const id = asBold(team.teamID)const isSelected =- team.teamID == selected ? asPrimary(' (currently selected team)') : ''+ team.teamID == selected ? asPrimary(' (currently selected project)') : ''return `${name} (${id})${isSelected}`}