Skip to content

Commit 7ad222b

Browse files
committed
updating doc
1 parent a9409b9 commit 7ad222b

File tree

7 files changed

+14
-12
lines changed

7 files changed

+14
-12
lines changed

docs/cli/sandbox.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,6 @@ To check the clone status, run:
799799
- The cloned sandbox is fully isolated with dedicated compute, storage, and database resources
800800
- If `--target-profile` is not specified, the clone will use the same resource profile as the source sandbox
801801
- The TTL must be 0 or negative (infinite), or 24 hours or greater. Values between 1-23 are rejected
802-
- Notification emails will receive updates about the clone progress
803802
- The clone will be created as a new sandbox instance in the same realm
804803

805804
### b2c sandbox clone get
@@ -873,12 +872,12 @@ To run `b2c realm` commands, your user or API client must have **realm‑level a
873872

874873
### b2c realm list
875874

876-
List realms eligible for sandbox management, optionally including a simple usage summary.
875+
List realms eligible for sandbox management.
877876

878877
#### Usage
879878

880879
```bash
881-
b2c realm list [REALM] [--show-usage]
880+
b2c realm list [REALM]
882881
```
883882

884883
#### Arguments

packages/b2c-cli/src/commands/ods/clone/create.ts renamed to packages/b2c-cli/src/commands/sandbox/clone/create.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import {t} from '../../../i18n/index.js';
1212
* Command to create a sandbox clone.
1313
*/
1414
export default class CloneCreate extends OdsCommand<typeof CloneCreate> {
15+
static aliases = ['ods:clone:create'];
16+
1517
static args = {
1618
sandboxId: Args.string({
1719
description: 'Sandbox ID (UUID or friendly format like realm-instance) to clone from',

packages/b2c-cli/src/commands/ods/clone/get.ts renamed to packages/b2c-cli/src/commands/sandbox/clone/get.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ type SandboxCloneGetModel = OdsComponents['schemas']['SandboxCloneGetModel'];
1515
* Command to get details of a specific sandbox clone.
1616
*/
1717
export default class CloneGet extends OdsCommand<typeof CloneGet> {
18+
static aliases = ['ods:clone:get'];
19+
1820
static args = {
1921
sandboxId: Args.string({
2022
description: 'Sandbox ID (UUID or friendly format like realm-instance)',

packages/b2c-cli/src/commands/ods/clone/list.ts renamed to packages/b2c-cli/src/commands/sandbox/clone/list.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ const DEFAULT_COLUMNS = ['cloneId', 'status', 'sourceInstance', 'targetInstance'
6363
* Command to list sandbox clones for a specific sandbox.
6464
*/
6565
export default class CloneList extends OdsCommand<typeof CloneList> {
66+
static aliases = ['ods:clone:list'];
67+
6668
static args = {
6769
sandboxId: Args.string({
6870
description: 'Sandbox ID (UUID or friendly format like realm-instance)',
@@ -145,8 +147,6 @@ export default class CloneList extends OdsCommand<typeof CloneList> {
145147
const tableRenderer = new TableRenderer(COLUMNS);
146148
tableRenderer.render(clones, columns);
147149

148-
this.log(t('commands.clone.list.total', '\nTotal: {{total}} clone(s)', {total: clones.length}));
149-
150150
return {data: clones};
151151
}
152152

packages/b2c-cli/test/commands/ods/clone/create.test.ts renamed to packages/b2c-cli/test/commands/sandbox/clone/create.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import {expect} from 'chai';
88
import sinon from 'sinon';
99
import {isolateConfig, restoreConfig} from '@salesforce/b2c-tooling-sdk/test-utils';
10-
import CloneCreate from '../../../../src/commands/ods/clone/create.js';
10+
import CloneCreate from '../../../../src/commands/sandbox/clone/create.js';
1111
import {runSilent} from '../../../helpers/test-setup.js';
1212

1313
function stubCommandConfigAndLogger(command: any, sandboxApiHost = 'admin.dx.test.com'): void {
@@ -64,7 +64,7 @@ function makeCommandThrowOnError(command: any): void {
6464
};
6565
}
6666

67-
describe('ods clone create', () => {
67+
describe('sandbox clone create', () => {
6868
beforeEach(() => {
6969
isolateConfig();
7070
});

packages/b2c-cli/test/commands/ods/clone/get.test.ts renamed to packages/b2c-cli/test/commands/sandbox/clone/get.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {expect} from 'chai';
88
import sinon from 'sinon';
99
import {ux} from '@oclif/core';
1010
import {isolateConfig, restoreConfig} from '@salesforce/b2c-tooling-sdk/test-utils';
11-
import CloneGet from '../../../../src/commands/ods/clone/get.js';
11+
import CloneGet from '../../../../src/commands/sandbox/clone/get.js';
1212
import {runSilent} from '../../../helpers/test-setup.js';
1313

1414
function stubCommandConfigAndLogger(command: any, sandboxApiHost = 'admin.dx.test.com'): void {
@@ -50,7 +50,7 @@ function makeCommandThrowOnError(command: any): void {
5050
};
5151
}
5252

53-
describe('ods clone get', () => {
53+
describe('sandbox clone get', () => {
5454
beforeEach(() => {
5555
isolateConfig();
5656
});

packages/b2c-cli/test/commands/ods/clone/list.test.ts renamed to packages/b2c-cli/test/commands/sandbox/clone/list.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {expect} from 'chai';
88
import sinon from 'sinon';
99
import {ux} from '@oclif/core';
1010
import {isolateConfig, restoreConfig} from '@salesforce/b2c-tooling-sdk/test-utils';
11-
import CloneList from '../../../../src/commands/ods/clone/list.js';
11+
import CloneList from '../../../../src/commands/sandbox/clone/list.js';
1212
import {runSilent} from '../../../helpers/test-setup.js';
1313

1414
function stubCommandConfigAndLogger(command: any, sandboxApiHost = 'admin.dx.test.com'): void {
@@ -50,7 +50,7 @@ function makeCommandThrowOnError(command: any): void {
5050
};
5151
}
5252

53-
describe('ods clone list', () => {
53+
describe('sandbox clone list', () => {
5454
beforeEach(() => {
5555
isolateConfig();
5656
});
@@ -166,7 +166,6 @@ describe('ods clone list', () => {
166166

167167
const combinedLogs = logs.join('\n');
168168
expect(combinedLogs).to.include('aaaa-001-1642780893121');
169-
expect(combinedLogs).to.include('Total: 1 clone(s)');
170169
});
171170

172171
it('should handle empty clone list', async () => {

0 commit comments

Comments
 (0)