Use the repository CLI
These commands run from a Grablex source checkout with dependencies installed. A public npm installation is not required or implied. Run pnpm grablex help for the supported options.
- Run the repository CLI from an installed Grablex source checkout.
- Use pnpm grablex help to inspect supported commands.
Connect securely
Create a personal CLI token in Consol security settings. Supply it through GRABLEX_API_TOKEN in your local environment, then run login. Keep it out of source files, screenshots and shell history.
- Create a personal CLI token in Consol security settings.
- Set GRABLEX_API_TOKEN locally and run login; never paste the token into a project or public log.
Build, deploy, inspect
Build the site into dist before deploying. The CLI prints the project URL. Set --dir to your actual static output directory. Backend processes are not deployed by this static command.
- Create/select your project, build its static output and deploy that directory.
- Inspect status and deployments; keep the accepted deployment ID for a later rollback.
Run from the Grablex source checkout. Supply your token through a local environment variable.
pnpm grablex login
pnpm grablex init --name "My website" --slug my-website
pnpm grablex preview --dir dist
pnpm grablex deploy --dir dist
pnpm grablex status
pnpm grablex deployments
pnpm grablex rollback --to 1