@taghost/cli
v3.1.1
Published
Developer CLI for TagHost: Init, Deploy, and Zero-Lock-In Eject
Maintainers
Readme
@taghost/cli
The TagHost developer CLI. Initialise a project, deploy it to the global edge, roll back instantly, manage environment variables, and eject to plain React whenever you want — you always own your code.
npm install -g @taghost/cliCommands
| Command | What it does |
| --- | --- |
| tag login | Authenticate the terminal with your TagHost account. |
| tag whoami | Show the authenticated user, active workspace, and role. |
| tag init | Link an existing React/Vite project to a TagHost project. |
| tag deploy | Build and upload the current project to the global edge. |
| tag rollback [deploymentId] | Roll edge traffic back to a previous deployment. |
| tag env | Manage environment variables (list, set, rm). |
| tag eject | Zero lock-in. Strip TagHost attributes and export plain content. |
Common options
tag deploy --preview # ephemeral branch preview URL
tag deploy --branch main # deploy a specific git branch
tag env set KEY value --target productionGetting started
npm install -g @taghost/cli
tag login
tag init
tag deployCredentials are stored locally after tag login; in CI you can authenticate with a
TAGHOST_TOKEN environment variable instead of an interactive login.
Zero lock-in
tag eject strips TagHost attributes and exports your content as plain, portable
files. Nothing TagHost gives you is locked into our runtime — the output is yours to
host anywhere.
Requirements
- Node.js 18 or newer
Links
- Product: https://taghost.io
- Docs: https://docs.taghost.io
- Issues: https://github.com/georgennad/TagHost/issues
License
Proprietary. See LICENSE.
