Skip to main content

arch-cli

arch-cli is the ARCH-Insight command-line client. It includes commands for working with the product API, importing architecture data, managing the developer platform, and using the secrets vault.

Install

python -m pip install arch-insight-cli

The installed command is arch (also available as arch-cli). Python 3.9 or newer is required.

Sign in

arch login                               # opens the browser; MFA and consent as for any connected app
arch login --email you@example.com       # unattended: password from ARCH_PASSWORD, or asked for
arch whoami
arch logout

The session is stored for your user (%APPDATA%\arch-insight\credentials.json on Windows, ~/.config/arch-insight/credentials.json elsewhere, readable by you only) and refreshed automatically, so scheduled jobs keep working. ARCH_ACCESS_TOKEN or --token still override it. Developer-platform commands also accept the platform token through ARCH_TOKEN. Set ARCH_API_URL for a self-hosted deployment (default https://arch-insight.com) and, if its sign-in is not at auth.<host>, ARCH_AUTH_URL.

Tasks

arch task create "Review database costs" \
  --description "Check the quarterly forecast" \
  --project-id 12 --board-id 4 --priority high \
  --assignee "Alex Example" --due-date 2026-12-01

arch task list --project-id 12

The create command prints the created task as JSON. Repeat --assignee to assign more than one person.

Fact sheets

Create one fact sheet from JSON, import one or more JSON objects, or import an ARCH-Insight ZIP export:

arch factsheet create application.json
arch factsheet import fact-sheets.json
arch factsheet import archi_insight_export.zip
arch factsheet list

JSON imports create rows one at a time through the same API used by the web app. If an item fails, earlier successful items remain created. ZIP imports use the application's import endpoint and report imported and skipped entries.

Projects, tasks, tickets and notes

arch project list
arch project create "Webshop" --priority high
arch task create "Release Stripe production account" --project-id 12 --assignee st@example.com --due-date 2026-09-14
arch task update 41 --status in_review
arch ticket create "Alfen box offline" --message "Since 2026-09-14 after reset" --priority high
arch ticket reply 7 --message "2026-09-15: back online after factory reset"
arch document create "Meeting 2026-10-05" --file minutes.md --folder "Change Control Board"

Move a whole list in at once -- projects, their tasks, a dated status log kept as a ticket, and notes -- from one JSON file. Re-running it creates nothing twice:

arch project import plan.json --dry-run
arch project import plan.json

See arch_cli/work.py for the file format.

Marketing e-mail

Contact lists drop malformed addresses and reserved domains (example.com, *.invalid, *.test, ...) and duplicates, and say what they dropped:

arch email-list create "Customers" --file customers.csv --exclude-domain mycompany.com
arch email-list create "Team" --members --dry-run
arch email-list add 4 --email new@customer.org
arch email-list export 4 --out customers.csv

A campaign's own subject and bodies are the English base. Each recipient who chose a language in ARCH-Insight gets that language's version when the campaign has one, everyone else the base:

arch marketing campaign create --name "Release 3.1" --subject "ARCH-Insight 3.1" \
  --html release.html --text release.txt --list 4 --translations translations.json
arch marketing campaign preview 12 --language ja --out preview.html
arch marketing campaign test 12 --to me@mycompany.com --language ja   # stays a draft
arch marketing campaign send 12 --yes

translations.json:

{"ja": {"subject": "ARCH-Insight 3.1", "body_html_file": "release.ja.html", "body_text_file": "release.ja.txt"},
 "de": {"subject": "ARCH-Insight 3.1 ist da"}}

Set the logo shown at the top of every e-mail with arch org logo logo.png.

Secrets

The dedicated arch-secrets command remains available. The same functionality can be reached through arch secrets:

export ARCH_SECRETS_TOKEN='your-vault-token'
arch secrets run -- npm start
arch secrets export > .env
arch secrets push .env

The vault token is scoped independently from the user access token used by product commands.

Developer platform

arch repo list
arch repo create team/sample --description "Example repository"
arch pipeline list --repo 12
arch pipeline show 42
arch pipeline logs 99
arch registry list
arch registry tags team/sample
arch runner list
arch deploy list production

Metadata

Release files for arch-insight-cli 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arch-insight-cli 0.3.0
File Size Uploaded
arch_insight_cli-0.3.0.tar.gz 21.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for arch-insight-cli 0.3.0
File Interpreter ABI Platform
arch_insight_cli-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 40.6 kB

Release files / arch_insight_cli-0.3.0.tar.gz

Download URL arch_insight_cli-0.3.0.tar.gz
Size 21.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2220c3ca5f0ea039ed2aa79108026bdeb30a497e21a919a7e959addd6fea531a
BLAKE2b-256 checksum
How to use checksums
05e70b5535470bc1e288cf0cdbeaa2801f355c740d8b7cbc6a85597aec6bb956
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / arch_insight_cli-0.3.0-py3-none-any.whl

Download URL arch_insight_cli-0.3.0-py3-none-any.whl
Size 19.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e775bf06a7dadf2dee017fa0020b5bb131b458cdafdd504e6820008989900761
BLAKE2b-256 checksum
How to use checksums
f177b6747cb1b3de614b4f6621b81364007457610715e6efec3a551a4e3587b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release history Release notifications | RSS feed

0.4.1

2 release files

0.4.0

2 release files

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page