Skip to main content
Install: npm install -g @smartlyqofficial/cli · GitHub · npm · Node 18+.
The smartlyq command mirrors the SDK surface one-to-one: smartlyq <resource> <method>. Perfect for shell scripts, cron jobs, CI pipelines, and quick one-offs without writing code.

Login

Or skip login and use --api-key / the SMARTLYQ_API_KEY environment variable. Precedence: flag > environment > config file. smartlyq logout removes the stored key.

Usage

Discover everything from the built-in help: smartlyq --help lists resources, smartlyq social --help lists its commands, and smartlyq social create-post --help shows arguments and the underlying endpoint.

Flags

Errors and exit codes

API errors print to stderr as Error <status> <code>: <message> (request <id>) and exit with code 1, so failures propagate correctly in scripts and CI.

Next steps

API Reference

Request and response schemas for every endpoint.

Async jobs

How generation jobs work and how to poll them.

Source on GitHub

Issues, changelog, and the full method reference.