Skip to content

The open alternative to Salesforce, designed for AI.

chore: prepare twenty CLI package placeholder (#26473)

Weikod28a5f604172
diff --git a/package.json b/package.json
index 7bd4ca5d350..51ffbed9257 100644
--- a/package.json
+++ b/package.json
@@ -23,7 +23,7 @@
"yarn": ">=4.0.2"
},
"license": "AGPL-3.0",
- "name": "twenty",
+ "name": "twenty-monorepo",
"packageManager": "[email protected]",
"resolutions": {
"@module-federation/dts-plugin/undici": "^7.29.0",
diff --git a/packages/twenty-cli/README.md b/packages/twenty-cli/README.md
index 0b9ee26b91f..b87067ff1cd 100644
--- a/packages/twenty-cli/README.md
+++ b/packages/twenty-cli/README.md
@@ -1,8 +1,6 @@
-# Deprecated: twenty-cli
+# Twenty CLI
-This package is deprecated. Please install and use [twenty-sdk](https://www.npmjs.com/package/twenty-sdk) instead:
+The new command-line interface for [Twenty](https://twenty.com) is coming soon.
-```bash
-npm uninstall twenty-cli
-npm install -g twenty-sdk
-```
+This package does not provide an executable yet. For the currently available CLI,
+use [twenty-sdk](https://www.npmjs.com/package/twenty-sdk).
diff --git a/packages/twenty-cli/deprecate.js b/packages/twenty-cli/deprecate.js
deleted file mode 100755
index 78194dbed6d..00000000000
--- a/packages/twenty-cli/deprecate.js
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/usr/bin/env node
-const message = `\nTwenty CLI (twenty-cli) is deprecated.\n\nPlease install and use the new package instead:\n npm install -g twenty-sdk\n\nThe command name remains the same: \"twenty\".\nMore info: https://www.npmjs.com/package/twenty-sdk\n`;
-
-console.error(message);
-process.exitCode = 1;
diff --git a/packages/twenty-cli/package.json b/packages/twenty-cli/package.json
index cfde72a247c..834bc6330e4 100644
--- a/packages/twenty-cli/package.json
+++ b/packages/twenty-cli/package.json
@@ -1,10 +1,15 @@
{
- "name": "twenty-cli",
- "version": "0.3.1",
- "description": "[DEPRECATED] Use twenty-sdk instead: https://www.npmjs.com/package/twenty-sdk",
- "scripts": {
- "build": "echo 'use npx nx build'",
- "start": "echo 'deprecated'"
+ "name": "twenty",
+ "version": "0.3.0",
+ "description": "The new command-line interface for Twenty is coming soon.",
+ "homepage": "https://twenty.com",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/twentyhq/twenty.git",
+ "directory": "packages/twenty-cli"
+ },
+ "bugs": {
+ "url": "https://github.com/twentyhq/twenty/issues"
},
"license": "AGPL-3.0"
}
diff --git a/packages/twenty-docker/twenty/Dockerfile b/packages/twenty-docker/twenty/Dockerfile
index 1cda4091a9b..d185377ae26 100644
--- a/packages/twenty-docker/twenty/Dockerfile
+++ b/packages/twenty-docker/twenty/Dockerfile
@@ -17,7 +17,7 @@ COPY ./packages/twenty-front-component-renderer/package.json /app/packages/twent
COPY ./packages/twenty-sdk/package.json /app/packages/twenty-sdk/
COPY ./packages/twenty-client-sdk/package.json /app/packages/twenty-client-sdk/
-RUN yarn workspaces focus twenty twenty-front twenty-front-component-renderer twenty-ui twenty-shared twenty-sdk twenty-client-sdk && yarn cache clean && npx nx reset
+RUN yarn workspaces focus twenty-monorepo twenty-front twenty-front-component-renderer twenty-ui twenty-shared twenty-sdk twenty-client-sdk && yarn cache clean && npx nx reset
FROM node:24.19.0-alpine3.23@sha256:244cc2b53f46f9e876304391d17682b0ddae9ac33491f4857e25e35a36ba7995 AS server-deps
@@ -35,7 +35,7 @@ COPY ./packages/twenty-shared/package.json /app/packages/twenty-shared/
COPY ./packages/twenty-client-sdk/package.json /app/packages/twenty-client-sdk/
COPY ./packages/twenty-oxlint-rules/package.json /app/packages/twenty-oxlint-rules/
-RUN yarn workspaces focus twenty twenty-server twenty-emails twenty-shared twenty-client-sdk && yarn cache clean && npx nx reset
+RUN yarn workspaces focus twenty-monorepo twenty-server twenty-emails twenty-shared twenty-client-sdk && yarn cache clean && npx nx reset
FROM server-deps AS twenty-server-build
diff --git a/yarn.config.cjs b/yarn.config.cjs
index a1b844a2676..5910132ead2 100644
--- a/yarn.config.cjs
+++ b/yarn.config.cjs
@@ -3,7 +3,7 @@
const { defineConfig, Yarn } = require('@yarnpkg/types');
const semver = require('semver');
-const MONOREPO_ROOT_WORKSPACE = 'twenty';
+const MONOREPO_ROOT_WORKSPACE = 'twenty-monorepo';
module.exports = defineConfig({
async constraints({ Yarn }) {
diff --git a/yarn.lock b/yarn.lock
index 63f73b186ee..134d232dc34 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -49940,12 +49940,6 @@ __metadata:
languageName: unknown
linkType: soft
-"twenty-cli@workspace:packages/twenty-cli":
- version: 0.0.0-use.local
- resolution: "twenty-cli@workspace:packages/twenty-cli"
- languageName: unknown
- linkType: soft
-
"twenty-client-sdk@workspace:*, twenty-client-sdk@workspace:packages/twenty-client-sdk":
version: 0.0.0-use.local
resolution: "twenty-client-sdk@workspace:packages/twenty-client-sdk"
@@ -50235,6 +50229,28 @@ __metadata:
languageName: unknown
linkType: soft
+"twenty-monorepo@workspace:.":
+ version: 0.0.0-use.local
+ resolution: "twenty-monorepo@workspace:."
+ dependencies:
+ "@nx/jest": "npm:22.7.8"
+ "@nx/js": "npm:22.7.8"
+ "@nx/react": "npm:22.7.8"
+ "@nx/storybook": "npm:22.7.8"
+ "@nx/vite": "npm:22.7.8"
+ "@nx/web": "npm:22.7.8"
+ "@types/react": "npm:^19.2.0"
+ "@types/react-dom": "npm:^19.2.0"
+ "@yarnpkg/types": "npm:^4.0.0"
+ concurrently: "npm:^8.2.2"
+ http-server: "npm:^14.1.1"
+ nx: "npm:22.7.8"
+ oxfmt: "npm:0.50.0"
+ tsx: "npm:^4.17.0"
+ verdaccio: "npm:^6.3.1"
+ languageName: unknown
+ linkType: soft
+
"twenty-oxlint-rules@workspace:*, twenty-oxlint-rules@workspace:packages/twenty-oxlint-rules":
version: 0.0.0-use.local
resolution: "twenty-oxlint-rules@workspace:packages/twenty-oxlint-rules"
@@ -50711,25 +50727,9 @@ __metadata:
languageName: unknown
linkType: soft
-"twenty@workspace:.":
+"twenty@workspace:packages/twenty-cli":
version: 0.0.0-use.local
- resolution: "twenty@workspace:."
- dependencies:
- "@nx/jest": "npm:22.7.8"
- "@nx/js": "npm:22.7.8"
- "@nx/react": "npm:22.7.8"
- "@nx/storybook": "npm:22.7.8"
- "@nx/vite": "npm:22.7.8"
- "@nx/web": "npm:22.7.8"
- "@types/react": "npm:^19.2.0"
- "@types/react-dom": "npm:^19.2.0"
- "@yarnpkg/types": "npm:^4.0.0"
- concurrently: "npm:^8.2.2"
- http-server: "npm:^14.1.1"
- nx: "npm:22.7.8"
- oxfmt: "npm:0.50.0"
- tsx: "npm:^4.17.0"
- verdaccio: "npm:^6.3.1"
+ resolution: "twenty@workspace:packages/twenty-cli"
languageName: unknown
linkType: soft