Update
sfp server update
sfp server updatesfp server update
sfp server updateUSAGE
$ sfp server update -t <value> [-j] [--skip-backup] [--base-dir <value>]
[--supabase-working-dir <value>] [--passphrase <value> [--identity-file
<value> --ssh-connection <value>]] [-r <value>] [--docker-tag <value>]
[--restart] [--config-file <value>] [--infisical-token <value>
--secrets-provider infisical|aws-secretsmanager|custom] [--aws-region
<value>] [--aws-access-key-id <value>] [--aws-secret-access-key <value>]
[-g <value>...] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
-t, --tenant=<value> (required) Name of the tenant to update
-j, --[no-]json Output in JSON format
-r, --cadence=<value> [default: latest] The default cadence to use for updates
--docker-tag=<value> Docker image tag to deploy (overrides cadence)
--[no-]restart Restart services after update
--skip-backup Skip backing up current configuration
--base-dir=<value> [default: ./sfp-server] Base Directory which contains the sfp-server
--supabase-working-dir=<value> Working directory which contains supabase configuration
--config-file=<value> Path to JSON config file containing server configuration values
SSH OPTIONS
--ssh-connection=<value> SSH connection string in the format user@host[:port]
--identity-file=<value> Path to SSH private key file
--passphrase=<value> Passphrase for the SSH private key if required
SECRETS MANAGEMENT
--secrets-provider=<option> [default: custom] Secret provider to use for managing secrets
<options: infisical|aws-secretsmanager|custom>
--infisical-token=<value> Infisical API token (required when secrets-provider is "infisical")
--aws-region=<value> AWS region for Secrets Manager (required when secrets-provider is "aws-secretsmanager")
--aws-access-key-id=<value> AWS access key ID (optional, can use instance profile)
--aws-secret-access-key=<value> AWS secret access key (optional, can use instance profile)
OTHER OPTIONS
-g, --logsgroupsymbol=<value>... Symbol used by CICD platform to group/collapse logs
--loglevel=<option> [default: info] logging level for this command invocation
<options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
DESCRIPTION
Update a tenant's services to the latest version
This command performs:
1. Backs up current configuration (unless --skip-backup is used)
2. Pulls latest Docker images
3. Updates configuration files
4. Applies database migrations if needed
5. Optionally restarts services
Secrets Management:
This command supports multiple options for secrets management:
- infisical: Use Infisical as a dedicated secrets manager
- aws-secretsmanager: Use AWS Secrets Manager
- custom: Use environment variables (recommended when using tools like "infisical run" or AWS CLI)
EXAMPLES
$ sfp server update --tenant my-tenant
$ sfp server update --tenant my-tenant --skip-backup
$ sfp server update --tenant my-tenant --docker-tag pr-123-dev
$ sfp server update --tenant my-tenant --restart
$ sfp server update --tenant my-tenant --ssh-connection user@remote-server --identity-file ~/.ssh/id_rsa
$ infisical run -- sfp server update --tenant my-app --secrets-provider customUpdate Strategies
Latest Version (Default)
Specific Version
Preview/Development Version
Update Options
With Automatic Restart
Skip Backup
Update Process
Remote Server Updates
Rollback Procedure
Best Practices
Production Updates
Zero-Downtime Updates
Output Format
Standard Output
JSON Output
Last updated