atom

cli reference

the atom cli (@useatom/cli, binary atom) is the fastest way to set up and configure atom. every command supports --json for machine-readable output and exits 0 on success, 1 on failure.

setup commands

commandwhat it does
atom initinteractive setup: sign in, create or pick a workspace, connect github and slack, map a repo. resumable.
atom loginsign in with github through your browser. --manual prints a url and lets you paste the token back. --with-token reads a token from $ATOM_TOKEN or stdin.
atom logoutsign out and clear stored credentials.
atom connect githubinstall the github app on your organization. add --force to reconnect.
atom connect slackinstall the slack bot. --force reinstalls, which you need after a permissions change.

workspace commands

commandwhat it does
atom statusworkspace overview: connections, mappings, plan.
atom whoamithe signed-in user and their workspaces.
atom inviteprint the invite code for teammates.
atom join <code>join a workspace with an invite code. pasted invite links work too.

repos and channels

commandwhat it does
atom map [repo] [channel]route a repo's pull requests to a slack channel. accepts bare repo names and #channel names. interactive without arguments.
atom unmap [repo]remove a mapping. -y skips the confirmation.
atom reposlist repos and their mapped channels.
atom channelslist slack channels the bot can post to.

one channel can carry many repos. each repo maps to exactly one channel.

pr reminders

commandwhat it does
atom reminderslist reminder configs.
atom reminders set --channel #xcreate or update reminders for a channel. options: --time 10:00, --tz America/New_York, --days mon,tue,wed,thu,fri, --repos api,web. repos default to the channel's mapped repos.
atom reminders delete --channel #xremove reminders from a channel.

standup

commandwhat it does
atom standup statusshow the standup config and participants.
atom standup enable --channel #xenable the standup. options: --nudge 09:30, --post 11:00, --tz Zone, --days mon,fri.
atom standup disablepause the standup. config and history are kept.
atom standup add-user <github-login>enroll a workspace member. participation is opt-in.
atom standup remove-user <github-login>remove a participant.

environment variables

variablepurpose
ATOM_API_URLpoint the cli at a different atom server.
ATOM_TOKENprovide a token without touching the config file. never persisted.
ATOM_CONFIG_DIRuse an alternate config directory, useful for a second account.

configuration lives in ~/.useatom/config.json with owner-only permissions.