- Overview
- Tutorials
- Getting started
- Get started with Canton and the JSON Ledger API
- Get Started with Canton, the JSON Ledger API, and TypeScript
- Get started with Canton Network App Dev Quickstart
- Get started with smart contract development
- Basic contracts
- Test templates using Daml scripts
- Build the Daml Archive (.dar) file
- Data types
- Transform contracts using choices
- Add constraints to a contract
- Parties and authority
- Compose choices
- Handle exceptions
- Work with dependencies
- Functional programming 101
- The Daml standard library
- Test Daml contracts
- Next steps
- Application development
- Getting started
- Development how-tos
- Component how-tos
- Explanations
- References
- Application development
- Smart contract development
- Daml language cheat sheet
- Daml language reference
- Daml standard library
- DA.Action.State.Class
- DA.Action.State
- DA.Action
- DA.Assert
- DA.Bifunctor
- DA.Crypto.Text
- DA.Date
- DA.Either
- DA.Exception
- DA.Fail
- DA.Foldable
- DA.Functor
- DA.Internal.Interface.AnyView.Types
- DA.Internal.Interface.AnyView
- DA.List.BuiltinOrder
- DA.List.Total
- DA.List
- DA.Logic
- DA.Map
- DA.Math
- DA.Monoid
- DA.NonEmpty.Types
- DA.NonEmpty
- DA.Numeric
- DA.Optional
- DA.Record
- DA.Semigroup
- DA.Set
- DA.Stack
- DA.Text
- DA.TextMap
- DA.Time
- DA.Traversable
- DA.Tuple
- DA.Validation
- GHC.Show.Text
- GHC.Tuple.Check
- Prelude
- Smart contract upgrading reference
- Glossary of concepts
Daml Assistant flags¶
daml build
¶
-o,--output FILE
Optional output file (defaults to.daml/dist/<package-name>-<package-version>.dar
)--incremental ARG
Enable incremental buildsCan be set to “yes”, “no” or “auto” to select the default (no)--init-package-db ARG
Initialize package databaseCan be set to “yes”, “no” or “auto” to select the default (yes)--enable-multi-package ARG
Enable/disable multi-package.yaml supportCan be set to “yes”, “no” or “auto” to select the default (yes)--all
Build all packages in multi-package.yaml--no-cache
Disables cache checking, rebuilding all dependencies--multi-package-path FILE
Path to the multi-package.yaml file
Includes General Daml Compiler flags
daml clean
¶
--all
Clean all packages in multi-package.yaml--enable-multi-package ARG
Enable/disable multi-package.yaml supportCan be set to “yes”, “no” or “auto” to select the default (yes)--multi-package-path FILE
Path to the multi-package.yaml file
daml test
¶
--files FILE
Only run test declarations in the specified files.--all
Run tests in current project as well as dependencies--load-coverage-only
Don’t run any tests - only load coverage results from files and write the aggregate to a single file.--show-coverage
Show detailed test coverage--color
Colored test results--junit FILENAME
Filename of JUnit output file-p,--test-pattern PATTERN
Only scripts with names containing the given pattern will be executed.--transactions-output ARG
Filename to which the transaction list should be output--load-coverage ARG
File to read prior coverage results from. Can be specified more than once.--save-coverage ARG
File to write final aggregated coverage results to.--coverage-ignore-choice ARG
Remove choices matching a regex from the coveragereport. The full name of a local choice takes theformat ‘<module>:<template name>:<choice name>’,preceded by ‘<package id>:’ for nonlocal packages.
Includes General Daml Compiler flags
General Daml Compiler flags¶
The following flags are shared by many Daml commands, which reference this section above.
--include INCLUDE-PATH
Path to an additional source directory to be included--package-db LOC-OF-PACKAGE-DB
Use package database in the given location--access-token-file PATH
Path to the token-file for ledger authorization.--debug
Set log level to DEBUG--log-level ARG
Set log level. Possible values are DEBUG, INFO, WARNING, ERROR--detail LEVEL
Detail level of the pretty printed output (default: 0)--ghc-option OPTION
Options to pass to the underlying GHC--typecheck-upgrades ARG
Typecheck upgrades. Can be set to “yes”, “no” or “auto” to select the default (yes)--upgrades UPGRADE_DAR
Set DAR to upgrade-W ARG
Turn an error into a warning with
-W<name>
or-Wwarn=<name>
or-Wno-error=<name>
Turn a warning into an error with
-Werror=<name>
Disable warnings and errors with
-Wno-<name>
Available names are:
deprecated-exceptions
crypto-text-is-alpha
upgrade-interfaces
upgrade-exceptions
upgrade-dependency-metadata
upgraded-template-expression-changed
upgraded-choice-expression-changed
could-not-extract-upgraded-expression
unused-dependency
upgrades-own-dependency
template-interface-depends-on-daml-script
template-has-new-interface-instance
--ignore-data-deps-visibility ARG
Ignore explicit exports on data-dependencies, andinstead allow importing of all definitions from thatpackage (This was the default behaviour before Daml3.3)Can be set to “yes”, “no” or “auto” to select the default (no)