argos/docs/cli.md

2.5 KiB

Command-line interface

The argos cli

Usage: argos [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  agent   Get and run tasks to the provided server.
  server

Agent commands

Usage: argos agent [OPTIONS] SERVER AUTH

  Get and run tasks to the provided server. Will wait for new tasks.

  Usage: argos agent https://argos.server "auth-token-here"

Options:
  --max-tasks INTEGER             Number of concurrent tasks this agent can run
  --wait-time INTEGER             Waiting time between two polls on the server
                                  (seconds)
  --log-level [DEBUG|INFO|WARNING|ERROR|CRITICAL]
  --help                          Show this message and exit.

Server commands

Usage: argos server [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  clean  Clean the database (to run routinely)
  start  Starts the server.

Server start

Usage: argos server start [OPTIONS]

  Starts the server.

Options:
  --host TEXT        Host to bind
  --port INTEGER     Port to bind
  --reload           Enable hot reloading
  --log-config TEXT  Path to the logging configuration file
  --help             Show this message and exit.

Server clean

Usage: argos server clean [OPTIONS]

  Clean the database (to run routinely)

  - Removes old results from the database. - Removes locks from tasks that have
  been locked for too long.

Options:
  --max-results INTEGER       Maximum number of results to keep
  --max-lock-seconds INTEGER  The number of seconds after which a lock is
                              considered stale
  --help                      Show this message and exit.