The Nice Forms CLI is the official command-line client for the Nice Forms workspace API. It is aimed at developers and AI agents that need to list surveys, publish a questionnaire, or pull responses in a shell, CI job, or agent loop.
Install from npm as the package `nice-forms`, or run it once with npx. Authenticate with a workspace API key created under Account → API in the Nice Forms dashboard. The CLI sends the same Bearer token the HTTP API expects and prints JSON on stdout so it can be piped into jq or another tool.
The CLI is not a second product: it calls GET /api/v1, /api/v1/me, /api/v1/surveys, and related routes documented in the OpenAPI spec. If a command fails, the process exits non-zero and prints the JSON error object (code, message, hint).
Nice Forms CLI
npm install -g nice-forms
export NICE_FORMS_API_KEY=nf_live_… export NICE_FORMS_BASE_URL=https://www.nice-forms.com npx nice-forms me npx nice-forms surveys list npx nice-forms openapi