Finqu CLI is a command-line tool for working with the Finqu unified commerce platform. Today it focuses on theme development workflows (configure, download, deploy, watch), but it’s designed to expand to other areas over time.
npm install -g @finqu/cliBefore using the Finqu CLI, you need to authenticate with your Finqu account:
finqu sign-inIf you have API credentials, you can provide them directly:
finqu sign-in --key YOUR_API_KEY --secret YOUR_API_SECRETConfigure your project to work with a theme:
finqu theme configureYou'll be prompted to select a theme to work with.
These global options can be used with any command:
| Option | Description | Default |
|---|---|---|
-v, --verbose |
Enable detailed logging output | false |
-e, --env <environment> |
Specify the configuration environment to use | production |
-c, --config <path> |
Path to the configuration file | ./finqu.config.json |
--help |
Display help information | |
--version |
Display version information |
Authenticate with your Finqu account and obtain an access token:
finqu sign-in| Option | Description |
|---|---|
--key <key> |
API key |
--secret <secret> |
API secret |
The authentication process uses OAuth 2.0 and will open a browser window for you to complete the sign-in process if credentials are not provided directly.
All theme-related commands are grouped under finqu theme:
Set up your project to work with a theme:
finqu theme configureThis interactive command walks you through:
- Selecting a theme to work with
- Saving the configuration to your configuration file
Download theme assets from the connected Finqu theme:
finqu theme download [sources...]| Option | Description |
|---|---|
[sources...] |
Optional file paths to download specific files or directories |
When no sources are specified, all theme assets will be downloaded to your local directory.
Upload local theme assets to the connected Finqu theme:
finqu theme deploy [sources...]| Option | Description |
|---|---|
--clean |
Remove remote theme assets not found locally |
--force |
Include restricted paths like config/ and .draft directories |
--no-compile |
Skip asset compilation on the server after upload |
[sources...] |
Optional file paths to deploy specific files or directories |
When no sources are specified, all local theme assets will be uploaded.
Note: By default, the
config/settings_data.jsonfile andconfig/.draftdirectory are protected and will not be uploaded to prevent accidental overwrites of theme settings made in the backend theme editor. Use the--forceoption to include it if necessary.
Delete specific assets from the theme:
finqu theme delete [sources...]| Option | Description |
|---|---|
--no-compile |
Skip asset compilation on the server after deletion |
[sources...] |
File paths of assets to delete |
Automatically deploy changes to assets as you work:
finqu theme watch| Option | Description |
|---|---|
--ignore <patterns...> |
Patterns to ignore (in addition to default ignores) |
This command monitors your local theme directory for changes and automatically uploads modified files to your connected theme.
Finqu CLI supports the following environment variables:
| Variable | Description |
|---|---|
FINQU_CONFIG |
Override the default configuration file path |
FINQU_API_CLIENT_ID |
API Client key to use for authentication (alternative to using --key) |
FINQU_API_CLIENT_SECRET |
API Client secret to use for authentication (alternative to using --secret) |
Finqu CLI uses a JSON configuration file (default: finqu.config.json) to store settings. The configuration structure supports multiple environments.
{
"production": {
"themeDir": "/path/to/theme/directory",
"resourceUrl": "https://<your-env>.api.myfinqu.com",
"apiVersion": "1.2",
"accessToken": "<oauth_access_token>",
"refreshToken": "<oauth_refresh_token>",
"expiresAt": 1784447850458,
"store": {
"merchantId": 6,
"id": 57704,
"themeId": 870,
"versionId": "152bd77a7749171803307263acec8028",
"domain": "example.finqustore.com"
}
}
}| Key | Description |
|---|---|
themeDir |
Local directory path for theme files |
resourceUrl |
Finqu API base URL (set by finqu sign-in) |
apiVersion |
Finqu API version (optional, default: 1.2) |
accessToken |
OAuth 2.0 access token (automatically managed) |
refreshToken |
OAuth 2.0 refresh token (automatically managed) |
expiresAt |
Access token expiration timestamp (automatically managed) |
store |
Store/theme selection (set by finqu theme configure) |
verbose |
Enable or disable verbose logging |
Note: The configuration file is automatically created and updated by the CLI commands. You typically don't need to edit it manually.
- Install the Finqu CLI:
npm install -g @finqu/cli - Authenticate:
finqu sign-in - Configure your theme:
finqu theme configure - Download theme assets:
finqu theme download
- Make changes to theme files
- Deploy changes:
finqu theme deploy - Or use the watcher:
finqu theme watch
A typical Finqu theme has the following structure:
theme-name/
├── assets/ # CSS, JavaScript, images, and fonts
├── config/ # Theme settings and configuration
│ └── settings_data.json # Theme settings (protected during deploy)
├── layout/ # Layout templates
├── locales/ # Translation files (JSON format)
├── blocks/ # Reusable blocks
├── sections/ # Page sections
├── snippets/ # Code snippets
├── templates/ # Page templates
└── finqu.config.json # CLI configuration file
- Authentication Errors: Use
finqu sign-into refresh your authentication - Permission Errors: Ensure you have the right access permissions to the theme
- API Errors: Use the
-vflag to get verbose output for debugging - File Sync Issues: Use
finqu theme deploy --cleanto ensure remote files match local files
For additional support:
- Visit Finqu Developer Documentation
- Contact Finqu Support
Proprietary Software. All rights reserved. © Finqu. Unauthorized use, distribution, or modification is prohibited.