Altostra Docs

    ›Commands

    Getting Started

    • Welcome to Altostra
    • Connect your accounts
    • Install the developer tools
    • Log in from the CLI

    Tutorials

    • Create a Static Website
    • Create a Scalable Webhook
    • Create a Simple API Project
    • Try Altostra without connecting cloud accounts
    • CI/CD with Altostra CLI and Github Actions

    How To

      Working with projects

      • Create a new project
      • Deploy a project
      • Manage a project

      Working with environments

      • Manage an environment
      • Configure instances expiration for an environment

      Working with the Editor

      • Grant access to vendor services
      • Use the Parameter Store
      • Use a custom CloudFormation resource
      • Attach a custom policy to a Function
      • Connect a Function to VPC
      • Add filter policy to SNS subscription

      Organization account settings

      • Set General Settings
      • Connect a Git account
      • Connect Cloud Accounts
      • Manage log aggregation accounts

    CLI

    • Altostra CLI
    • Commands

      • templates
      • new
      • init
      • push
      • deploy
      • sls-deploy
      • sync
      • invalidate
      • domains
      • console
      • environments
      • images
      • instances
      • build
      • config
      • import
      • projects
      • tasks
      • activity-log
      • login
      • logout
      • account
      • whoami
      • api-key
      • docs

      Options

      • --debug
      • --verbose
      • Scripting options
    • Configuration files

    Errors And Solutions

    • Autnentication Required

    Technical Reference

    • Environments
    • Playground Environment
    • Instances
    • Project image
    • Image Repository
    • Log Shipping
    • Deployment Modes
    • Altostra Cloud Integration

    Integrations

      CI/CD

      • CircleCI

    sync

    The alto sync command is used to upload files from the local application directory to their respective file-stores.

    For example, you build a website that has a file-store resource that hosts the website content files. You would then use the alto deploy command to deploy the application infrastructure and the alto sync command to upload the files.

    The command takes a instance to which the files should be uploaded, for example dev or prod.

    You can either sync specific file-stores or all files-stores in an application by using the --all and --buckets options. These options are mutually exclusive.

    By default, the files are not publicly accessible. To make the uploaded files public, use the --public option.

    Usage

    $ alto sync <instance-name>
    

    Arguments

    instance-name

    The instance to which the files should be uploaded.

    Options

    --all

    Sync all file-stores in the application.

    Aliases: -a

    Required: no

    --buckets <list of file-stores>

    Sync a given subset of file-stores in the application.

    Aliases: -b

    Required: no

    --public

    Make the uploaded files publicly accessible. By default, all files are not publicly accessible.

    Required: no

    --project-path

    Specify the project working directory.

    If not specified, project directory is assumed to be the current directory.

    Aliases: --pp

    Required: no

    ← sls-deployinvalidate →
    • Usage
    • Arguments
      • instance-name
    • Options
      • --all
      • --buckets <list of file-stores>
      • --public
      • --project-path
    © 2021 Altostra, Inc.