.gitignore already does this, and xanosdk init in an existing app adds the same rules as a
managed block.
Project files
Everything under
xano/ except .env and .secrets.json is committed: the source is what a
reviewer reads. Do not ignore xano/ wholesale. Ignoring xano.lock makes every build mint new
identities, so a rename becomes a delete and a create. See
Git and merges.
On a fresh clone, copy xano/.env.example to xano/.env and fill in the values, or run
npx xanosdk env pull to read them from a running backend. See
Env and secrets.
Files on your machine
These live in your home directory and are shared by every project.
Which credential file a command reads:
--config or XANO_CONFIG first, then the project’s
.xano/auth.json when it exists, then ~/.xanosdk/auth.json. The XANO_INSTANCE_URL, XANO_WORKSPACE_ID
and XANO_META_TOKEN variables outrank every file. See
Environment & identity.
Next
- A tour of a scaffolded project: What you built.
- Every variable that moves these files: Environment & identity.