@townco/town
v0.2.0
Published
Town CLI — authenticate to your Town account and import files into your content library.
Downloads
96
Readme
Town CLI
Import your local Markdown files into your Town content library.
Install
npm install -g @townco/townRequires Node.js 18+. CLI access is currently in beta — if town login says
it isn't enabled for your account, ask your Town contact to turn it on.
Use
town login # opens your browser to approve access (one click)
town push notes.md # import a file
town push ./notes # import every .md/.markdown under a directory
town push docs/*.md --dry-run # preview what would be imported
town status # show login state
town logout # remove the local tokenEach file becomes an editable document in your library, titled from its first
# Heading (or the filename). Pushing a directory recreates its folder
structure in your library. The login token can only add content to your
library, and you can revoke it anytime under Settings → Developer in Town.
License
MIT
