Skip to content

nablaflow/cli

Repository files navigation

NablaFlow CLI   built with nix

Installation

As flake

Can be run directly via nix run github:nablaflow/cli/v1.0.0-rc.2.

Stand-alone (Linux, macOS, Windows)

Follow instructions in releases.

Usage

Tip

All commands accept --json after nf to output JSON instead of human readable text, so that the CLI can be comfortably used in scripts.

Tip

Use --help on every subcommand to see their documentation.

Tip

All commands that consume a JSON from a path also accept JSON from stdin, be sure to pass - instead of the file.
This facilitates usage from scripts.

Aerocloud

As NablaFlow's API requires authentication, you first need to get a personal access token.
Once you have one, set it using nf aerocloud set-auth-token $TOKEN.

AeroCloud v7

In order to submit a simulation you need a project and a model:

Batch

nf aerocloud v7 batch $dir provides an interactive UI to review and submit a batch of simulations.

Inside the UI, follow the instructions and available commands at the bottom of each block.

Tip

When submitting simulations, stuff can go wrong: network timeouts, invalid parameters and such.
Each succesfully submitted simulation will be marked as such and won't be resent, while allowing you to make changes to JSON files and reload them.

The expected structure of the passed $dir is:

dir
├── simulation-1      # `simulation-1` is going to be the name of the simulation.
│   ├── model-1.stl   # `model` can be any valid UTF-8 filename.
│   ├── model-1.json  # Provides additional params on the `.stl` above (unit, parts, ...). *File names must match!*
│   ├── model-2.obj
│   ├── model-2.json
│   ├── params.json   # Simulation params.
└── simulation-2
    ├── donut-with-parts.json
    ├── donut-with-parts.obj
    ├── params.json

You can find an example under examples/aerocloud/v7/batch

About

CLI to access our API and interact with our products.

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •