Skip to content

CLI Reference

agentsync provides a straightforward set of commands to manage your AI agent configurations.

Initializes a new AgentSync configuration in the current directory.

Terminal window
agentsync init

Actions:

  • Creates the .agents/ directory if it doesn’t exist.
  • Creates a default .agents/agentsync.toml file.
  • Creates a template .agents/AGENTS.md file.

Applies the configuration defined in agentsync.toml by creating symbolic links and updating .gitignore.

Terminal window
agentsync apply [FLAGS]

Flags:

  • -c, --clean: Deletes existing symbolic links before applying. Useful for fixing broken links or cleaning up old configurations.
  • -d, --dry-run: Shows what actions would be taken without actually making any changes to the filesystem.
  • --config <PATH>: Use a custom configuration file path instead of the default .agents/agentsync.toml.

Shows the current version of the AgentSync CLI.

Terminal window
agentsync --version

Shows help information for the CLI or a specific command.

Terminal window
agentsync --help
agentsync apply --help
  • -v, --verbose: Enable verbose logging for debugging purposes.
  • -q, --quiet: Only output errors.