Except for a defendant charged with an offense punishable by death or a defendant who is currently released on personal recognizance bond, a defendant shall, at his appearance before a committing magistrate or court be ordered released pending trial on his personal recognizance or upon the execution of an unsecured appearance bond in an amount specified by the committing magistrate or court, unless the magistrate or court determines in the exercise of his discretion, that such a release will not reasonably assure the appearance of the defendant as required or that the defendant may pose a danger to any other person or to the community.
SDCL 23A-43-2