text: import parseDuration from 'parse-duration'
  
  /**
   * @typedef {object} Argv
   * @property {import('../../types').Context} Argv.ctx
   * @property {'unixfs-dir'} Argv.template
   * @property {string} Argv.cidBase
   * @property {number} Argv.timeout
   */
  
  /** @type {import('yargs').CommandModule<Argv, Argv>} */
  const command = {
    command: 'new [<template>]',
  
    describe: 'Create new ipfs objects',
  
    builder: {
      'cid-base': {
        describe: 'Number base to display CIDs in. Note: specifying a CID base for v0 CIDs will have no effect',
        string: true,
        default: 'base58btc'
      },
      timeout: {
        string: true,
        coerce: parseDuration
      }
    },
  
    async handler ({ ctx: { ipfs, print }, template, cidBase, timeout }) {
      const cid = await ipfs.object.new({
        template,
        timeout
      })
      const base = await ipfs.bases.getBase(cidBase)
      print(cid.toString(base.encoder))
    }
  }
  
  export default command
  