@noya-app/cli
v0.0.7
Published
Noya CLI to deploy static sites and create apps
Readme
@noya-app/cli
Noya CLI for deploying static sites to Noya and optionally creating an app pointing to the deployed site.
Install
- Global:
npm i -g @noya-app/cli - Ad‑hoc:
npx @noya-app/cli deploy
Command
noya deploy [dir]- Deploys a static folder to Noya. If no
diris provided, it looks fordistorout. - Flags:
--appAlso create an app (tool) that points to the deployed URL.--name <name>Name to use when--appis passed (otherwise prompted).--token <token>Personal access token. Alternatively, setNOYA_TOKEN.--api <url>API base URL. Defaults tohttps://www.noya.io/apiorNOYA_API_URL.--dry-runShow what would happen without making any network calls or writes.--preflightShow discovered config (API, paths, files, siteId) and ask to confirm before deploying.
- Deploys a static folder to Noya. If no
Environment variables
NOYA_TOKENPersonal access token for authenticated deploys.NOYA_API_URLOverride API base URL (e.g.https://staging.noya.io/api).
Config file
- After a successful deploy (non–dry‑run), the CLI writes
.noya/deploy.jsonin your project root so subsequent deploys go to the same site. - Fields:
siteId: Site to deploy to on subsequent runssubdomain: Subdomain used for pretty URLs (if available)url: Resolved URL to the sitedeployDir: The relative folder that was deployedappId: The created app’s id (when--appis used)
Examples
- First deploy from default folder:
noya deploy - Explicit folder:
noya deploy ./out - With token env:
NOYA_TOKEN=… noya deploy - Also create an app:
noya deploy --app --name "My App" - Dry run (no network/writes):
noya deploy --dry-run - Preflight confirmation:
noya deploy --preflight
