Managing your SFP Server

The SFP server provides comprehensive CLI commands for managing all aspects of your server deployment. This page provides an overview of available commands organized by their primary use cases.

Quick Start

The typical workflow for setting up and managing an SFP server:

  1. Initialize: sfp server init - Set up a new server instance

  2. Start: sfp server start - Launch the server services

  3. Monitor: sfp server status and sfp server health - Check server health

  4. Manage: Use various commands to manage environments, users, and resources

  5. Update: sfp server update - Keep the server up to date

Command Categories

Lifecycle Management

Essential commands for managing the server lifecycle:

Command
Purpose
Common Usage

init

Initialize a new server instance

sfp server init --tenant my-app --mode prod

start

Start server services

sfp server start --tenant my-app --daemon

stop

Stop server services

sfp server stop --tenant my-app

status

Check service status

sfp server status --tenant my-app

update

Update to latest version

sfp server update --tenant my-app

📊 Monitoring & Operations

Commands for monitoring and operational management:

Command
Purpose
Common Usage

health

Health checks and diagnostics

sfp server health --detailed

logs

View and monitor logs

sfp server logs --tenant my-app --follow

scale

Scale worker services

sfp server scale --tenant my-app --normal-workers 3

Authentication & Security

Manage authentication and security:

Command
Purpose
Common Usage

auth

User authentication

sfp server auth login --email [email protected]

application-token

Manage API tokens

sfp server application-token create --name "CI Token"

user

User management

sfp server user list

Environment Management

Manage deployment environments:

Command
Purpose
Common Usage

environment

Manage environments

sfp server environment create --name production

org

Manage Salesforce orgs

sfp server org list

pool

Manage org pools

sfp server pool list

review-envs

Review environments

sfp server review-envs list

Build & Release Management

Commands for managing builds and releases:

Command
Purpose
Common Usage

builds

View build history

sfp server builds list --repository myorg/myrepo

releasedefinition

Generate releases

sfp server releasedefinition generate -n MyRelease

artifacts

Manage artifacts

sfp server artifacts list

Configuration & Integration

Configuration and integration management:

Command
Purpose
Common Usage

repository

Repository connections

sfp server repository add

webhook

Webhook configuration

sfp server webhook create

project

Project management

sfp server project list

Data Storage

Data and configuration storage:

Command
Purpose
Common Usage

doc-store

Document storage

sfp server doc-store get

key-value

Key-value storage

sfp server key-value set

Common Workflows

Initial Setup

Daily Operations

Deployment Workflow

Maintenance Operations

Authentication Options

Most server commands support multiple authentication methods:

User Authentication

Application Token (CI/CD)

Remote Server Management

All lifecycle commands support managing remote servers via SSH:

Best Practices

  1. Lock Environments During Deployments: Prevent concurrent deployments with environment locking

  2. Monitor Health Regularly: Set up automated health checks using sfp server health

  3. Scale Appropriately: Adjust worker counts based on your workload

  4. Keep Servers Updated: Regularly update to get latest features and security fixes

  5. Use Application Tokens for CI/CD: Create dedicated tokens for automated processes

  6. Review Logs Regularly: Monitor logs for errors and performance issues

Troubleshooting

Server Won't Start

Authentication Issues

Performance Issues

Next Steps

  • Detailed Command Reference: See the CLI Reference for complete command documentation

  • Architecture Overview: Learn about the server architecture

  • Installation Guide: Follow the installation guide for detailed setup instructions

  • API Reference: Explore the API documentation for programmatic access

Note: All server commands require sfp-pro. Community edition users should upgrade to access server functionality.

Tip: Use --json flag with commands for scripting and automation purposes.

Last updated