{"name":"--init-only","slug":"init-only","family":"cli","title":"CLI flags","noun":"CLI flag","description":"Run [Setup](\/docs\/en\/hooks#setup) and `SessionStart` hooks, then exit without starting a conversation","description_source":"docs","described_by":{"doc":"claude-code\/cli-reference","title":"CLI reference"},"presence":{"first_seen":null,"removed_in":null,"in_current_build":false,"newest_mined":"2.1.308","builds":0,"mined_builds":149,"first_cited":null},"aliases":[],"entries":[{"version":"2.1.239","anchor":"one-shared-test-for-whether-a-run-is-headless","heading":"One shared test for whether a run is headless","line":"One shared check now decides whether a run is non-interactive, covering print mode and piped output.","released_at":"2026-08-21 17:18:54","reason":"named in this entry, found in this entry's text"},{"version":"2.1.233","anchor":"new-hidden-flag-watch-artifact","heading":"New hidden flag --watch-artifact","line":"A hidden flag lets a session watch an artifact for new versions and comments, with an option to disarm auto-reply.","released_at":"2026-08-14 18:50:44","reason":"found in this entry's text"},{"version":"2.1.21","anchor":"cli-init-only-flag-description-update","heading":"CLI Init Only Flag Description Update","line":null,"released_at":"2026-01-28 01:37:44","reason":"found in this entry's text"}],"entries_total":3,"docs":[{"source":"claude-code","path":"cli-reference","title":"CLI reference","documented":true},{"source":"claude-code","path":"hooks","title":"Hooks reference","documented":false},{"source":"claude-code","path":"hooks-guide","title":"Automate actions with hooks","documented":false},{"source":"claude-code","path":"self-hosted-environments-testing","title":"Test self-hosted environments end to end","documented":false}],"docs_total":4,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/cli\/init-only","family_url":"https:\/\/changelogs.core-directive.com\/reference\/cli.json"}