Skip to content

Latest commit

 

History

History
148 lines (105 loc) · 3.31 KB

getting-started.md

File metadata and controls

148 lines (105 loc) · 3.31 KB

Getting started

This walkthrough logs in to Adios, creates an adios.yaml manifest, deploys an application, and opens its logs.

1. Check the CLI

Install the CLI first, then confirm that your shell can find it:

adios version

See Installation if the command is unavailable.

2. Log in

Start the browser-based sign-in flow:

adios login

The default login targets production and saves an authenticated default context. To keep separate accounts or environments isolated, name the context at login time:

adios login --context work --environment production

Check the selected account and team:

adios context current
adios teams

If your account belongs to more than one team, select one before deploying:

adios teams switch <team-id>

3. Initialize the application

Change into the application directory and ask the CLI to detect its runtime:

cd my-application
adios init

The CLI prints the proposed manifest and asks before writing adios.yaml. Review at least these fields:

  • runtime selects the build and execution toolchain;
  • build_cmd installs dependencies or compiles the application;
  • start_cmd starts the production process; and
  • port is the port on which that process listens.

For non-interactive initialization, use adios init --yes. Existing manifests are preserved unless you explicitly pass --force.

A small Node.js service might use:

name: my-service
type: api
runtime: node@24
build_cmd: npm ci
start_cmd: node server.js
port: 8080
env:
  NODE_ENV: production
  PORT: "8080"

The application must listen on 0.0.0.0, not only localhost, and its port must match the manifest.

4. Deploy

From the directory containing adios.yaml, run:

adios up

The CLI packages the selected source, runs local preflight checks, creates or updates the application, builds it, and deploys the result. Once the platform objects are resolved, it writes app_id and team_id back to adios.yaml, which makes later deployments target the same application.

Use a longer timeout for a slow first build, up to 30 minutes:

adios up --timeout 20m

Do not use --allow-risk merely to make a failed security preflight disappear. Review the finding and use that flag only when you have accepted the specific risk.

5. Inspect the result

List applications and show one application's details:

adios apps
adios apps get my-service

Follow combined application logs:

adios logs my-service --follow

Useful focused views include:

adios logs my-service --build
adios logs my-service --runtime --region all
adios logs my-service --errors
adios logs my-service --http

6. Make a change

Edit the application or its manifest and run adios up again. Use --no-cache only when the build cache is causing a problem:

adios up --no-cache

Next steps

Back to the documentation index