-
Notifications
You must be signed in to change notification settings - Fork 19
Set
Learn how to configure your CLI settings in this guide.
This includes setting your authentication mode, your debug mode, and the filepaths for the templates your CLI uses to make your search and export processes easier.
You can use these set
commands to configure your CLI settings:
To set the current authentication method for the CLI, run this command:
sail set auth {authentication type}
You can currently set authentication to either pat
to use a personal access token (PAT), or oauth
to use OAuth2 authentication via browser authentication.
To enable debug mode, run this command:
sail set debug enable
To disable debug mode, run the same command with disable
instead.
To configure PAT authentication for a given environment, run this command:
sail set pat
Then follow the prompts to provide your PAT client ID and client secret.
To set the filepath for the search templates your CLI uses, run this command:
sail set searchTemplates "path/to/search/template/file"
or
sail set search "path/to/search/template/file"
Here are a couple examples of the file format a search template uses:
[
{
"name": "all-provisioning-events",
"description": "All provisioning events in the tenant for a given time range",
"variables": [{"name": "days", "prompt": "Days before today"}],
"searchQuery": {
"indices": ["events"],
"queryType": null,
"queryVersion": null,
"query": {
"query": "(type:provisioning AND created:[now-{{days}}d TO now])"
},
"sort": [],
"searchAfter": []
}
},
{
"name": "all-provisioning-events-90-days",
"description": "All provisioning events in the tenant for a given time range",
"variables": [],
"searchQuery": {
"indices": ["events"],
"queryType": null,
"queryVersion": null,
"query": {
"query": "(type:provisioning AND created:[now-90d TO now])"
},
"sort": [],
"searchAfter": []
}
}
]
In the first example, the template uses variables in its query. The second example is a fully predefined template without variables.
To set the filepath for the export templates your CLI uses, run this command:
sail set exportTemplates "path/to/export/template/file"
or
sail set export "path/to/export/template/file"
Here is an example of the file format an export template uses:
[
{
"name": "all-objects",
"description": "Export all available objects",
"variables": [],
"exportBody": {
"description": "Export all available objects",
"excludeTypes": [],
"includeTypes": [
"SOURCE",
"RULE",
"TRIGGER_SUBSCRIPTION",
"TRANSFORM",
"IDENTITY_PROFILE"
],
"objectOptions": {}
}
}
]
- API
-
Authentication
- Find your tenant's OAuth details
- Generate a personal access token
- Choose authorization grant flow
- Request access token with client credentials grant flow
- Request access token with authorization code grant flow
- Request access token with refresh token grant flow
- OAuth token response
- More Information
- Troubleshooting
- Clusters
- Connectors
- Getting Started
- Sanitize
- Search
- Set
- SPConfig
- Transforms
- VA
- Workflows
- Templates