Quickstart
This page runs Syntic Code from a script for the first time.
1. Install and sign in
Install the CLI as described in Install, then sign in:
syntic loginYou can also set SYNTIC_API_KEY for a non-interactive environment. Without sign-in, the CLI exits with the message “Not signed in” and points to syntic login.
2. Run one prompt
syntic -p "list the public functions in src/lib.rs"-p (--print) runs one task, prints the final answer and exits.
3. Get structured output
syntic -p "summarize the open TODO comments" --output-format json--output-format json prints one JSON object at the end of the run. --output-format stream-json --verbose prints one JSON message per line while the run is in progress.
4. Keep the run bounded
syntic -p "fix the failing test in tests/parser.rs" --max-turns 10 --max-budget-usd 2--max-turns stops the run after that many turns. --max-budget-usd stops it when the spend reaches the limit.
Next: Examples and the headless guide.