Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
$ npm install -g @chec/cli
$ chec COMMAND
running command...
$ chec (-v|--version|version)
@chec/cli/1.3.0 darwin-x64 node-v12.20.0
$ chec --help [COMMAND]
USAGE
$ chec COMMAND
...
chec demo-store [STORE] [TARGETDIRECTORY]
chec help [COMMAND]
chec log LOGID
chec login
chec logout
chec logs
chec register
chec request METHOD RESOURCE [PAYLOAD]
chec whoami
chec demo-store [STORE] [TARGETDIRECTORY]
Create a demo store using Chec and Commerce.js
USAGE
$ chec demo-store [STORE] [TARGETDIRECTORY]
ARGUMENTS
STORE The store that you want your example based off of
TARGETDIRECTORY The destination directory name to download the example to. The defaults to the store name
OPTIONS
--env=env Extra env variables to set for a .env file in the installed project
--no-login Optionally skip the login requirement. This is likely to be incompatible with example stores that are
available for download
--no-seed Optionally skip seeding sample data into your Chec account
DESCRIPTION
This command will download an example project from GitHub and initialise it on your machine. You will be free to edit
the downloaded code and play around with Commerce.js in client code
See code: src/commands/demo-store.js
chec help [COMMAND]
display help for chec
USAGE
$ chec help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
chec log LOGID
Get full detail about a given log ID
USAGE
$ chec log LOGID
ARGUMENTS
LOGID The log ID for the log entry you want to retrieve
OPTIONS
--raw Display a "raw" unformatted JSON blob of the log details
--utc Display timestamps in UTC timezone instead of the local timezone
DESCRIPTION
Communicates with Chec to get full log information for the given log ID
See code: src/commands/log.js
chec login
Log into your Chec account
USAGE
$ chec login
OPTIONS
-e, --email=email Your accounts email address
-p, --password=password The password to login with
--skip-check Indicate that this command should skip checking if a user is already logged in
DESCRIPTION
Log into your Chec account to enable commands that require API access.
See code: src/commands/login.js
chec logout
Log out of your account
USAGE
$ chec logout
DESCRIPTION
Log out of your account and remove the local copy of your API keys.
See code: src/commands/logout.js
chec logs
Show a summary of your API requests processed by Chec.
USAGE
$ chec logs
OPTIONS
-f, --[no-]follow "Follow" logs from Chec. New events that happen are shown live
-h, --history=history [default: 100] Keep record of the given number of logs when browsing back.
-n, --tail=tail Show the last n number of logs before listening for new logs
--utc Display timestamps in UTC timezone
DESCRIPTION
Listens for logs from Chec and displays a summary of them to you as they are processed by Chec.
You may optionally retrieve prior logs and navigate through shown logs to fetch further details about the log entry
from Chec.
See code: src/commands/logs.js
chec register
Register an account with Chec
USAGE
$ chec register
DESCRIPTION
Sign up for a Chec account through your browser
See code: src/commands/register.js
chec request METHOD RESOURCE [PAYLOAD]
Run abstract API request
USAGE
$ chec request METHOD RESOURCE [PAYLOAD]
ARGUMENTS
METHOD (GET|POST|PUT|PATCH|DELETE) HTTP method
RESOURCE API resource (e.g. /v1/products)
PAYLOAD Request payload (JSON encoded)
OPTIONS
--file=file Optional: path to JSON encoded file containing request payload
--sandbox Use sandbox API keys
DESCRIPTION
Runs an arbitrary API request given the HTTP method, endpoint, and input payload.
Data should be provided as a JSON object. You may also use `--sandbox` to use
sandbox API keys.
EXAMPLES
$ chec request GET /v1/products
$ chec request GET /v1/orders
$ chec request GET /v1/products '{"limit":1}'
$ chec request GET /v1/products '{"limit":1}' --sandbox
$ chec request POST /v1/assets --file=my-asset-payload.json
See code: src/commands/request.js
chec whoami
Get information on your user account
USAGE
$ chec whoami
DESCRIPTION
Fetches information on your user account, and merchants associated with your account.
EXAMPLE
$ chec whoami
See code: src/commands/whoami.js
FAQs
A command line interface for using the Chec API
The npm package @chec/cli receives a total of 12 weekly downloads. As such, @chec/cli popularity was classified as not popular.
We found that @chec/cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.