- Confirm current calc schema in ../schema
- Confirm list of valid Calc versions in ../cee/master/calc-versions.txt
npm install
npm install -g pkg- ./package.sh
- Executables will be created in ./target
cee-cli setup
You will be prompted for CEE server URL and API Key
cee-cli <command> [opts..]
Run cee-cli -h for help with a specific command.
-h, --helpShow help [boolean]
cee-cli validate [json..]
Validate jobs or analysis. Validates each file against JSON schema. If job option is specified, validation will be done against the job schema. Otherwise validation will be done against the analysis schema. Return code is 0 if all files validated successfully and 1 otherwise.
-h, --helpShow help [boolean]-v, --verboseIncrease verbosity (can be used more than once) [count]-q, --quietDon't output anything [boolean]-j, --jobValidate job instead of analysis [boolean]
cee-cli analyze [json..]
Send analysis or job in each file to CEE, then optionally poll CEE until analysis is complete and retrieve results. If polling is enabled analysis results will be written to a directory specified by the output parameter.
-h, --helpShow help [boolean]-f, --configConfig file [default: "$HOME/.config/cee.json" (unix), "%APPDATA%/cee.json" (windows)]-p, --pollPoll CEE and write analysis results when complete [boolean]-b, --callbackCallback URL with results [default: "http://localhost:8080"]-a, --arrayExpect input files to contain an array of jobs or analyses instead of a single job or analysis [boolean]-o, --outputAnalysis Result output [default: "results"]-j, --jobExpect json files to be jobs instead of analysis (Passed callback and calcVersion will be ignored) [boolean]-v, --engineVersionVersion of calc to analyze against [default: "7.0.1"]-d, --clientDataFile containing client data (expect json args to be a structure only; requires one of analysisCase, loadCaseName, or strengthCaseName)-c, --analysisCaseFile containing analysis case (requires clientData; conflicts with loadCaseName and strengthCaseName)-l, --loadCaseNameUsed named load case from clientData. (requires clientData; conflicts with analysisCase and strengthCaseName)-s, --strengthCaseNameUsed named load case from clientData. (requires clientData; conflicts with analysisCase and loadCaseName)
cee-cli analyze -p pole1.json pole2.json
cee-cli setup
Setup CEE connection information
-h, --helpShow help [boolean]-n, --newForce new config file [boolean]-f, --configConfig file [default: "$HOME/.config/cee.json" (unix), "%APPDATA%/cee.json" (windows)]-k, --keepDon't overwrite an existing file
cee-cli status [jobId..]
Display status for jobs
-h, --helpShow help [boolean]-f, --configConfig file [default: "$HOME/.config/cee.json" (unix), "%APPDATA%/cee.json" (windows)]
cee-cli get [jobId.. | --offset n]
Get jobs, unless stdout is specified. Jobs will be written to files in the directory specified by the output parameter. Jobs can be specified by id or using --offset and --limit to get the last x (--limit) jobs starting at job y (--offset).
-h, --helpShow help [boolean]--idForce filename to be job id, (otherwise attempt to use external id)-f, --configConfig file [default: "$HOME/.config/cee.json" (unix), "%APPDATA%/cee.json" (windows)]-c, --stdoutDon't write to files, instead write as JSON Array to standard out [boolean]-o, --outputDirectory to write jobs to (ignored if stdout is specified [default: "results"]-s, --stripPrepare job for sending to CEE again strip out everything but analysis [boolean]--limitGet this many jobs (don't use with jobIds) [default: 50]--offsetGet jobs starting at this offset
The examples directory in the repo contains example client data, analysis cases, and structures. Setup CEE config using cee-cli setup.
Send analysis to CEE and long-poll for results, writing analysis results to "completed" directory when done. Analyze against Calc version 7.0.0.
cee-cli analyze -p -v 7.0.0 -d examples/demoClientData.json -c examples/go95Light.json -o completed examples/structures/Revised/Busy_Pole.json examples/structures/Revised/Basic_Tangent_Assembly.json examples/structures/Revised/Basic_Tangent_Assembly_w_Comms.json
Same as above but use load case CSA Medium B included in demoClientData.json
cee-cli analyze -p -v 7.0.0 -d examples/demoClientData.json -l 'CSA Medium B' -o completed examples/structures/Revised/Busy_Pole.json examples/structures/Revised/Basic_Tangent_Assembly.json examples/structures/Revised/Basic_Tangent_Assembly_w_Comms.json
Same as above but use strength case CSA included in demoClientData.json. Note: Do not send send jobs to CEE with a strength case but no damages.
cee-cli analyze -p -v 7.0.0 -d examples/demoClientData.json -s CSA -o completed examples/structures/Revised/Busy_Pole.json
Send analysis to CEE, don't wait for analysis to complete (jobIds will be given on stdout as json)
cee-cli analyze -d examples/oneOfEverythingClientData.json -l NESC examples/structures/oneOfEverything1.json examples/structures/oneOfEverything2.json
Get my last 20 jobs save to "archive" directory
cee-cli get --limit 20 --offset 0 -o archive
Install the project
cd cee-cli
npm install
Install the license-checker tool:
npm install -g license-checker
Generate the license report:
license-checker --csv --out cee-cli_js_license_report.csv
cat cee-cli_js_license_report.csv