The synaxis CLI
Install the command-line tool, sign in, and script every administrative operation.
synaxis covers every administrative operation of the REST API, for scripts and for administrators who prefer a
terminal. It acts as the person who signed in, with that person's roles.
Install it
Each release carries synaxis as a single-file executable for Windows, Linux and macOS (x64 and arm64), and as a
.NET tool. Check the download against the release's SHA256SUMS.txt, then put the executable on your PATH.
Sign in
synaxis login --server https://synaxis.example.com # opens the browser
synaxis login --server https://synaxis.example.com --device # prints a code to enter in any browser
synaxis status
The profile (the server and your tokens) is kept in profile.json in %APPDATA%\synaxis on Windows or
~/.config/synaxis elsewhere, or in the folder SYNAXIS_CONFIG names, readable by you alone. --server (or
SYNAXIS_SERVER) picks another server for one command.
For a script, --token uses a token for one run, read from SYNAXIS_TOKEN or the first line of standard input. A
token never goes on the command line, and neither does a secret value.
Commands
| Area | Commands |
|---|---|
| Session | login [--server URL] [--device], logout, status |
| Connections | connections list, connections test <connection>, connections sync <connection>; connections create github <name> --app-id N --private-key-ref S --webhook-secret-ref S [--api-url U] [--site-url U] [--client-id C] [--client-secret-ref S] [--polling]; connections create ado <name> --organization-url U --auth pat\|secret\|certificate\|workloadIdentity --hook-secret-ref S [--credential-ref S] [--tenant-id T] [--client-id C] [--polling]; connections delete <connection> [--yes] (store the secrets it names first with secret set) |
| Project management data | work sources <connection> (what is ingested); work sources <connection> [--include issues,pull-requests,discussions,milestones,projects,wikis,attachment-text] [--organizations O,…] [--ado-projects P,…] (changes only what you give); work sync <connection> |
| Repositories | repos list [--state in\|out\|held] [--project P] [--connection C]; repos fetch\|reindex\|summarize\|purge <repo> [--yes]; repos include\|exclude\|follow-rules <repo>... [--yes] |
| Scope rules | scope-rules show <connection>; scope-rules preview\|set <connection> -f rules.json (a JSON list of rules with the fields of Scope rules, each with effect include or exclude: [{"effect": "include", "include": ["contoso/*"], "archived": false}]) |
| Setup | setup encrypted-storage (confirms the checklist item that the volumes are on encrypted storage) |
| Azure DevOps projects | projects list <connection>; projects select\|deselect <connection> <project>... [--yes]; projects include-new <connection> on\|off; projects purge <connection> <project> [--yes] |
| Jobs | jobs list [--kind K] [--state S] [--repo R]; jobs retry\|cancel <id> |
| Schedules | schedules [list]; schedules explain <kind>; schedules set <kind> [--every 5m\|6h\|daily\|weekly\|off] [--at 02:30] [--after <kind>\|none] [--lag 15m] [--jitter 10m]; schedules set <kind> --reset (Jobs and health) |
| Secrets | secret set <name> [--from-file F] (the value from the file or standard input); secret list (names only, never values); secret delete <name> [--yes] |
| License | license show, license install <file> |
| Users | users list; users roles <user> --set admin,curator; users purge-identities <user> [--yes] |
| Service accounts | service-accounts list; service-accounts create <name> [--scopes query,events] [--grant repo:<repo>]... [--expires 90d]; service-accounts rotate\|revoke <account> |
| Audit | audit list [--action A] [--actor U] [--target T] [--from DATE] [--to DATE] [--limit N]; audit export [--from DATE] [--to DATE] [--action A] [--format jsonl\|csv] [-o FILE] |
| Catalog | catalog list [--state proposed]; catalog approve\|reject <id>; catalog merge <id> --into <id>; catalog rename <id> --name "…" [--description "…"]; catalog implementation confirm\|reject <id> |
| Curation | curation queue (candidate matches and reports); curation resolve <report> |
| Secret findings | findings [list] [--state open\|rotated\|false_positive]; findings resolve <id> rotated\|false-positive (Secret findings) |
| Team notes | memory notes [list]; memory notes approve <id> [--text "…"]; memory notes reject\|return\|retire <id> --reason "…"; memory notes merge <id> --into <id> [--text "…"]; memory policy [list]; memory policy explain <repo>; memory policy set --repo <repo>\|--connection <connection> [curator\|unanimous\|majority\|off] [--review on\|off] [--kind-off K,…] [--kind-on K,…]; memory policy clear --repo <repo> (Team notes) |
| Suggestions | suggestions [list] [--repo R] [--state S] [--limit N]; suggestions accept <id>; suggestions dismiss <id> --reason "…"; suggestions release\|everyone <id> [--off]; suggestions kind-on <repo> <kind> (Suggestions) |
| Budgets and models | usage [--from DATE]; models list; budgets [list]; budgets set <job-kind> --limit N\|none [--currency C] (keeps its prices); budgets query-exhausted allow\|refuse; models test <provider/model> (Budgets) |
| Web search | web-search [show]; web-search usage; web-search test [--query Q] (with the saved settings); web-search set [--enabled on\|off] [--engine searxng\|brave\|tavily\|google] [--base-url U] [--api-key-ref S] [--search-engine-id X] [--max-results N] [--safe-search on\|off] [--cache-minutes N] [--blocked D,…] [--preferred D,…] (changes only what you give); web-search budget [--daily N\|none] [--per-person N\|none] (Web search) |
| Configuration | config export [-o FILE]; config diff -f FILE; config apply -f FILE [--yes]; config revisions; config restore <n> [--yes] |
| Generations | generations list; generations start --estimate; generations start --yes; generations serve <n>; generations cancel <n> |
Repositories, connections, projects, users and service accounts can be named by name or by id. synaxis --help
prints the full list; synaxis --version prints the tool's version and API version.
Output, confirmation and exit codes
- Output is text by default.
--output jsonprints the API's JSON answer, for scripts. - An action that removes data (a purge, an exclusion, removing a connection) says what it removes and stops, unless
you add
--yes. - Exit codes:
0success,1failure,2usage error,3not authorized (signed out, or a role the action needs is missing).
Examples
Store a secret from a file, review a configuration change, and list the held repositories as JSON:
synaxis secret set gh-app-key --from-file app.private-key.pem
synaxis config diff -f codewright-synaxis.yaml
synaxis config apply -f codewright-synaxis.yaml
synaxis repos list --state held --output json
Note: Administrative commands need a person with the role the action needs. Service-account tokens carry only the
query,eventsandwritescopes, so they cannot run administrative commands.