create-twenty-app 2.6.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,19 +49,19 @@
49
49
 
50
50
  ## Best practice
51
51
 
52
- It's highly recommended to create new app entities using `yarn twenty add`. These are the options:
52
+ It's highly recommended to create new app entities using `yarn twenty dev:add`. These are the options:
53
53
 
54
- | Entity type | Command | Generated file |
55
- | -------------------- | ------------------------------------ | ------------------------------------- |
56
- | Object | `yarn twenty add object` | `src/objects/<name>.ts` |
57
- | Field | `yarn twenty add field` | `src/fields/<name>.ts` |
58
- | Logic function | `yarn twenty add logicFunction` | `src/logic-functions/<name>.ts` |
59
- | Front component | `yarn twenty add frontComponent` | `src/front-components/<name>.tsx` |
60
- | Role | `yarn twenty add role` | `src/roles/<name>.ts` |
61
- | Skill | `yarn twenty add skill` | `src/skills/<name>.ts` |
62
- | Agent | `yarn twenty add agent` | `src/agents/<name>.ts` |
63
- | View | `yarn twenty add view` | `src/views/<name>.ts` |
64
- | Navigation menu item | `yarn twenty add navigationMenuItem` | `src/navigation-menu-items/<name>.ts` |
65
- | Page layout | `yarn twenty add pageLayout` | `src/page-layouts/<name>.ts` |
54
+ | Entity type | Command | Generated file |
55
+ | -------------------- | ---------------------------------------- | ------------------------------------- |
56
+ | Object | `yarn twenty dev:add object` | `src/objects/<name>.ts` |
57
+ | Field | `yarn twenty dev:add field` | `src/fields/<name>.ts` |
58
+ | Logic function | `yarn twenty dev:add logicFunction` | `src/logic-functions/<name>.ts` |
59
+ | Front component | `yarn twenty dev:add frontComponent` | `src/front-components/<name>.tsx` |
60
+ | Role | `yarn twenty dev:add role` | `src/roles/<name>.ts` |
61
+ | Skill | `yarn twenty dev:add skill` | `src/skills/<name>.ts` |
62
+ | Agent | `yarn twenty dev:add agent` | `src/agents/<name>.ts` |
63
+ | View | `yarn twenty dev:add view` | `src/views/<name>.ts` |
64
+ | Navigation menu item | `yarn twenty dev:add navigationMenuItem` | `src/navigation-menu-items/<name>.ts` |
65
+ | Page layout | `yarn twenty dev:add pageLayout` | `src/page-layouts/<name>.ts` |
66
66
 
67
67
  This helps automatically generate required IDs etc.
@@ -11,8 +11,8 @@ Run `yarn twenty help` to list all available commands.
11
11
  ## Useful Commands
12
12
 
13
13
  - `yarn twenty dev` - Start the development server and sync your app
14
- - `yarn twenty server status` - Check the local Twenty server status
15
- - `yarn twenty server start` - Start the local Twenty server
14
+ - `yarn twenty docker:status` - Check the local Twenty server status
15
+ - `yarn twenty docker:start` - Start the local Twenty server
16
16
  - `yarn test` - Run integration tests
17
17
 
18
18
  ## Learn More
@@ -14,7 +14,7 @@ function validateEnv(): { apiUrl: string; apiKey: string } {
14
14
  if (!apiUrl || !apiKey) {
15
15
  throw new Error(
16
16
  'TWENTY_API_URL and TWENTY_API_KEY must be set.\n' +
17
- 'Start a local server: yarn twenty server start\n' +
17
+ 'Start a local server: yarn twenty docker:start\n' +
18
18
  'Or set them in vitest env config.',
19
19
  );
20
20
  }
@@ -4,7 +4,7 @@ type CreateAppOptions = {
4
4
  name?: string;
5
5
  displayName?: string;
6
6
  description?: string;
7
- workspaceUrl?: string;
7
+ serverUrl?: string;
8
8
  authenticationMethod?: AuthenticationMethod;
9
9
  };
10
10
  export declare class CreateAppCommand {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-twenty-app",
3
- "version": "2.6.0",
3
+ "version": "2.8.0",
4
4
  "description": "Command-line interface to create Twenty application",
5
5
  "main": "dist/cli.cjs",
6
6
  "bin": "dist/cli.cjs",
@@ -35,7 +35,7 @@
35
35
  "lodash.camelcase": "^4.3.0",
36
36
  "lodash.kebabcase": "^4.1.1",
37
37
  "lodash.startcase": "^4.4.0",
38
- "twenty-sdk": "2.6.0",
38
+ "twenty-sdk": "2.8.0",
39
39
  "uuid": "^13.0.0"
40
40
  },
41
41
  "devDependencies": {
@@ -11,8 +11,8 @@ Run `yarn twenty help` to list all available commands.
11
11
  ## Useful Commands
12
12
 
13
13
  - `yarn twenty dev` - Start the development server and sync your app
14
- - `yarn twenty server status` - Check the local Twenty server status
15
- - `yarn twenty server start` - Start the local Twenty server
14
+ - `yarn twenty docker:status` - Check the local Twenty server status
15
+ - `yarn twenty docker:start` - Start the local Twenty server
16
16
  - `yarn test` - Run integration tests
17
17
 
18
18
  ## Learn More