Conjure provides a command line tool called conjure that is used to manage Conjure projects. This tool includes several subcommands for creating, building, running, and testing Conjure applications. This command is really a wrapper around the Conjure compiler and makes it easier to work with Conjure projects.
conjure up Proposed
The conjure up command is a convenient way to start a new project or build and run an existing one with hot module reloading. It automatically detects the type of project based on the files present in the current directory.
conjure init
The conjure init command initializes a new Conjure project in the current directory. It asks a basic set of questions to configure the project and generates the necessary files.
conjure initconjure build
The conjure build command compiles the Conjure project in the current directory, provided your directory contains a valid Conjure project structure. At a minimum, this requires a build.cjr file, which is used to configure the build process for your project.
conjure buildYou can also build individual source files without a build.cjr by specifying the file directly. This will build that file, along with any relative imports, into an executable.
conjure build main.cjrconjure run
The conjure run command builds and runs the Conjure project in the current directory. It combines the build and execution steps into a single command for convenience.
conjure runThis is equivalent to running conjure build followed by executing the resulting binary from the .conjure/ cache/artifacts directory.
conjure test
The conjure test command builds and runs the test suite for the Conjure project in the current directory. By default, this will include all files containing at least 1 test block within the project.
conjure testYou can also specify individual test files or directories to run specific tests. For example, the following command runs tests from the myFile.cjr file and all Conjure files within the ./my/directory/ directory.
conjure test myFile.cjr ./my/directory/**/*.cjrFor named test blocks, you can append #testName to the file path to run a specific test within that file.
conjure test myFile.cjr#mySpecificTest