CLI
Install the CLI in your project and run it with npx:
npm install --save-dev @ynch/cli@betanpx ynch <command>It needs Node.js 22 or later.
Everyday commands
Section titled “Everyday commands”| Command | What it does |
|---|---|
ynch connect |
Connects this folder to one of your Studio projects so you can upload drafts. Prints a Studio link to approve, then lets you pick or create the project. In an empty folder it also writes a starter .ynch. |
ynch check |
Validates the .ynch folder and the images it uses. Writes nothing and uses no network. |
ynch upload |
Builds the app and uploads it to the connected project as a draft. |
ynch forget --draft |
Removes this computer’s draft connection. Run it before connect when an upload says there is no active connection. |
Other commands
Section titled “Other commands”| Command | What it does |
|---|---|
ynch init [--name NAME] [--project-id ID] |
Writes a starter .ynch without connecting to Studio. |
ynch build |
Builds the unsigned bundle into dist/ and prints its Build ID, without uploading. |
ynch upload PROJECT_ID BUILD_ID |
Uploads one specific build, approved through a Studio page each time. |
ynch login |
Opens Studio in your browser to sign in. |
ynch link PROJECT_ID |
Links this folder to a project for read-only status. |
ynch status |
Shows the linked project’s status. |
ynch forget |
Removes the read-only link. |
Good to know
Section titled “Good to know”- A draft connection lasts as long as the Studio session that approved it.
- An upload is at most 256 KB and never changes what is live. Approving and activating happen in Studio.
- The CLI never runs anything in your app’s files and never sends them anywhere except Studio, on
upload. - A project over its plan’s storage refuses new uploads until you free space or change plan.