@actera/cli
v0.0.2
Published
Command line tools for Actera onboarding and integration workflows.
Readme
@actera/cli
Command line tools for Actera onboarding and integration workflows.
Install
npm install -g @actera/cliOr run it without a global install:
npx @actera/cli --helpLogin
actera login
actera whoamiactera login opens the Actera dashboard authorization flow and stores credentials in ~/.config/actera/credentials.json.
For CI, skip login and set:
ACTERA_API_URL=https://api.actera.tech
ACTERA_API_KEY=<admin-api-key>Import tools from OpenAPI
actera import -spec ./openapi.yamlThe CLI parses the spec through Actera, saves a pending review session for your workspace, and prints the dashboard URL where you can approve tools.
Use -base-url when you need to override the spec server URL:
actera import -spec ./openapi.yaml -base-url https://api.example.comPropose SDK integration config
Generate a route manifest first:
actera routes nextThen propose a hosted SDK integration config:
actera integration propose \
-spec ./openapi.yaml \
-routes ./actera.routes.json \
-out ./actera.integration.jsonApply a reviewed config:
actera integration apply -config ./actera.integration.json -activateRoute manifests
For Next.js apps, the CLI can discover routes from app/ and pages/:
actera routes next --output actera.routes.jsonFor Express and Hono apps, pass a JSON file containing either an array of routes or an object with a routes array:
[
{ "path": "/projects", "title": "Projects" },
{ "path": "/team", "title": "Team" }
]actera routes express --routes routes.json
actera routes hono --routes routes.jsonEnvironment
ACTERA_API_URL sets the API base URL. Defaults to http://localhost:3002.
ACTERA_API_KEY overrides the saved login credentials.
ACTERA_WEB_URL sets the dashboard URL printed after import. Defaults to http://localhost:3000.
