@that-company/dat
v0.1.46
Published
Installer for the D.A.T. CLI
Maintainers
Readme
D.A.T. CLI
Install D.A.T. with npm:
npm i -g @that-company/datThen sign in:
dat loginThis npm package is a thin installer. During postinstall, it downloads the
matching prebuilt dat binary from GitHub Releases, verifies it against
SHA256SUMS, and exposes it as the dat command.
Alternative install:
curl -fsSL https://thatcompany.ai/install.sh | shEnvironment Overrides
DAT_RELEASE_REPO: release repo, defaultthat-company/dat-releasesDAT_INSTALL_BASE: full release asset base URLDAT_CHANNEL: release path under/releases, defaultdownload/v<package version>DAT_SKIP_INSTALL=1: skip binary download during npm install
Release
The npm package version must match an already-published dat GitHub Release.
The installer intentionally downloads from download/v<package version> instead
of latest/download, so npm installs are reproducible and the package version
has one meaning.
Release order is owned by the Release GitHub Actions workflow in this repo:
Build and publish the
datbinary release tothat-company/dat-releases.Set this package version to the same
X.Y.Zin the workflow workspace.Run
npm run verify:release.Publish with npm Trusted Publishing/OIDC.
Verify
npm view @that-company/dat versionand a temp global install:npm install -g --prefix /tmp/dat-npm-check @that-company/dat@latest /tmp/dat-npm-check/bin/dat --version
The prepublishOnly hook runs the same release guard if someone uses
npm publish --access public directly.
