Skip to content

Commit c432b43

Browse files
Merge branch 'master' into lendritibrahimi/feat/NEX-981-node-diff-content-cli-command
# Conflicts: # DOCUMENTATION.md # src/commands/configuration-management/module.ts
2 parents 025f4f7 + b5bc398 commit c432b43

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

DOCUMENTATION.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,7 @@ on your behalf.
113113

114114
With Client Credentials, you need to provide the credentials (Client ID, Client Secret) configured for your OAuth client.
115115
You can create and configure an OAuth clients in the `Admin & Settings` section of your Celonis account, under `Applications`.
116-
The OAuth client needs to have scopes configured based on the area of commands they're using, e.g.:
117-
- For Studio commands: studio,
118-
- Data Pipeline/Data Pool commands: integration.data-pools,
116+
The client needs to have all four scopes configured: "studio", "integration.data-pools", "action-engine.projects" and "package-manager".
119117
After creating an OAuth client, you should assign it the permissions necessary for the respective commands. More
120118
information on registering OAuth clients can be found [here](https://docs.celonis.com/en/registering-oauth-client.html).
121119

@@ -643,11 +641,11 @@ This mapping should be saved and then used during import.
643641
Since the format of the variables.json file on import is the same JSON structure as the list variables result, you can either map the values to the variables.json file for each variable, or replace the variables.json file with the result of the listing & mapping altogether.
644642
If the mapping of variables is skipped, you should delete the variables.json file before importing.
645643

646-
#### Finding staging nodes
644+
#### Finding nodes
647645

648-
The **config nodes find** command allows you to retrieve information about a specific node within a package in the staging environment.
646+
The **config nodes find** command allows you to retrieve information about a specific node within a package.
649647

650-
##### Find a node
648+
##### Find a staging node
651649
To find a specific node in a package, use the following command:
652650
```
653651
content-cli config nodes find --packageKey <packageKey> --nodeKey <nodeKey>
@@ -668,7 +666,7 @@ info: Change Date: 2025-10-22T15:45:00.000Z
668666
info: Flavor: STUDIO
669667
```
670668

671-
##### Find a node with configuration
669+
##### Find a staging node with configuration
672670
By default, the node configuration is not included in the response. To include the node's configuration, use the `--withConfiguration` flag:
673671
```
674672
content-cli config nodes find --packageKey <packageKey> --nodeKey <nodeKey> --withConfiguration
@@ -679,7 +677,7 @@ When configuration is included, it will be displayed as a JSON string in the out
679677
info: Configuration: {"key":"value","nested":{"field":"data"}}
680678
```
681679

682-
##### Export node as JSON
680+
##### Export staging node as JSON
683681
To export the node information as a JSON file instead of displaying it in the console, use the `--json` option:
684682
```
685683
content-cli config nodes find --packageKey <packageKey> --nodeKey <nodeKey> --json
@@ -696,7 +694,6 @@ You can combine options to export a node with its configuration:
696694
```
697695
content-cli config nodes find --packageKey <packageKey> --nodeKey <nodeKey> --withConfiguration --json
698696
```
699-
700697
#### Diffing node configurations
701698

702699
The **config nodes diff** command allows you to compare two versions of a node's configuration within a package.

src/core/profile/profile.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const homedir = os.homedir();
1414
// use 5 seconds buffer to avoid rare cases when accessToken is just about to expire before the command is sent
1515
const expiryBuffer = 5000;
1616
const deviceCodeScopes = ["studio", "package-manager", "integration.data-pools", "action-engine.projects"];
17-
const clientCredentialsScopes = ["studio", "integration.data-pools", "action-engine.projects"];
17+
const clientCredentialsScopes = ["studio", "integration.data-pools", "action-engine.projects", "package-manager"];
1818

1919
export interface Config {
2020
defaultProfile: string;

0 commit comments

Comments
 (0)