- Updated on 10 Jul 2020
- 1 minute to read
The following SDK methods are supported by the Bash SDK:
Access the current team's secret store.
sdk secret get <KEY>
-H, --hidden If provided, suppresses the user notification that the secret has been retrieved
<KEY> The key of the desired secret in the secret store
sdk secret set --key <KEY> --value <VALUE>
-k, --key <KEY> The key to set the secret under in the secret store -v, --value <VALUE> The value to set in the secret store
sdk secret set --key='secret1' --value='shh'secret=$(sdk secret get secret1) echo $secret
Access the current team's configuration store.
sdk config get <KEY>
sdk config get --all
<KEY> The key of the desired value in the configuration store
sdk config set --key <KEY> --value <VALUE>
-k, --key <KEY> The key to set the value under in the configuration store -v, --value <VALUE> The value to set in the configuration store
sdk config delete <KEY>
<KEY> The key of the desired value to be deleted from the configuration store
cto-ai config set --key='myop_target_domain' --value='cto.ai' domain=$(cto-ai config get myop_target_domain) echo $domain wasDeleted=$(sdk config delete myop_target_domain) if $wasDeleted; then echo "myop_target_domain was successfully deleted"; fi
cto.ai myop_target_domain was successfully deleted
Track a workflow event.
sdk track [OPTIONS] <EVENT> [PARAM]...
-e, --error <ERROR> An error string to report
<EVENT> The event name to track <PARAM>... Parameters for the tracking event. Takes key:value metadata entries or tags as strings without colons
sdk track deploy production image:jifejfdkdkdi3930
Sends an analytics event to The Ops Platform with event
production, and metadata
Retrieve events that were sent with
sdk events STARTTIME [ENDTIME]
Timestamps can be given in ISO format.
sdk events -s "2020-05-12T20:47:45Z" -e "2020-06-12T20:47:45Z"
Retrieves a list of events from The Ops Platform that were stored for the active team that occurred between the two given times.