bijection command line.
Install it with:
~/.bijection/bin/bijection. It installs for your user
only and never uses sudo. Running it again reinstalls the latest release, or
does nothing when that exact binary is already installed.
Open a new terminal so it reads the updated PATH, then check the installation.
Choose whether the installer updates PATH
By default, the installer adds~/.bijection/bin to your shell’s startup file.
Set BIJECTION_MODIFY_PATH=0 to leave the startup file untouched.
Install a specific version
SetBIJECTION_VERSION to install that release instead of the latest one:
Supported platforms
The installer needs
curl or wget, and sha256sum or shasum. On Linux
distributions that use musl libc, such as Alpine, the command line runs but is
qualified only after the release’s native checks pass on that platform.
These examples describe the current Bijection CLI and SDK source. Use builds
from the same source commit for these APIs. The public CLI and npm SDK
are published independently and may lag this reference.
%USERPROFILE%\.bijection\bin\bijection.exe.
The installer adds the directory to your user PATH by default. Set
$env:BIJECTION_MODIFY_PATH = '0' before installation to opt out.
Native Windows and WSL use separate runtime installations and state. Hosted
actions on Windows require Docker Desktop with Linux containers.
The toolchain
The backend needs no Node.js: developing, checking and deploying it run in the onebijection binary, which embeds its SDK and the native TypeScript
compiler. The React frontend and tests on the real kernel
(@bijectionhq/bijection/test) need Node.js LTS; the test preset,
vitestPreset(), sets the flags the kernel needs. The embedded SDK is
materialized under ~/.bijection/sdks/, keyed by its archive digest.
A frontend app installs the SDK from the npm registry:
Install the Bijection SDK in your app:
add command. The app tree
imports from @bijectionhq/bijection, a frontend from
@bijectionhq/bijection/client and @bijectionhq/bijection/react, tests from
@bijectionhq/bijection/test, and libraries from
@bijectionhq/bijection.
A project with package.json owns its SDK. CLI upgrades, checks and
deployment never change its dependency declarations or lockfile.
A CLI release and the SDK it embeds share one version: bijection --version
prints the SDK version a new project pins.
Creating projects
These examples describe the current Bijection CLI and SDK source. Use builds
from the same source commit for these APIs. The public CLI and npm SDK
are published independently and may lag this reference.
bijection create . --template bare needs no package manager. The CLI prepares
node_modules/@bijectionhq/bijection so your editor and native compiler can resolve types.
bijection create my-project creates a React/Vite app with live shared
notes, a task and a test on the real kernel. Run cd my-project && bijection dev
to start the local backend and frontend together; no account or identity
provider is required. The notes table has no label and its functions allow
role.anyone; see access for protected data. Restarting preserves
development data. Use --template business for the inventory workspace with
AuthKit, sample data and kernel tests, --template teams for tasks private to each
organization,
--template react-vite-authkit for member-only notes with sign-in, or
--template files for authenticated file uploads. Initialization
downloads verified Bijection package files into vendor/, writes
file:vendor/... dependencies, and installs them with the package manager it
detects: the one whose lockfile is in an enclosing directory, otherwise the
first of pnpm, bun, yarn and npm on your PATH. Commit vendor/, package.json and the lockfile: the managed builder
installs these same packages with the frozen lockfile.
For an existing frontend, the source build can also export the SDK it embeds:
add command.
Log in
Local development does not require a Bijection account. Sign in when you want to link a project or use the hosted service.bijection login signs this machine in to your Bijection account, once per
machine, on the Bijection hosted service unless BIJECTION_MANAGEMENT_URL names
another management service. It prints a link and a code; open the link,
check the code and approve the sign-in. The credential is stored in the
operating system keychain; ~/.bijection/config.json records its reference and
the service that issued it, and later commands use that service.
BIJECTION_CREDENTIAL_STORE=file keeps the credential in that owner-only file
instead, for machines without a keychain.
The CLI connects to the Bijection hosted service by default, and its links
open the console at
https://console.bijection.com. To use another
management service, such as one you were given, set BIJECTION_MANAGEMENT_URL
to its URL in your shell’s startup file, so that every later bijection
command sees it too:Upgrade
bijection upgrade replaces the binary with the latest release after verifying
it against the release manifest, and reports when you already have the latest
one. The new binary brings its own backend SDK and TypeScript compiler. Projects that
declare the SDK in package.json retain their installed version and lockfile;
updating their dependencies is an explicit project change.
Uninstall
PATH line from your shell’s startup file if you
added one. Your projects and deployments are not affected.
Next steps
Create your first app
Create the notes starter and read its tree.
React
Add Bijection to a React app.
All clients
Connect from another framework or language.
Tutorial: Build a chat app
Build a real-time chat app step by step.