Configuration Management Guide
Promote and back up AIP resources across environments. Use this guide when you move configurations between sandboxes, staging, and production or need repeatable backups for version control and peer review.
Export Resources
When to use: Capture the current state before changes or to seed a new environment.
Add --view md if you need a human-readable snapshot alongside the JSON file.
Import or Update from Files
When to use: Apply reviewed configurations or roll back to a known-good version.
Ensure referenced tools or MCPs exist in the target environment before creating the agent. Export and import them in the same batch when promoting.
Common import/export issues
JSON import fails with schema mismatch
Outdated export or manual edits removed required fields.
Re-export from the latest environment and limit manual edits to sections you understand.
CLI prompts for confirmation mid-automation
--force flag omitted on destructive updates.
Add --force when running non-interactive scripts.
Tool import missing code bundle
Referenced file path invalid or not checked into repo.
Store zip packages alongside configs and double-check relative paths before import.
Differences lost between environments
Imports overwrite without diffing.
Run git diff or compare exports before applying and track changes in version control.
Rapid Iteration Loop (CLI)
When to use: Share quick adjustments with teammates or iterate during workshops.
Repeat the cycle until the prompt or configuration meets your needs, then commit the JSON to your repository for peer review or promotion.
Promotion Checklist
When to use: Gate deployments with an explicit review and testing routine.
Export from source environment — pull agents, tools, MCPs, and schedules if applicable.
Commit to version control — store JSON files in Git for peer review.
Apply environment overrides — adjust API keys, dataset names, or tool configs before import.
Import into target environment — start with tools/MCPs, then agents.
Smoke test — run quick scenarios to verify connectivity and credentials.
Validation Tips
When to use: Confirm imported resources behave as expected before promoting.
Use
aip agents run … --view jsonafter import to confirm the agent behaves as expected.For MCPs, run
aip mcps test-connection --from-fileprior to saving new credentials.Watch for
language_model_iddifferences between environments—exported files retain the original ID, so adjust if the target closes over a different label.
Automating Backups
When to use: Schedule recurring exports for compliance or DR planning.
Cron job / CI step:
aip agents list --view json | jq '.[].id'then loop over IDs and export each agent nightly.Store artifacts in object storage with versioning (S3, GCS) for quick rollback.
Use the Automation & scripting guide for shell and Python templates.
Related Documentation
Agents guide — understand payload structure and runtime overrides.
Tools guide — capture custom tool source alongside exports.
Automation & scripting — run exports in CI or scheduled jobs.
Last updated