Skip to content

Satori CI CLI Cheatsheet

Install, Update and Configure

CommandDescription
pip3 install satori-ciInstall the latest version
satori updateUpdate to the latest version
satori config token "USERTOKEN"Configure your user token as your default profile
satori config token "TEAMTOKEN" --profile TEAMConfigure your team token on your team profile
satori whoamiDisplay current user information
satori widthShow console width configuration for current profile

Run in the cloud

CommandDescription
satori run ./Upload the current dir and run the playbook .satori.yml
satori run playbook.ymlUpload the playbook and run it
satori run ./ --playbook="satori://..."Upload the current dir and run the specified playbook

Run locally

CommandDescription
satori local ./Execute the playbook .satori.yml locally
satori local playbook.ymlExecute the playbook locally
satori local ./ --playbook="satori://..."Execute the specified playbook locally

Run using these parameters

ParameterDescription
--syncShow the result
--reportShow the report
--outputShow the output
--testLimit the output to a certain test
--filesDownload the files created if the setting files was set to True
--runExecute a specific test from the playbook
--visibilitySet the visibility dynamically
--nameChange the name of the playbook dynamically
--timeoutChange the timeout dynamically
--cpuChange the cpu dynamically (run only)
--memoryChange the memory dynamically (run only)
--storageChange the storage dynamically (run only)

Run parametrized playbooks

CommandDescription
--data VAR="This is the value of VAR"Provide values for the undefined playbook variables

Playbooks

CommandDescription
satori playbooksList your private playbooks
satori playbooks --publicList the public playbooks
satori playbook IDShow a certain playbook
satori playbook ID visibility {public, private, unlisted}Toggles the playbook's visibility
satori playbook ID deleteDelete the playbook

Dashboards

CommandDescription
satoriShow your general dashboard
satori team TEAMShow your TEAM dashboard

Reports

CommandDescription
satori reportsList reports
satori report IDShow the report ID
satori report ID --jsonShow the JSON of the report ID
satori report ID outputShow the output of the report ID
satori report ID output --jsonShow the JSON's output of the report ID
satori report ID filesDownload the files created (if Files was set to True in settings)
satori report ID visibility {public, private, unlisted}Toggles the report's visibility
satori report ID stopStop the current report execution
satori report ID deleteDelete the report ID

Repos

CommandDescription
satori reposList the repositories connected to CI or tested
satori repo GithubUser/RepoShows the repository Visibility, CI, Playbook, Status, Result and its team.
satori repo GithubUser/Repo runRun the repository's playbook on the latest commit
satori repo GithubUser/Repo run --playbook="satori://..."Run another playbook on the latest commit
satori repo GithubUser/Repo commitsShow the list of commits and the reports associated
satori repo GithubUser/Repo visibility {public, private, unlisted}Toggles the repo's visibility
satori repo GithubUser/Repo paramsList parameters/secrets for the repository
satori repo GithubUser/Repo params add 'NAME=VALUE'Add a parameter/secret to the repository
satori repo GithubUser/Repo params del NAMEDelete a parameter/secret from the repository

Monitors

CommandDescription
satori monitorsList monitors
satori monitor IDList the reports associated to a monitor ID
satori monitor ID stopStop a monitor ID
satori monitor ID startStart a monitor ID
satori monitor ID cleanDelete the reports associated to the monitor ID
satori monitor ID deleteDelete the monitor ID
satori monitor ID visibility {public, private, unlisted}Toggles the monitor's visibility

Scans

CommandDescription
satori scansList scans
satori scan GithubUser/Repo [-c N]Scan the Github repository with the repository's playbook a coverage of 1 (default) to 100
satori scan GithubUser/Repo [--playbook="satori://..."]Scan the Github repository with a different playbook
satori scan GithubUser/Repo check-commitsGet the repository commits before scanning
satori scan GithubUser/Repo check-forksGet the repository forks before scanning
satori scan IDShow scan information
satori scan ID statusShow the status of a scan
satori scan ID reportsList the reports associated to a scan
satori scan ID stopStop the scan
satori scan ID startStart a previously stopped scan on the repo
satori scan ID cleanDelete the reports associated to the repo
satori scan ID deleteDelete the scan
satori scan ID visibility {public, private, unlisted}Toggles the scan's visibility

Teams

CommandDescription
satori teamsList your teams
satori team TEAMShow the TEAM dashboard
satori team TEAM createCreate a new team named TEAM
satori team TEAM membersList your TEAM members
satori team TEAM monitorsList your TEAM monitors
satori team TEAM reposList your TEAM repositories
satori team TEAM reportsList your TEAM reports
satori team TEAM settingsList your TEAM settings
satori team TEAM get_config NAMEShow your TEAM's config setting
satori team TEAM set_config NAME VALUESet your TEAM CONFIG setting
satori team TEAM add --github="GithubUser"Owners and admins can add users via Github to the TEAM
--role="READ"Use the role READ (default) or ADMIN
satori team TEAM add --email="usr@example.com"Owners and admins can add users via Email to the TEAM
--role="READ"Use the role READ (default) or ADMIN
satori team TEAM add --monitor="MONITORID"Add the monitor ID to your TEAM
satori team TEAM add --repo="GithubUser/repo"Add the repo to your TEAM
satori team TEAM del --github="GithubUser"Delete the GithubUser from your TEAM
satori team TEAM del --email="usr@example.com"Delete the email from the TEAM
satori team TEAM del --repo="GithubUser/repo"Delete the repo from the TEAM
satori team TEAM del --monitor="MONITORID"Delete the monitor from the TEAM
satori team TEAM deleteDelete the TEAM

Shards

CommandDescription
satori shards --shard X/Y --input INPUTDivide massive datasets into smaller chunks for distributed processing
--shard X/YShard index X out of Y total shards (required)
--input INPUTInput file path or direct IP/CIDR/range/domain/URL (required)
--exclude PATH or ENTRYExclusion file path or direct IP/CIDR/range/domain/URL to exclude
--seed NSeed for deterministic pseudorandom distribution (default: 1)
--results PATHOutput file path (writes to stdout if omitted)

Notifications

CommandDescription
satori settingsInteractive menu to configure notification settings (Slack, Discord, Email, Telegram, Datadog)
satori settings KEYView current value of a notification setting
satori settings KEY VALUESet a notification setting directly
satori settings --team TEAMConfigure notifications for a specific team
satori team TEAM settingsAlias for configuring team notifications interactively