Atlas from the shell

The atlas command brings every page of the Atlas console to the shell: the same checks, the same messages, with JSON output for scripts and agents.

The atlas command brings every page of the Atlas console to the shell: the same checks, the same messages, with JSON output for scripts and agents.

How it works

atlas is the web console of EDON Atlas ported to the shell. The console is the reference: each command ports one of its pages — the tree follows the console’s menu: System, Network, Active Directory, Web, DNS, Mail, Backup, Telephony and Tools — and runs that page’s own loader or action on the appliance, as root. What a page validates, refuses or warns about, the command validates, refuses and warns about, with the page’s own words, in the shell’s language. Nothing is decided by the command itself.

The command talks to the console through its socket, /run/atlas/cli.sock, in a directory only root can enter: nothing secret travels, and whoever reaches the socket is root. Run it as root, or with sudo.

Commands

atlas <section> <page> <verb> [arguments] [options]. A page’s records are listed, shown, added, changed and deleted with list, show, add, set and delete; a list inside a record is a group of its own, its items named by their number; a settings block is a group with show and set; a page’s button is a verb named after it. set changes only what its options name: the rest of the record is posted as the page’s form holds it, so set with no option saves the record unchanged. A page’s group with no verb lists its records, or shows the page when it has none to list.

atlas <group> –help lists a group’s commands, atlas <group> <command> –help a command’s options; the help, like the console’s messages, follows LANG (or –lang).

Secrets

A password, a pre-shared key or any other secret never goes on the command line, where every local user can read it: an option that takes one takes its source instead — - reads it from stdin, @path from a file, ask on the terminal without echo. A literal value is refused.

Scripts and AI agents

–json prints the page’s data, or the page’s answer to an action, as one JSON document on stdout and nothing else there; notes and warnings go to stderr. The exit status says how it went (see EXIT STATUS). Commands that delete or power off ask first; without a terminal they need –yes. Commands marked read-only change nothing and can run anywhere. A page the command tree does not cover yet is still reachable with atlas raw get and atlas raw post, by the page’s own names.

The sections

  • atlas system — The appliance: status, modules, settings, database
  • atlas network — The network: interfaces, IPAM, local firewall
  • atlas ad — The domain: users, groups, computers, shares, logon scripts, group policies
  • atlas web — The web: reverse proxies, MCP and SSO applications
  • atlas dns — The DNS zones
  • atlas mail — The mail server: domains, filters and lists, logs
  • atlas backup — The backups: planned, in progress, restore, clients, storage, repositories, logs
  • atlas pbx — Telephony: extensions, desk phones, aliases, shot numbers, lines, auto-attendant, rules, calls
  • atlas tools — The administrator’s tools: DHCP leases, IMAP import, MFA enrolment (the personal tools — files, vault, mail, calendar… — stay in the web console)

Examples

# The pages the console's bridge reaches
atlas raw routes
# A page's data as JSON, for a script
atlas --json raw get /system/stats

Exit status

  • 0 — Done.
  • 1 — Failed: the page could not do it, or the console answered an error.
  • 2 — Usage: an unknown command or option, a missing argument, a value of the wrong kind.
  • 3 — Refused by the page: the fields it names are wrong (the messages say why).
  • 4 — Not found: no record by that name.
  • 5 — Unauthorized: not root (the console’s socket is root’s).
  • 6 — Declined: not confirmed (no –yes without a terminal, a no, no answer in time).
  • 7 — The console does not answer: is atlas.service running?

The full command reference is on the page Atlas CLI: reference, and on the appliance in man atlas.

LET’S TALK INFRASTRUCTURE

Control starts with a conversation.

Tell us about your infrastructure. Let’s start with what you actually need.

Talk to an engineer