> ## Documentation Index
> Fetch the complete documentation index at: https://developer.box.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Building Commands and Help Feature

export const Link = ({href, children, className, ...props}) => {
  const localizedHref = localizeLink(href);
  return <a href={localizedHref} className={className} {...props}>
      {children}
    </a>;
};

A full list of CLI commands and usage information can be found in the
[GitHub repository][github].

<Warning>
  Only Service Accounts and Admins are able to use some commands.
  If your user is not authorized with the necessary scopes or you
  configured your CLI to obtain a default token for another user, calls may
  fail. Add `-v` or `--verbose` to your command for verbose error logging.
</Warning>

If you do not see a command for an endpoint you need, you can build a
[custom request][custom].

<Tip>
  Use repository documentation in conjunction with reference documentation to
  see information the help command does not provide. This includes
  restrictions, token permission requirements, fields, etc.
</Tip>

## Using help to create a folder

Every CLI command begins with `box`. Append the `--help` flag to any CLI command to display usage information, available actions, and required arguments.

For example, executing `box --help` shows you
to a list of all possible resource commands, such as `folders`, `files`, and `users`. More information is available in
<Link href="/guides/cli/quick-start/using-options">Using Options</Link>.

<Frame center>
  <img src="https://mintcdn.com/box/_tECS-SYBYV9K-kZ/images/guides/cli/help.png?fit=max&auto=format&n=_tECS-SYBYV9K-kZ&q=85&s=316c836878c85a574354c60a7d0a7aaa" alt="Help" width="1712" height="1200" data-path="images/guides/cli/help.png" />
</Frame>

Then, for example, use the folder object and execute the command
`box folders --help`. This provides a list of all eligible actions for this
object.

<Frame center>
  <img src="https://mintcdn.com/box/_tECS-SYBYV9K-kZ/images/guides/cli/folders-help.png?fit=max&auto=format&n=_tECS-SYBYV9K-kZ&q=85&s=f49950f628f38cb4486afb898667fd44" alt="Help" width="930" height="600" data-path="images/guides/cli/folders-help.png" />
</Frame>

Discover the required arguments for creating a folder: `box folders:create --help`

<Frame center>
  <img src="https://mintcdn.com/box/_tECS-SYBYV9K-kZ/images/guides/cli/folders-create-help.png?fit=max&auto=format&n=_tECS-SYBYV9K-kZ&q=85&s=c5573a5935d0187eff355788c3dadb9f" alt="Help" width="1552" height="900" data-path="images/guides/cli/folders-create-help.png" />
</Frame>

Execute the command `box folders:create 0 "My CLI Folder"` and note the folder
ID returned in the response.

<Tip>
  The root level of the folder tree, the All Files page, is always represented
  by folder ID 0.
</Tip>

Log into **your** Box account and verify that the folder appears.

<Warning>
  If you set up the Box CLI using JWT authentication, you will not see the
  folder in your Box account. The folder will live in the service account
  of the application that was created after application approval.
</Warning>

[github]: https://github.com/box/boxcli#command-topics-1

[custom]: https://github.com/box/boxcli/blob/master/docs/request.md

[sa]: /platform/user-types/#service-account
