class AmberCLI::Documentation::SecurityAndConfiguration

Overview

Security and Configuration

Environment File Encryption

The encrypt command provides secure environment file management.

Usage

amber encrypt [ENVIRONMENT] [options]

Options

Examples

Encrypt production environment:

amber encrypt production

Encrypt staging with custom editor:

amber encrypt staging --editor nano

Just encrypt without editing:

amber encrypt production --noedit

Configuration Files

Amber applications use several configuration files:

.amber.yml

Project-specific configuration:

database: pg
language: slang
model: granite
watch:
  run:
    build_commands:
      - "crystal build ./src/my_app.cr -o bin/my_app"
    run_commands:
      - "bin/my_app"
    include:
      - "./config/**/*.cr"
      - "./src/**/*.cr"

Environment Files

Defined in:

amber_cli/documentation.cr