pasteblox.json
A small file in your project that says which local file is which script on pasteblox. The CLI and the VS Code extension both read it and keep it up to date.
What it looks like
{
"$schema": "https://pasteblox.com/schema/pasteblox.json",
"scripts": [
{ "file": "src/door.luau", "slug": "k3m9x2p7qa", "visibility": "unlisted", "title": "door" },
{ "file": "src/hub.lua", "name": "hub.lua", "visibility": "public", "title": "speed hub" }
]
}The first script is already on pasteblox (it has a slug). The second one isn't yet: the next pbx push creates it as a public script called "speed hub", with its own raw URL /raw/<your handle>/hub.lua, and writes its new slug into the file.
You rarely write it by hand. pbx init creates it, and pbx push, pbx pull and VS Code's push add to it as you go. Commit it to Git, so everyone on the project pushes to the same scripts.
Every field
Name is applied on every push
name works the other way: pbx checks it each time it pushes that file, and if the script's URL on pasteblox is different, the push sets it. So you can add or change a name right in the file, or use the flag, which also writes it into the file:
❯ pbx push src/hub.lua --name hub.lua❯ pbx push src/hub.lua --name "" # Remove itAn entry without name leaves the script's URL alone, so a name you picked on the website stays. Renaming or removing a name keeps the old URL working, so loaders you already shared don't break. If another of your scripts already uses the name, pbx says which one: a new script isn't created, and an existing one still gets its new version, just not the name.
Anything else at the top level (next to scripts) is kept as is. Extra fields inside a script entry are not: the schema doesn't allow them, and pbx drops them the next time it saves the file.
Where it lives
Usually at the top of your project. pbx looks for it in the folder you're in, then in each folder above, and uses the first one it finds. So you can run pbx push from src/ and it still finds ../pasteblox.json. Every file path is relative to wherever that pasteblox.json is.
pbx initis the exception: it always writespasteblox.jsonin the folder you're in. Run it from the top of your project.- No
pasteblox.jsonanywhere above?pbx push file.luaucreates one in the current folder. VS Code creates it at the top of your workspace folder, not next to the file. - VS Code looks for every
pasteblox.jsonin the workspace, so a folder with several projects works too. Each file belongs to the nearest one above it.
The .pasteblox folder
Next to pasteblox.json, pbx and VS Code keep a .pasteblox/ folder with one file in it. It remembers, for this computer only, which version each file was last pushed or pulled at, and a fingerprint (SHA-256) of its content:
{
"version": 1,
"files": {
"src/door.luau": {
"slug": "k3m9x2p7qa",
"sha256": "b54997c45c69d822e800e8f550a321d7c88e51142095e60b565a33eaf078f820",
"version": 4,
"at": "2026-10-20T15:12:44.745Z"
}
}
}That's how they know:
- Which files changed since the last push (so
pbx pushskips the rest, and VS Code showsliveoredited). - If someone else pushed in the meantime. pbx sends the version you started from, and pasteblox refuses the push if it's not the newest any more (what to do then).
- If
pbx pullwould overwrite work you haven't pushed.
The folder contains its own .gitignore, so Git never picks it up. Deleting it is safe: you just lose those three checks until your next push or pull. That's also exactly the state of a fresh clone or a CI checkout, where the files in the repo always win.
With Rojo
pasteblox.json goes right next to default.project.json. Rojo ignores it, and you only list the scripts you want on pasteblox, not every module.
my-game/
├── default.project.json ← rojo's
├── pasteblox.json ← pbx's and vs code's
├── .pasteblox/ ← local cache, ignores itself
└── src/
├── server/Main.server.luau
└── client/Gun/init.client.luau{
"$schema": "https://pasteblox.com/schema/pasteblox.json",
"scripts": [
{ "file": "src/server/Main.server.luau", "slug": "k3m9x2p7qa", "visibility": "private", "title": "Main" },
{ "file": "src/client/Gun/init.client.luau", "visibility": "unlisted", "title": "Gun" }
]
}Recipes
Push a file into a script you already have
❯ pbx push src/door.luau --slug k3m9x2p7qa # Maps it and pushes the next versionSet up a new computer
Clone your repo (or copy the folder) and you have pasteblox.json. Pull each script once so this computer knows which versions it has:
❯ pbx pull src/door.luau❯ pbx pull src/hub.luaStop tracking a file
Delete its entry from pasteblox.json. The script stays on pasteblox and the file stays on disk; they're just not linked any more. (pbx rm deletes the script and removes the entry.)
"pasteblox.json.scripts[0].slug: invalid slug"
pbx checks the file every time it reads it and points at the broken field. Fix that field (or delete the line), then run the command again. "Isn't valid JSON" usually means a missing comma or quote.