4 |

5 |
6 | Welcome to the future of Salesforce development and automation! Meet DXB., the revolutionary Salesforce CLI plugin that simplifies your workflow. This powerful toolkit bridges the gap between development and deployment, turning tedious tasks into smooth processes.
7 |
8 |
9 | DXB. is your new partner in the Salesforce ecosystem. With its carefully designed commands, it helps developers easily navigate complex Salesforce projects, making build automation a breeze.
10 |
11 |
12 | Whether you're deploying configurations, managing metadata, or handling CI/CD pipelines, DXB. boosts your productivity. Its user-friendly features cater to both new developers and experienced pros.
13 |
14 |
15 | Step into the next level of Salesforce development with DXB. – where innovation meets efficiency, taking your projects to new heights. Welcome aboard, and get ready to transform Salesforce automation!
16 |
17 |
18 |
19 | # Pre-requisite
20 |
21 | 1. Install [node.js. + npm](https://nodejs.org/en/).
22 | Once installed, checkout proxy setting if you are behind corporate proxy.
23 |
24 | 2. Install [SDFX CLI](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm)
25 |
26 | # Install DXB-CLI
27 |
28 | To get started, you can install it by using salesforce command, open your terminal and type:
29 |
30 | ```shell
31 | sf plugins install dxb@latest
32 | ```
33 |
34 | # Commands
35 |
36 | - sf dxb apex scan
37 | - sf dxb apex trigger
38 | - sf dxb apex coverage check
39 | - sf dxb apex coverage cleanup
40 | - sf dxb apex scan query
41 | - sf dxb apex trigger create
42 | - sf dxb api align
43 | - sf dxb community publish
44 | - sf dxb data backup
45 | - sf dxb data bulk
46 | - sf dxb data export
47 | - sf dxb data file
48 | - sf dxb data import
49 | - sf dxb data masking
50 | - sf dxb data query
51 | - sf dxb data restore
52 | - sf dxb data transform
53 | - sf dxb data bulk query
54 | - sf dxb data file export
55 | - sf dxb data query explain
56 | - sf dxb graphql convert
57 | - sf dxb install
58 | - sf dxb junit check
59 | - sf dxb lwc test
60 | - sf dxb lwc test run
61 | - sf dxb mdapi convert
62 | - sf dxb object create
63 | - sf dxb object fields
64 | - sf dxb object fieldset
65 | - sf dxb object prefix
66 | - sf dxb object relationships
67 | - sf dxb object vr
68 | - sf dxb object fields list
69 | - sf dxb object relationships list
70 | - sf dxb object vr create
71 | - sf dxb org create
72 | - sf dxb org data
73 | - sf dxb org setdefault
74 | - sf dxb package dependencies install
75 | - sf dxb permissionset clean
76 | - sf dxb permissionset create
77 | - sf dxb profile build
78 | - sf dxb profile convert
79 | - sf dxb profile passwordpolicies
80 | - sf dxb profile passwordpolicies fix
81 | - sf dxb schema doc generate
82 | - sf dxb source delta
83 | - sf dxb source fetchtest
84 | - sf dxb source scanner
85 | - sf dxb static create
86 | - sf dxb user access
87 | - sf dxb user access why
88 |
89 | # Documentation
90 |
91 | Please see our [Wiki](https://github.com/davidbrowaeys/DXB/wiki) to get started.
92 |
93 | # License
94 |
95 | MIT © David Browaeys
96 |
--------------------------------------------------------------------------------
/src/commands/dxb/object/prefix.ts:
--------------------------------------------------------------------------------
1 | import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
2 | import { Messages } from '@salesforce/core';
3 | import { Connection, DescribeSObjectResult } from 'jsforce';
4 | import { DescribeGlobalSObjectResult } from 'jsforce/lib/api/soap/schema';
5 |
6 | Messages.importMessagesDirectory(__dirname);
7 | const messages = Messages.loadMessages('dxb', 'object.prefix');
8 |
9 | export type ObjectPrefixResult = {
10 | result: string;
11 | };
12 |
13 | export default class ObjectPrefix extends SfCommand