Sync configuration between local files and Autumn - workflows, change analysis, and production safety
The push and pull commands keep your local autumn.config.ts in sync with your Autumn account. This guide covers the workflows, safety features, and best practices for configuration management.
Before making changes, push analyzes the differences and shows you exactly what will happen:
atmn pushAnalyzing changes...Features: ✓ messages (no changes) + seats (new feature) ~ sso (updated: name changed) - old_feature (will be deleted)Plans: ✓ free (no changes) ~ pro (updated: price changed $20 → $25) + enterprise (new plan)Ready to push 1 new feature, 1 updated feature, 1 deletion 1 new plan, 1 updated plan
atmn push --prod⚠️ PRODUCTION PUSHYou are about to push changes to your LIVE production environment.This will affect real customers and billing.Continue? (y/N)
When a plan has active customers, push creates a new version instead of modifying the existing one:
Plan "pro" has 15 customers and will create a new version.Existing customers will remain on the current version.New customers will get the updated version.Continue? (y/N)
Different prompts for different deletion scenarios:
# Plan with customers - suggests archivingPlan "old-plan" has 5 customers.Deleting it will affect existing subscriptions.Recommend archiving instead of deleting.Delete anyway? (y/N)# Feature used by plans - shows dependencies Feature "seats" is used by 3 plans: pro, enterprise, teamDeleting it will affect these plans.Delete anyway? (y/N)# Safe deletion - no dependenciesFeature "unused-feature" has no dependencies.Safe to delete.Continue? (y/N)
In CI/CD environments without TTY, push provides clear feedback:
# Without --yes flag when prompts are neededatmn pushPush requires confirmation for the following: - Pushing to production environment - Plan "pro" has customers and will create a new version - Feature "old_feature" will be deletedTo proceed, either: 1. Run this command in an interactive terminal to review each action 2. Run with --yes to automatically proceed with default actions
# With --yes flag - auto-confirms with safe defaultsatmn push --yes✓ Pushed 2 features, 1 plan to sandbox - Created new version of plan "pro" (v1.2) - Archived feature "old_feature" instead of deleting
Production Safety: Always review changes carefully before pushing to production. Use --yes flag only in automated environments where you trust the configuration.