Project Config
Persist deploy settings with .samplex.config.json.
When you deploy a site, the samplex CLI saves the slug and name to .samplex.config.json in your project root. Later deploys reuse these settings automatically.
File format
{
"slug": "brave-panda",
"name": "My Project"
}Prop
Type
Initialize manually
You can create or update the config file with the init command:
samplex init --slug my-site --name "My Site"Running samplex init without options shows the current config if one exists.
Version control
It's safe to commit .samplex.config.json to your repository. This way, anyone on your team who
runs samplex deploy will update the same site automatically.
If you'd rather keep deployments per-developer, add it to .gitignore:
.samplex.config.json
